Skip to main content

IMovementContext

An interface in Root.Township, the global namespace.

A moving frame of reference that players move relative to, such as a moving platform. Converts positions and rotations between its local space and the world.

Properties​

MemberWhat it is
NetworkEntity Entity { get; }The networked entity that defines the frame, if any.
Transform Transform { get; }The transform that defines the frame.

Methods​

MemberWhat it is
Vector3 LocalToWorld(Vector3 local)Turns a position or rotation in the frame's space into world space.
Quaternion LocalToWorld(Quaternion local)Turns a position or rotation in the frame's space into world space.
Vector3 WorldToLocal(Vector3 world)Turns a world position or rotation into the frame's space.
Quaternion WorldToLocal(Quaternion world)Turns a world position or rotation into the frame's space.

Used in​

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