|
-
April 10th, 2009, 10:19 AM
#2
Re: Velocity in rotation using 2D vectors???
Nevermind, I've figured it out...
Swapped this:
//Adjust bearing angle according to the above key press
velocity.setBearing((dAngle/360*6.282), velocity.magnitude());
for this:
//Adjust bearing angle according to the above key press
acceleration.setBearing((dAngle/360*6.282), acceleration.magnitude());
Works like a gem now!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|