Function _IrrSetNodeScale

au3Irr2

au3Irr2 Function Reference

_IrrSetNodeScale

Sets the scale of the scene node

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

 

Parameters

$h_Node Handle of a scene node
$f_X, $f_Y, $f_Z Scaling factors for X, Y, Z axes.

 

Return Value

Success: True
Failure: False

 

Remarks

None

 

Related

_IrrSetNodePosition, _IrrSetNodeRotation

 

Example


#include "au3Irrlicht2.au3"

_IrrStart()

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

_IrrSetNodeScale($nodeTest, 0.5, 1, 1.5)

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

_IrrStop()