Flatten Vector

Pure
FlattenVector

Removes the component along the up axis and normalizes. Useful for getting horizontal direction.

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

Inputs

NameTypeDefaultDescription
VectorFVectorVector parameter
UpAxisFVector(0,0,1)UpAxis parameter

Outputs

NameTypeDescription
ReturnValueFVectorReturnValue output

Example Use Cases

Example 1

Get a character's horizontal facing direction ignoring pitch.

Example 2

Calculate 2D distance between actors on a flat plane.