Closest Point On Spline
CallableClosestPointOnSplineFinds the closest point on a spline to a given world location, returning the point, its distance along the spline, and its input key.
Type: Callable (has execution pins)
Category: Fortuna|Vector & Transform
Keywords: vector & transform
Inputs
| Name | Type | Default | Description |
|---|---|---|---|
| SplineComponent | SplineComponent | — | SplineComponent parameter |
| WorldLocation | FVector | — | WorldLocation parameter |
Outputs
| Name | Type | Description |
|---|---|---|
| ReturnValue | FVector | ReturnValue output |
| OutDistance | float | OutDistance output |
| OutInputKey | float | OutInputKey output |
Example Use Cases
Example 1
Snap an NPC to the nearest point on a patrol path spline.
Example 2
Find how far along a road spline a vehicle currently is.