Skip to main content

Interface IAutoNavigable

Converts a 3D world-space destination into the normalised 2D movement input expected by Vector2), decoupling path-following logic from the navigation strategy (direct steering, A*, etc.).

public interface IAutoNavigable

Remarks​

PathFollowBehavior calls Vector3) each BT tick to obtain a frame-consistent direction vector and then passes it straight to the actor's IMoveable without needing to know whether the underlying navigation uses Cinemachine splines, navmesh waypoints, or a direct heading calculation.

Methods​

CalculateMoveInput(Vector3)​

Calculates the necessary input to move the unit to the destination.

Vector2 CalculateMoveInput(Vector3 destination)

Parameters​

NameTypeDescription
destinationVector3The destination to move to.

Returns​

Vector2 — The calculated move input.