au3Irr2 Function Reference
_IrrAddFlyStraightAnimatorAnimator moving its parent node in a straight line from a start to an end point.
#Include <au3Irrlicht2.au3>
_IrrAddFlyStraightAnimator($h_Node, $f_StartX, $f_StartY, $f_StartZ, $f_EndX, $f_EndY, $f_EndZ, $i_Time, $i_DoLoop)
Parameters
$h_Node | Handle of a scene Node. |
$f_StartX, $f_StartY, $f_StartZ | Specify the start point of the path. |
$f_EndX, $f_EndY, $f_EndZ | Specify the end point of the path. |
$i_Time | Number of milliseconds the animator will take to move the node from start to end point. |
$i_DoLoop | Determines single or continously movement type: $IRR_ONE_SHOT - For a single animation and then stop. $IRR_LOOP - To continuously repeat the animation. |
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 )
_IrrAddFlyStraightAnimator($nodeTest, -25, -10, -10, 25, 10, 2, 5000, $IRR_LOOP)
WHILE _IrrRunning()
_IrrBeginScene(0, 0, 0)
_IrrDrawScene()
_IrrEndScene()
WEND
_IrrStop()