Sign in to follow this  
prchakal

Math functions for game

Recommended Posts

prchakal    123
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

Share this post


Link to post
Share on other sites
JoeCooper    350
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.

Share this post


Link to post
Share on other sites
prchakal    123
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.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this