WaypointPathChooseMoveTarget is an Action that chooses a movement target based on moving forward-only through a set of waypoints. This Action depends on loading a WaypointPathGraph rather than an arbitrary path graph. More...
Public Member Functions | |
override ActionResult | Start (Agent agent, float deltaTime) |
Start is called by an Action Executor one time prior to calling consecutive Execute calls. | |
override ActionResult | Execute (Agent agent, float deltaTime) |
Execute is called by an Action Executor to perform the work of the Action. An Action can run to completion, but will typically perform only the work for a single timestep, then continue at the next timestep for long running actions. | |
override ActionResult | Stop (Agent agent, float deltaTime) |
Stop is called to support cleanup and termination of execution activites. Stop should always be called by the Action Executor after a Start, regardless of the SUCCESS or FAILURE of any Execute calls. | |
Public Attributes | |
const string | ACTION_NAME = "WaypointPathChooseMoveTarget" |
float | closeEnoughDistance = 0.1f |
How close does the AI have to get before the AI is "there". |
WaypointPathChooseMoveTarget is an Action that chooses a movement target based on moving forward-only through a set of waypoints. This Action depends on loading a WaypointPathGraph rather than an arbitrary path graph.
override ActionResult RAIN.Path.WaypointPathChooseMoveTarget.Execute | ( | Agent | agent, |
float | deltaTime | ||
) | [virtual] |
Execute is called by an Action Executor to perform the work of the Action. An Action can run to completion, but will typically perform only the work for a single timestep, then continue at the next timestep for long running actions.
agent | The AI agent owning this action |
deltaTime | timestep in seconds |
Reimplemented from RAIN.Action.Action.
override ActionResult RAIN.Path.WaypointPathChooseMoveTarget.Start | ( | Agent | agent, |
float | deltaTime | ||
) | [virtual] |
Start is called by an Action Executor one time prior to calling consecutive Execute calls.
agent | The AI agent owning this action |
deltaTime | timestep in seconds |
Reimplemented from RAIN.Action.Action.
override ActionResult RAIN.Path.WaypointPathChooseMoveTarget.Stop | ( | Agent | agent, |
float | deltaTime | ||
) | [virtual] |
Stop is called to support cleanup and termination of execution activites. Stop should always be called by the Action Executor after a Start, regardless of the SUCCESS or FAILURE of any Execute calls.
agent | The AI agent owning this action |
deltaTime | timestep in seconds |
Reimplemented from RAIN.Action.Action.
How close does the AI have to get before the AI is "there".