AIAnimationController is the motion controller for AI whose motion is driven by or strongly linked to animation. AIAnimationController requires the attachment of an AIAnimationExtender. For Mixamo animations, use the supplied MixamoAIAnimationExtender script provided with RAIN. You may also write your own AIAnimationExtender to link motion control to your custom animation rig. More...
Classes | |
class | AnimationMap |
AnimationMap is used to map an animation state to a set of motion parameters that help RAIN to determine when to transition to a given state. More... | |
Public Member Functions | |
void | Start () |
Standard Unity Start() callback. Initializes components. | |
virtual void | HandleAIAnimationStateTransition (AnimationParams animparams) |
Implementation of the IAnimationRequestHandler interface. Work is passed off to the Extender by calling extender.SetAnimationState. | |
virtual void | AIRequest_StartAnimation () |
Implementation of the IAnimationRequestHandler interface. Currenly a no-op. | |
virtual void | AIRequest_StopAnimation () |
Implementation of the IAnimationRequestHandler interface. Currenly a no-op. | |
virtual void | HandleAIAnimationStateMovementOverride (AnimationParams animparams) |
A callback that is used to handled overrides to the animation map. Once called, the override state will take priority over the animation map until HandleAIAnimationStateMovementOverride is called again with a null state value. | |
override void | UpdateFromAvatar (Agent agent, float deltaTime) |
See AvatarController. | |
override void | CalculatePhysics (Agent agent, float deltaTime) |
See AvatarController. | |
override void | ApplyPhysicsToAvatar (Agent agent, float deltaTime) |
See AvatarController for basic info. If the current selected animation is not a turning animation (isTurning is false) then rotation is applied. Speed is computed here and transmitted to animation through extender.SetAnimationSpeed. | |
Public Attributes | |
AnimationMap[] | animationMap = new AnimationMap[0] |
The animation map. |
AIAnimationController is the motion controller for AI whose motion is driven by or strongly linked to animation. AIAnimationController requires the attachment of an AIAnimationExtender. For Mixamo animations, use the supplied MixamoAIAnimationExtender script provided with RAIN. You may also write your own AIAnimationExtender to link motion control to your custom animation rig.
virtual void RAIN.Motion.AIAnimationController.AIRequest_StartAnimation | ( | ) | [virtual] |
Implementation of the IAnimationRequestHandler interface. Currenly a no-op.
Implements RAIN.Animation.IAnimationRequestHandler.
virtual void RAIN.Motion.AIAnimationController.AIRequest_StopAnimation | ( | ) | [virtual] |
Implementation of the IAnimationRequestHandler interface. Currenly a no-op.
Implements RAIN.Animation.IAnimationRequestHandler.
override void RAIN.Motion.AIAnimationController.ApplyPhysicsToAvatar | ( | Agent | agent, |
float | deltaTime | ||
) | [virtual] |
See AvatarController for basic info. If the current selected animation is not a turning animation (isTurning is false) then rotation is applied. Speed is computed here and transmitted to animation through extender.SetAnimationSpeed.
agent | |
deltaTime |
Implements RAIN.Motion.AvatarController.
override void RAIN.Motion.AIAnimationController.CalculatePhysics | ( | Agent | agent, |
float | deltaTime | ||
) | [virtual] |
virtual void RAIN.Motion.AIAnimationController.HandleAIAnimationStateMovementOverride | ( | AnimationParams | animparams | ) | [virtual] |
A callback that is used to handled overrides to the animation map. Once called, the override state will take priority over the animation map until HandleAIAnimationStateMovementOverride is called again with a null state value.
animationState | The animationState to use |
Implements RAIN.Animation.IAnimationRequestHandler.
virtual void RAIN.Motion.AIAnimationController.HandleAIAnimationStateTransition | ( | AnimationParams | animparams | ) | [virtual] |
Implementation of the IAnimationRequestHandler interface. Work is passed off to the Extender by calling extender.SetAnimationState.
animationState | The animation state to transition to |
Implements RAIN.Animation.IAnimationRequestHandler.
void RAIN.Motion.AIAnimationController.Start | ( | ) |
Standard Unity Start() callback. Initializes components.
override void RAIN.Motion.AIAnimationController.UpdateFromAvatar | ( | Agent | agent, |
float | deltaTime | ||
) | [virtual] |
The animation map.