Function _IrrGetNodeRotation

au3Irr2

au3Irr2 Function Reference

_IrrGetNodeRotation

Returns array with rotation values of a scene node.

#Include <au3Irrlicht2.au3>
_IrrGetNodeRotation($h_Node)

 

Parameters

$h_Node Handle of a scene node

 

Return Value

success: 0-based array with three elements for X, Y, Z rotation.
failure: False

 

Remarks

None.

 

Related

_IrrGetNodePosition, _IrrSetNodePosition, _IrrSetNodeRotation, _IrrGetNodeAbsolutePosition

 

Example


#include "au3Irrlicht2.au3"

_IrrStart()

local $nodeTest = _IrrAddTestSceneNode()
local $nodeCamera = _IrrAddFPSCamera()
_IrrSetNodePosition($nodeCamera, 0, 0, -50)

local $aVector3df

WHILE _IrrRunning()
    _IrrBeginScene( 0, 0, 50 )
    _IrrDrawScene()

    $aVector3df = _IrrGetNodeRotation($nodeCamera)
    _IrrSetWindowCaption("Camera rotation (x/y/z): " & _
        int($aVector3df[0]) & " / " & int($aVector3df[1]) & " / " & int($aVector3df[2]))

    _IrrEndScene()
WEND

_IrrStop()