Flatten Vector
PureFlattenVectorRemoves 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
| Name | Type | Default | Description |
|---|---|---|---|
| Vector | FVector | — | Vector parameter |
| UpAxis | FVector | (0,0,1) | UpAxis parameter |
Outputs
| Name | Type | Description |
|---|---|---|
| ReturnValue | FVector | ReturnValue 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.