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
Math functions for game
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.
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.
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.
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
Popular Topics
Advertisement