Finding the object's current velocity vector

teh1ghool
Posts: 3
Joined: Tue Feb 16, 2010 8:53 pm

Finding the object's current velocity vector

Post by teh1ghool »

How might I find the current velocity vector regardless of the orientation?
teh1ghool
Posts: 3
Joined: Tue Feb 16, 2010 8:53 pm

Re: Finding the object's current velocity vector

Post by teh1ghool »

Bump... Slight hurry?
User avatar
Erwin Coumans
Site Admin
Posts: 4221
Joined: Sun Jun 26, 2005 6:43 pm
Location: California, USA

Re: Finding the object's current velocity vector

Post by Erwin Coumans »

body->getLinearVelocity() returns the velocity in world space.

Thanks,
Erwin
teh1ghool
Posts: 3
Joined: Tue Feb 16, 2010 8:53 pm

Re: Finding the object's current velocity vector

Post by teh1ghool »

Thanks,

I realized how stupid I was earlier today. This was rather obvious. :)

~Ryan