Public Member Functions
RAIN.Motion.AIKinematicController Class Reference

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...

Inheritance diagram for RAIN.Motion.AIKinematicController:
RAIN.Motion.AvatarController RAIN.Animation.IAnimationRequestHandler RAIN.Core.RAINComponent

List of all members.

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_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.

Detailed Description

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.


Member Function Documentation

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]

See AvatarController.

Parameters:
agent
deltaTime

Implements RAIN.Motion.AvatarController.

override void RAIN.Motion.AIKinematicController.CalculatePhysics ( Agent  agent,
float  deltaTime 
) [virtual]

See AvatarController.

Parameters:
agent
deltaTime

Implements RAIN.Motion.AvatarController.

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.

Parameters:
animparamsThe state and speed to transition to, or null to stop the animation

Implements RAIN.Animation.IAnimationRequestHandler.

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.

Parameters:
animparamsThe 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]

See AvatarController.

Parameters:
agent
deltaTime

Implements RAIN.Motion.AvatarController.