You can get the X and Y velocity using ship.physics.velocityX/Y
so to find the overall velocity in any direction, is like trying to find the longest side of a triangle with pythagoras' theorem
Imagine 'a' is velocityX and 'b' is velocityY.. the overall velocity would be 'c'
Here's the full page
so to get the overall velocity in any direction, it's:
you might have to put each velocity value inside an abs( ) to avoid negative numbers but i'm not sure.
there is an easier way though..
The distance() expression uses pythagoras in the same way, so you can actually just use that..
if you do it this way, I just figured it'd be good to know why it works first
edit: double ninja'd, i aint even mad