Move Toward Angle

Pure
MoveTowardAngle

Like MoveToward but handles angle wrapping correctly.

Type: Pure (no side effects)
Category: Fortuna|Math & Numeric
Keywords: math & numeric

Inputs

NameTypeDefaultDescription
CurrentfloatCurrent parameter
TargetfloatTarget parameter
MaxDeltafloatMaxDelta parameter

Outputs

NameTypeDescription
ReturnValuefloatReturnValue output

Example Use Cases

Example 1

Smooth steering wheel rotation.

Example 2

Gradual aim correction toward target bearing.