GuidedMovement
A class in Root.Township, the global namespace.
Moves this object along an IPositionRotationPath on the same object from a progress value, applied in fixed update by default.
- Listed in Global namespace: E to H
- Inherits or implements
MonoBehaviour
Constructors
| Member | What it is |
|---|---|
GuidedMovement() | Unity makes components itself; use AddComponent or spawn a prefab instead of new. |
Fields
9 private and internal fields
| Member | What it is |
|---|---|
private Transform cachedTransform | This object's transform. |
private bool hasChanged | True when a new sample is waiting to be applied. |
private bool isFixedUpdate | Apply positions in fixed update. Can only be set in edit mode. |
private bool isNormalized | Passed to the path's GetPosition; true means the progress value is normalized (probably 0 to 1). |
private static Logger logger | NLog logger for this class. |
private IPositionRotationPath path | The path followed. |
private Vector3 position | Last sampled position. |
private Quaternion rotation | Last sampled rotation. |
private IUnityUpdateMethod update | Registered fixed update method. |