au3Irr2 Function Reference
_IrrRemoveAnimatorRemoves an applied animator from a node.
#Include <au3Irrlicht2.au3>
_IrrRemoveAnimator($h_Node, $h_Animator)
Parameters
$h_Node | Handle of a scene Node. |
$h_Animator | Handle of the animator to be removed. |
Return Value
Success: TrueFailure: False
Remarks
After the function call a played animation is stopped or the animator cleaned up so you can apply a new one.
Related
_IrrAddCollisionAnimator, _IrrAddDeleteAnimator, _IrrAddFlyCircleAnimator, _IrrAddFlyStraightAnimator, _IrrAddRotationAnimator, _IrrAddSplineAnimator, _IrrAddFadeAnimator
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 )
local $animator = _IrrAddFlyCircleAnimator($nodeTest, 0, 0, 0, 5, 0.005)
local $timer = TimerInit()
WHILE _IrrRunning()
_IrrBeginScene(0, 0, 0)
_IrrDrawScene()
_IrrEndScene()
if TimerDiff($timer) > 3000 then _IrrRemoveAnimator($nodeTest, $animator)
WEND
_IrrStop()