AnimateAction is a primitive that can be used to manipulate animation in RAIN characters. The easiest way to link animation to your character is by adding an AnimationRequestHandler to it - either directly or through a controller that supports IAnimationRequestHandler (e.g., an AIAnimationController). More...
Public Member Functions | |
override ActionResult | Start (Agent agent, float deltaTime) |
ActionResult.Start. | |
override ActionResult | Execute (Agent agent, float deltaTime) |
ActionResult.Execute Causes the HandleAIAnimationStateTransition method of the agent.Avatar to be activated (via BroadcastMessage) | |
override ActionResult | Stop (Agent agent, float deltaTime) |
ActionResult.Stop NOTE - Does NOT explicitly stop your animation. If your animation is looping, you will need to turn it off by setting a different animation state or stopping it manually. | |
Public Attributes | |
string | animation |
the animation associated with this action | |
float | waitforsec |
the number of seconds to wait after triggering the animation before moving on. This is typically the length of the animation itself. |
AnimateAction is a primitive that can be used to manipulate animation in RAIN characters. The easiest way to link animation to your character is by adding an AnimationRequestHandler to it - either directly or through a controller that supports IAnimationRequestHandler (e.g., an AIAnimationController).
override ActionResult RAIN.Primitives.AnimateAction.Execute | ( | Agent | agent, |
float | deltaTime | ||
) | [virtual] |
ActionResult.Execute Causes the HandleAIAnimationStateTransition method of the agent.Avatar to be activated (via BroadcastMessage)
agent | |
deltaTime |
Reimplemented from RAIN.Action.Action.
override ActionResult RAIN.Primitives.AnimateAction.Start | ( | Agent | agent, |
float | deltaTime | ||
) | [virtual] |
ActionResult.Start.
agent | |
deltaTime |
Reimplemented from RAIN.Action.Action.
override ActionResult RAIN.Primitives.AnimateAction.Stop | ( | Agent | agent, |
float | deltaTime | ||
) | [virtual] |
ActionResult.Stop NOTE - Does NOT explicitly stop your animation. If your animation is looping, you will need to turn it off by setting a different animation state or stopping it manually.
agent | |
deltaTime |
Reimplemented from RAIN.Action.Action.
the animation associated with this action
the number of seconds to wait after triggering the animation before moving on. This is typically the length of the animation itself.