au3Irr2 Function Reference
_IrrAddRotationAnimatorAnimator spinning its parent node around each axis.
#Include <au3Irrlicht2.au3>
_IrrAddRotationAnimator($h_Node, $f_RotX, $f_RotY, $f_RotZ)
Parameters
$h_Node | Handle of a scene Node. |
$f_RotX, $f_RotY, $f_RotZ | Specify number of radians the object is spun around each axis. |
Return Value
Success: Handle of the created animator.Failure: False
Remarks
None
Related
_IrrRemoveAnimator
Example
#include "au3Irrlicht2.au3"
_IrrStart()
local $nodeCamera = _IrrAddCamera(10,10,10, 0,0,0 )
local $nodeTest = _IrrAddTestSceneNode()
_IrrSetNodeMaterialTexture( $nodeTest, _IrrGetTexture(".\media\au3irr2_logo.jpg"), 0)
_IrrSetNodeMaterialFlag( $nodeTest, $IRR_EMF_LIGHTING, $IRR_OFF )
_IrrAddRotationAnimator($nodeTest, 0.1, 0.2, 0.3)
WHILE _IrrRunning()
_IrrBeginScene(0, 0, 0)
_IrrDrawScene()
_IrrEndScene()
WEND
_IrrStop()