DetectAction is a primitive that is used to detect an object with a certain aspect, then assign the object to a variable in the Agent's actionContext. More...
Public Member Functions | |
override ActionResult | Start (Agent agent, float deltaTime) |
ActionResult.Start. | |
override ActionResult | Execute (Agent agent, float deltaTime) |
ActionResult.Execute Causes the agent to GainInterestIn() the aspect and then attempt to Sense it. If an object with the given aspect is sensed it is assigned to the assignTo variable in the actionContext. | |
override ActionResult | Stop (Agent agent, float deltaTime) |
ActionResult.Stop. | |
Public Attributes | |
string | sensorObject |
sensorObject is the name of the sensor object that should be used | |
string | aspect |
aspect is the Aspect we want to detect via any sensor | |
string | assignTo |
assignTo is the name of a variable that the detected GameObject will be assigned to in the actionContext |
DetectAction is a primitive that is used to detect an object with a certain aspect, then assign the object to a variable in the Agent's actionContext.
override ActionResult RAIN.Primitives.DetectAction.Execute | ( | Agent | agent, |
float | deltaTime | ||
) | [virtual] |
ActionResult.Execute Causes the agent to GainInterestIn() the aspect and then attempt to Sense it. If an object with the given aspect is sensed it is assigned to the assignTo variable in the actionContext.
agent | |
deltaTime |
Reimplemented from RAIN.Action.Action.
override ActionResult RAIN.Primitives.DetectAction.Start | ( | Agent | agent, |
float | deltaTime | ||
) | [virtual] |
ActionResult.Start.
agent | |
deltaTime |
Reimplemented from RAIN.Action.Action.
override ActionResult RAIN.Primitives.DetectAction.Stop | ( | Agent | agent, |
float | deltaTime | ||
) | [virtual] |
ActionResult.Stop.
agent | |
deltaTime |
Reimplemented from RAIN.Action.Action.
aspect is the Aspect we want to detect via any sensor
assignTo is the name of a variable that the detected GameObject will be assigned to in the actionContext
sensorObject is the name of the sensor object that should be used