![]() |
Public API Reference |
#include <motion.h>
Inheritance diagram for iMotionTemplate:
Public Methods | |
virtual const char * | GetName ()=0 |
Get the name of this motion. More... | |
virtual const float | GetDuration ()=0 |
Get the duration of this motion. More... | |
virtual const int | GetLoopCount ()=0 |
Get the number of times to loop the motion. More... | |
virtual const bool | GetLoopFlip ()=0 |
Returns true if the motion will play backwards after playing forwards. More... | |
virtual void | SetDuration (float duration)=0 |
Set the length of this motion. More... | |
virtual void | SetLoopCount (int looping)=0 |
Set the default number of times to looping this motion. More... | |
virtual void | SetLoopFlip (bool enable)=0 |
This setting controls whether the motion will be played reversed after each loop. More... | |
virtual int | AddBone (const char *name)=0 |
Add the bone name to the list of handled bones. More... | |
virtual int | FindBoneByName (const char *name)=0 |
Find a bone index by name. More... | |
virtual void | AddFrameBone (int boneid, float frametime, const csVector3 &position, const csQuaternion &rotation)=0 |
Add a keyframe to a handled bone by the bones index. More... |
This represents a motion that can be used on a skeleton via the iMotionController interface.
Definition at line 43 of file motion.h.
|
Add the bone name to the list of handled bones. Returns the index of the into the array. |
|
Add a keyframe to a handled bone by the bones index.
|
|
Find a bone index by name.
|
|
Get the duration of this motion.
|
|
Get the number of times to loop the motion.
|
|
Returns true if the motion will play backwards after playing forwards.
|
|
Get the name of this motion.
|
|
Set the length of this motion.
|
|
Set the default number of times to looping this motion. Setting this value to -1 will loop forever. Setting this value to 0 will disable looping. |
|
This setting controls whether the motion will be played reversed after each loop.
|