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.

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

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

FilterRotationDirection (state, state2, deltaPosition, threshold, deltaTime, avoidingOtherAgents)