Skip to main content

PositionAndRotationTarget

A struct in Root.Township, the global namespace.

A teleport destination: a position and a facing direction. Used by the climbing tower teleporter nodes.

Constructors​

MemberWhat it is
PositionAndRotationTarget(Vector3 position)Creates a PositionAndRotationTarget from position and rotation.
PositionAndRotationTarget(Vector3 position, Vector3 rotation)Creates a PositionAndRotationTarget from position and rotation.

Fields​

MemberWhat it is
Vector3 positionWorld position to move to.
Vector3 rotationDirection to face, as a vector (forward by default), not a rotation.

Used in​

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