Direction To Rotation

Pure
DirectionToRotation

Converts a direction vector to a rotator. Convenience wrapper for Direction.Rotation().

Type: Pure (no side effects)
Category: Fortuna|Vector & Transform
Keywords: vector & transform

Inputs

NameTypeDefaultDescription
DirectionFVectorDirection parameter

Outputs

NameTypeDescription
ReturnValueFRotatorReturnValue output

Example Use Cases

Example 1

Point a turret in the direction of a target.

Example 2

Orient a decal along a surface normal.