ActiveCircleReposition
A class in Root.Township, Alta.Intelligence.
Server: running action that walks a creature to a spot rotated around its target (and optionally backwards), to reposition mid fight. Settings come from AgentCircleRepositionSettings.
- Listed in Creatures and AI
- Inherits or implements
BasicActiveAction<Agent, AgentCircleRepositionSettings> - Documented in Actions and decisions
Constructors
| Member | What it is |
|---|---|
ActiveCircleReposition() | Creates an ActiveCircleReposition with default values. |
Methods
2 private and internal methods
| Member | What it is |
|---|---|
private void FinishOrCancel(IActiveAction finished) | Stops the walker and director and clears the forward facing flag. |
private bool GetPosition(Vector3 topicPosition, Vector3 targetPosition, out Vector3 intendedPosition) | Works out the destination by rotating the offset from the target by RepositionAngle, then raycasts for walls and ground. False if no ground is found. |