au3Irr2 Function Reference
_IrrSetBeamPositionSets the start and end positions of a beam node. The beam will stretch between the two nodes.
#Include <au3Irrlicht2.au3>
_IrrSetBeamPosition($h_BeamNode, $f_SX, $f_SY, $f_SZ, $f_EX, $f_EY, $f_EZ)
Parameters
$h_BeamNode | Handle to a beam node. |
$f_SX | X start position |
$f_SY | Y start position |
$f_SZ | Z start position |
$f_EX | X end position |
$f_EY | X end position |
$f_EZ | X end position |
Return Value
Success: TrueFailure: False
Remarks
None.
Related
_IrrAddBeamSceneNode, _IrrSetBeamSize
Example
#include "au3Irrlicht2.au3"
Global $hBeamNode
Global $hTexture
Global $hCamera
_IrrStart()
$hBeamNode = _IrrAddBeamSceneNode()
_IrrSetBeamPosition($hBeamNode, 15.0, 20.0, 20.0, -15.0, -20.0, -20.0)
_IrrSetBeamSize($hBeamNode, 5.0)
$hTexture = _IrrGetTexture("./media/beam.png")
_IrrSetNodeMaterialTexture($hBeamNode, $hTexture, 0)
_IrrSetNodeMaterialType($hBeamNode, $IRR_EMT_TRANSPARENT_ALPHA_CHANNEL)
$hCamera = _IrrAddCamera(50, 0, 0, 0, 0, 0)
While _IrrRunning() And Sleep(10)
_IrrBeginScene(0, 0, 0)
_IrrDrawScene()
_IrrEndScene()
WEnd
_IrrStop()