Skip to content
Alessandro Febretti edited this page Feb 8, 2014 · 5 revisions

Last revision: ver. 4.2 - 7 September 2013

module cyclops extends Entity wraps cyclops::AnimatedObject

Represents an instance of a loaded, animated 3D model. If the model contains animations, they can be played back through this class. Models using the Autodesk .fbx format are supported by default. AnimatedObject also supports loading a set of separate model files that can be played back in a flipbook-style animation.

Methods

Method(s) Description
static AnimatedObject create(string modelName) Creates an object using a loaded model with the specified name.
bool hasAnimations() Returns true if the object contains animations.
int getNumAnimations()
playAnimation(animId)
loopAnimation(animId)
pauseAnimation(animId)
stopAllAnimations()
int getCurAnimation()
float getAnimationLength(int animId)
float getAnimationStart(int animId) setAnimationStart(int animId, float start)
int getCurrentModelIndex(), setCurrentModelIndex(int modelIndex) Sets or gets the index of the currently visualized model (valid only for multi-model animated entities).
int getNumModels() Gets the number of models stored in this entity. Use with setCurrentModelIndex.
Clone this wiki locally