au3Irr2 Function Reference
_IrrGetNodePositionReturns array with position coordinates of a scene node.
#Include <au3Irrlicht2.au3>
_IrrGetNodePosition($h_Node)
Parameters
$h_Node | Handle of a scene node |
Return Value
success: 0-based array with three elements for X, Y, Z coordinates.failure: False
Remarks
None.
Related
_IrrSetNodePosition, _IrrGetNodeRotation, _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 = _IrrGetNodePosition($nodeCamera)
_IrrSetWindowCaption("Camera position (x/y/z): " & _
int($aVector3df[0]) & " / " & int($aVector3df[1]) & " / " & int($aVector3df[2]))
_IrrEndScene()
WEND
_IrrStop()