Math functions for game

Started by
3 comments, last by Sirisian 13 years, 4 months ago
Hi,

Anyone know any resource that contains Math functions to game (2D / 3D)??

Like:
- Object rotation
- Object rotation around other object
- Object look(point) to another object
- Camera rotation
- Moving an object in some directon, like shoots of a shooter game
- and more... the commons functions
Advertisement
Just about any book on computer graphics.
Start with matrices. Learn how matrices work, cause everything else is based on that.

Then you can find projection matrices, 3D rotation matrices, translation & scale matrices, etc.

Then the camera is just the application of the translation and rotation matrices on the whole scene.

If the camera is at 0,0,-10, than everything else in the scene needs to be moved by 0,0,10. (xyz coords there.)

From there you'll have too look up specific formulas and, if there isn't one off-the-shelf - and there very nearly always is - you should know enough to pull one out of your rear.
Hi,

Thanks for responses.

But i think that can exist some tutorials/documents with all you need about this questions.

Like a ALL-IN-ONE about game math.
Matrix and Quaternion FAQ might be a good start.

Also not the ones you want, but geometric tools has so many mathematical algorithms. They're fun to look through if you have time.

The stuff you described is basic matrix math though. So start with the first link.

This topic is closed to new replies.

Advertisement