AIKinematicController is used to enforce direct control over AI position. AIKinematic controller translates movement requests from the RAIN motion system directly into position and orientation transforms on the Avatar game object. More...
Public Member Functions | |
void | Init (Agent agent, float deltaTime) |
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. | |
virtual void | HandleAIAnimationStateTransition (AnimationParams animparams) |
HandleAIAnimationStateTransition is called whenever the AI wants to transition from its current animation state to a new one. If a null animationState is requested, animation playback will be stopped. If a non-null value is passed and animation has not already been started, it will be started. | |
virtual void | AIRequest_StartAnimation () |
AIRequest_StartAnimation is called to start animation playback based on the last set animation state. | |
virtual void | AIRequest_StopAnimation () |
AIRequest_StopAnimation is called to stop all animation playback. The last state is remembered so that a subsequent call to AIRequest_StartAnimation will begin playback with the last state. | |
virtual void | HandleAIAnimationStateMovementOverride (AnimationParams animparams) |
The default implementation just passes the override to the HandleAIAnimationStateTransition Generally this method is called to override a default behavior - usually to override animation chosen through movement code. |
AIKinematicController is used to enforce direct control over AI position. AIKinematic controller translates movement requests from the RAIN motion system directly into position and orientation transforms on the Avatar game object.
virtual void RAIN.Motion.AIKinematicController.AIRequest_StartAnimation | ( | ) | [virtual] |
AIRequest_StartAnimation is called to start animation playback based on the last set animation state.
Implements RAIN.Animation.IAnimationRequestHandler.
virtual void RAIN.Motion.AIKinematicController.AIRequest_StopAnimation | ( | ) | [virtual] |
AIRequest_StopAnimation is called to stop all animation playback. The last state is remembered so that a subsequent call to AIRequest_StartAnimation will begin playback with the last state.
Implements RAIN.Animation.IAnimationRequestHandler.
override void RAIN.Motion.AIKinematicController.ApplyPhysicsToAvatar | ( | Agent | agent, |
float | deltaTime | ||
) | [virtual] |
override void RAIN.Motion.AIKinematicController.CalculatePhysics | ( | Agent | agent, |
float | deltaTime | ||
) | [virtual] |
virtual void RAIN.Motion.AIKinematicController.HandleAIAnimationStateMovementOverride | ( | AnimationParams | animparams | ) | [virtual] |
The default implementation just passes the override to the HandleAIAnimationStateTransition Generally this method is called to override a default behavior - usually to override animation chosen through movement code.
animparams | The state and speed to transition to, or null to stop the animation |
Implements RAIN.Animation.IAnimationRequestHandler.
virtual void RAIN.Motion.AIKinematicController.HandleAIAnimationStateTransition | ( | AnimationParams | animparams | ) | [virtual] |
HandleAIAnimationStateTransition is called whenever the AI wants to transition from its current animation state to a new one. If a null animationState is requested, animation playback will be stopped. If a non-null value is passed and animation has not already been started, it will be started.
animparams | The state and speed to transition to, or null to stop animation |
Implements RAIN.Animation.IAnimationRequestHandler.
override void RAIN.Motion.AIKinematicController.UpdateFromAvatar | ( | Agent | agent, |
float | deltaTime | ||
) | [virtual] |