Space Engineers
Classes | Public Member Functions | Public Attributes | Properties | List of all members
VRageRender.Animations.MyAnimationController Class Reference

Animation controller contains and drives skeletal animations. It also serves as an abstraction layer, hiding low/level classes. More...

Classes

class  MyResultBonesPool
 Simple pool allocator for bone results. More...
 

Public Member Functions

 MyAnimationController ()
 
MyAnimationStateMachine GetLayerByName (string layerName)
 
MyAnimationStateMachine GetLayerByIndex (int index)
 
MyAnimationStateMachine CreateLayer (string name, int insertionIndex=-1)
 Create animation layer with unique name. Parameter insertionIndex can be left -1 to add the layer at the end. If layer with same name is already present, method fails and returns null. More...
 
void DeleteAllLayers ()
 
int GetLayerCount ()
 
void Update (ref MyAnimationUpdateData animationUpdateData)
 Update this animation controller. More...
 
void TriggerAction (MyStringId actionName)
 Trigger an action in all layers. If there is a transition having given (non-null) name, it is followed immediatelly. Conditions of transition are ignored. More...
 
void UpdateInverseKinematics (ref MyCharacterBone[] characterBonesStorage)
 Perform inverse kinematics. More...
 

Public Attributes

readonly MyResultBonesPool ResultBonesPool
 
readonly MyAnimationInverseKinematics InverseKinematics
 

Properties

int FrameCounter [get]
 
MyAnimationVariableStorage Variables [get]
 

Detailed Description

Animation controller contains and drives skeletal animations. It also serves as an abstraction layer, hiding low/level classes.

Definition at line 16 of file MyAnimationController.cs.

Constructor & Destructor Documentation

VRageRender.Animations.MyAnimationController.MyAnimationController ( )
inline

Definition at line 157 of file MyAnimationController.cs.

Member Function Documentation

MyAnimationStateMachine VRageRender.Animations.MyAnimationController.CreateLayer ( string  name,
int  insertionIndex = -1 
)
inline

Create animation layer with unique name. Parameter insertionIndex can be left -1 to add the layer at the end. If layer with same name is already present, method fails and returns null.

Definition at line 206 of file MyAnimationController.cs.

void VRageRender.Animations.MyAnimationController.DeleteAllLayers ( )
inline

Definition at line 231 of file MyAnimationController.cs.

MyAnimationStateMachine VRageRender.Animations.MyAnimationController.GetLayerByIndex ( int  index)
inline

Definition at line 194 of file MyAnimationController.cs.

MyAnimationStateMachine VRageRender.Animations.MyAnimationController.GetLayerByName ( string  layerName)
inline

Definition at line 180 of file MyAnimationController.cs.

int VRageRender.Animations.MyAnimationController.GetLayerCount ( )
inline

Definition at line 238 of file MyAnimationController.cs.

void VRageRender.Animations.MyAnimationController.TriggerAction ( MyStringId  actionName)
inline

Trigger an action in all layers. If there is a transition having given (non-null) name, it is followed immediatelly. Conditions of transition are ignored.

Definition at line 335 of file MyAnimationController.cs.

void VRageRender.Animations.MyAnimationController.Update ( ref MyAnimationUpdateData  animationUpdateData)
inline

Update this animation controller.

Parameters
animationUpdateDataSee commentary in MyAnimationUpdateData

Definition at line 247 of file MyAnimationController.cs.

void VRageRender.Animations.MyAnimationController.UpdateInverseKinematics ( ref MyCharacterBone[]  characterBonesStorage)
inline

Perform inverse kinematics.

Definition at line 344 of file MyAnimationController.cs.

Member Data Documentation

readonly MyAnimationInverseKinematics VRageRender.Animations.MyAnimationController.InverseKinematics

Definition at line 147 of file MyAnimationController.cs.

readonly MyResultBonesPool VRageRender.Animations.MyAnimationController.ResultBonesPool

Definition at line 145 of file MyAnimationController.cs.

Property Documentation

int VRageRender.Animations.MyAnimationController.FrameCounter
get

Definition at line 149 of file MyAnimationController.cs.

MyAnimationVariableStorage VRageRender.Animations.MyAnimationController.Variables
get

Definition at line 173 of file MyAnimationController.cs.


The documentation for this class was generated from the following file: