Find Rotation Closest to World Location

Find Rotation Closest to World Location

Windows
MacOS
Linux

Given a location, in world space, return rotation corresponding to the spline's rotation closest to the location.

Target is Spline Component

Find Rotation Closest to World Location
Target
World Location
X0
Y 0
Z 0
Coordinate Space
Local
Return Value
R 0
P 0
Y0

Inputs

Target
Spline Component Object Reference
World Location
Vector (by ref)
Coordinate Space
ESplineCoordinateSpace Enum

Outputs

Return Value
Rotator

Given a location, in world space, return rotation corresponding to the spline's rotation closest to the location.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss