Fixed UpdateVelocity() to work independent of fps