iMotionTemplate Struct Reference
[Mesh support]
Interface to loading motion data.
More...
#include <motion.h>
Inheritance diagram for iMotionTemplate:

Public Methods | |
virtual const char * | GetName ()=0 |
Get the name of this motion. | |
virtual const float | GetDuration ()=0 |
Get the duration of this motion. | |
virtual const int | GetLoopCount ()=0 |
Get the number of times to loop the motion. | |
virtual const bool | GetLoopFlip ()=0 |
Returns true if the motion will play backwards after playing forwards. | |
virtual void | SetDuration (float duration)=0 |
Set the length of this motion. | |
virtual void | SetLoopCount (int looping)=0 |
Set the default number of times to looping this motion. | |
virtual void | SetLoopFlip (bool enable)=0 |
This setting controls whether the motion will be played reversed after each loop. | |
virtual int | AddBone (const char *name)=0 |
Add the bone name to the list of handled bones. | |
virtual int | FindBoneByName (const char *name)=0 |
Find a bone index by name. | |
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. |
Detailed Description
Interface to loading motion data.This represents a motion that can be used on a skeleton via the iMotionController interface.
Definition at line 43 of file motion.h.
Member Function Documentation
|
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.
|
The documentation for this struct was generated from the following file:
- iengine/motion.h
Generated for Crystal Space by doxygen 1.2.18