Determine speed of an object

Feb 12, 2008 at 12:17 PM

Can anyone tell me what property tells you the speed of a physicsBody? I cannot see it (problem will be appearing between chair and monitor).

Feb 12, 2008 at 1:49 PM
The speed of an object is equal to the magnitude (length) of the velocity vector. So, if you want the speed of physicsBody, you should use physicsBody.Velocity.Length().
Feb 12, 2008 at 4:06 PM
I've found that you may want to use momentum in some calculations rather then velocity. (To determine force, for example.)

That would be: Velocity.Length() * Mass