constrainVelocity()