A class that represents an object animation.
|start||Starts an animation.|
|stop||Stops an animation.|
|update||Updates an animation.|
|void start( int speedType = 0 , double speedValue = 0 , int repeatType = 0 , double repeatValue = 0 )|
Used in conjuction with speedValue to manipulate the speed with which the animation is run. Can be one of the following values:
Used in conjunction with repeatValue to define how the animation will repeat. If not REPEAT_TYPE_DEFAULT, this will override the repeat type and value specified in the Animation Creator. Valid values are as follows:
Starts an animation.
|void stop( )|
Stops an animation.
|void update( double updateTime = -1 )|
The simulation time on which to base the update. If not passed, it will update based on the current simulation time.
Updates an animation.
The method will update all of the positions of an object's animation components based on the update time and the keyframes defined in the animation. Usually you do not need to call this explicitly, since FlexSim's engine automatically updates active animations when it repaints any 3D windows. However, if your simulation logic is dependent on sub-component positions that change during an animation, you should call update() before getting those positions, or else the retrieved data will be based on the last time a window was repainted. This will cause different results with each simulation run.