Skip to main content

PositionRecord

A struct in Root.Township, the global namespace.

A saved position and rotation, either in world space or relative to another transform depending on which constructor made it.

Constructors​

MemberWhat it is
PositionRecord(Vector3 position, Quaternion rotation)Creates a PositionRecord from to and from.
PositionRecord(Transform transform)Creates a PositionRecord from to and from.
PositionRecord(Transform to, Transform from)Creates a PositionRecord from to and from.

Fields​

MemberWhat it is
Vector3 positionThe position, world or local to the reference transform.
Quaternion rotationThe rotation, world or local to the reference transform.

Used in​

Members of other types that take, return or hold a PositionRecord: