This project has moved. For the latest updates, please go here.

Getting velocity?

Oct 4, 2008 at 6:12 AM
I was wondering if where was a trick to getting the velocity of a given object. If you can't, I'd like to humbly suggest it for 2.0. There's a lot you can do with the velocity vector. Especially if it's settable as well. You could just use mathhelper clamp to limit velocity. Not to mention you could use sudden velocity changes, as well. (Say, if lastVelocity and currentVelocity are different by x amount, inflict damage proportinal to the difference. It'd work with explosions, even.) 
Oct 4, 2008 at 4:14 PM
There is both LinearVelocity and AngularVelocity properties on the Body object.
Oct 4, 2008 at 6:48 PM
Ah, thank you. I looked through the properties list a couple of times, not entirely sure how I missed those.