Function MovementUtilities.CalculateAccelerationToReachPoint

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

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

Public Static
Vector2 CalculateAccelerationToReachPoint (

Vector2

deltaPosition

Vector2

targetVelocity

Vector2

currentVelocity

float

forwardsAcceleration

float

rotationSpeed

float

maxSpeed

Vector2

forwardsVector

)

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