Class MovementUtilities

Public

Public Static Methods

CalculateAccelerationToReachPoint (deltaPosition, targetVelocity, currentVelocity, acceleration, maxSpeed)

Calculate an acceleration to move deltaPosition units and get there with approximately a velocity of targetVelocity.

Public Static
ClampVelocity (velocity, maxSpeed, slowdownFactor, slowWhenNotFacingTarget, forward)

Clamps the velocity to the max speed and optionally the forwards direction.

Public Static