Sign in to follow this  
HumanoidTyphoon

Actor rotates to fit landscape slope

Recommended Posts

So Im trying to get my actor to conform to the landscape slopes with smooth movement. I am currently using a rotation matrix, but I have no idea how to smooth the movement. Would it be easier to use trig functions? If so, how would I do it? I have no idea, and although I looked in a trig book, i still don't see how i can apply those theories to my 3d app. I have my players position, and current rotation. I have the angle that my player is facing which needs to play a part in the equation obviously. And I have a function that takes two, 2d points as args, and works out the 3d angle of the landscape between those points. I would prefer to use trig functions so if anyone can help me out, or even better, also provide a very small explanation as to how the trig functions incorporate the angle the player faces, and spits out correct values, that would be nice. [Edited by - HumanoidTyphoon on January 19, 2009 6:45:01 AM]

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