SplitVector3
A struct in Root.Township, the global namespace.
A vector stored as a unit direction plus a length. Used for hand body offsets and grip strength in climbing.
- Listed in Global namespace: S
Constructors
| Member | What it is |
|---|---|
SplitVector3(Vector3 original) | Creates a SplitVector3 from direction and length. |
SplitVector3(Vector3 direction, float length) | Creates a SplitVector3 from direction and length. |
Fields
| Member | What it is |
|---|---|
Vector3 direction | Unit direction. Dividing by zero length gives NaN when built from a zero vector. |
float length | Magnitude of the original vector. |
Properties
| Member | What it is |
|---|---|
static SplitVector3 Down { get; } | Down direction with length 1. |
static SplitVector3 Right { get; } | Right direction with length 1. |
static SplitVector3 Up { get; } | Up direction with length 1. |
static SplitVector3 Zero { get; } | Zero direction with length 0. |
Used in
Members of other types that take, return or hold a SplitVector3: