|
TorqueScript Reference
|
Inherits SimObject.
| String getAnimation | ( | ) |
Gets current animation asset Id.
| Integer getAnimationFrame | ( | ) |
Gets current animation frame.
| Float getAnimationTime | ( | ) |
Gets current animation time.
| Float getAnimationTimeScale | ( | ) |
Get the animation time scale for this render-proxy.
| String getImage | ( | ) |
Gets current image asset Id.
| Integer getImageFrame | ( | ) |
Gets current image Frame.
| Boolean getIsAnimationFinished | ( | ) |
Checks animation status.
| Boolean isStaticFrameProvider | ( | ) |
Gets whether the render-proxy is in static or dynamic (animated)mode.
| void pauseAnimation | ( | bool | enable | ) |
Pause the current animation
| enable | If true, pause the animation. If false, continue animating |
| Boolean playAnimation | ( | string | animationAssetId | ) |
Plays an animation.
| animationAssetId | The animation asset Id to play |
| void setAnimationFrame | ( | int | frame | ) |
Sets the current animation frame.
| frame | Which frame of the animation to display |
| void setAnimationTimeScale | ( | float | timeScale | ) |
Change the rate of animation.
| timeScale | Value which will scale the frame animation speed. 1 by default. |
| Boolean setImage | ( | string | imageAssetId | ) |
Sets imageAssetId/Frame.
| imageAssetId | The image asset Id to display |
| frame | The frame of the image to display |
| Boolean setImageFrame | ( | int | frame | ) |
Sets image frame.
| frame | The frame to display |
| void stopAnimation | ( | ) |
Stop the current animation
1.8.10