Skip to main content

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.

Constructors​

MemberWhat 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​

MemberWhat it is
Vector3 directionUnit direction. Dividing by zero length gives NaN when built from a zero vector.
float lengthMagnitude of the original vector.

Properties​

MemberWhat 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: