Sign in to follow this  
Darobat

Moving at an angle

Recommended Posts

nmi    978
deltax = delta * cos(angle);
deltay = delta * sin(angle);

where delta is the displacement length and angle is the direction of movement (0° means in x direction, 90° in y direction etc.)

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