Function _IrrSetNodeRotation

au3Irr2

au3Irr2 Function Reference

_IrrSetNodeRotation

Rotate a node to the specified orientation through its X, Y and Z axis

#Include <au3Irrlicht2.au3>
_IrrSetNodeRotation($h_Node, $f_X, $f_Y, $f_Z)

 

Parameters

$h_Node Handle of a scene node
$f_X, $f_Y, $f_Z Values of rotation along X, Y, Z axes in degrees (0-360)

 

Return Value

Success: True
Failure: False

 

Remarks

None

 

Related

_IrrGetNodePosition, _IrrSetNodePosition, _IrrGetNodeRotation, _IrrGetNodeAbsolutePosition

 

Example


#include "au3Irrlicht2.au3"

_IrrStart()

local $nodeCamera = _IrrAddCamera(10, 0, 0, 0, 0, 0)
local $nodeCube = _IrrAddCubeSceneNode(5)
_IrrSetNodeMaterialTexture( $nodeCube, _IrrGetTexture(".\media\au3irr2_logo.jpg"), 0)
_IrrSetNodeMaterialFlag( $nodeCube, $IRR_EMF_LIGHTING, $IRR_OFF )

_IrrSetNodeRotation($nodeCube, 90, 45, 45 )

WHILE _IrrRunning()
    _IrrBeginScene(50, 50, 50)
    _IrrDrawScene()
    _IrrEndScene()
WEND

_IrrStop()