TransformMovementContext
A class in Root.Township, the global namespace.
A movement context that converts positions and rotations to and from a transform's local space. Built with new around an entity, using the entity's own transform or a given one.
- Listed in Global namespace: T to X
- Inherits or implements
IMovementContext,IHasMovementContext
Constructors
| Member | What it is |
|---|---|
TransformMovementContext(NetworkEntity entity) | Creates a TransformMovementContext from entity and transform. |
TransformMovementContext(NetworkEntity entity, Transform transform) | Creates a TransformMovementContext from entity and transform. |
Fields
Properties
| Member | What it is |
|---|---|
NetworkEntity Entity { get; } | The entity this context belongs to. |
IMovementContext MovementContext { get; } | Returns itself, so it can be used as an IHasMovementContext. |
Transform Transform { get; } | The transform used as the local space. |