Class MovementUtilities

Public

Public Static Methods

CalculateAccelerationToReachPoint (deltaPosition, targetVelocity, currentVelocity, forwardsAcceleration, rotationSpeed, maxSpeed, forwardsVector)

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

Public Static
ClampVelocity (velocity, maxSpeed, speedLimitFactor, slowWhenNotFacingTarget, preventMovingBackwards, forward)

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

Public Static
FilterRotationDirection (state, state2, deltaPosition, threshold, deltaTime)
Public Static