au3Irr2 Function Reference
_IrrAddBeamSceneNodeAdd a beam scene node.
#Include <au3Irrlicht2.au3>
_IrrAddBeamSceneNode()
Parameters
None. | |
Return Value
Success: Handle to a beam node.Failure: False and @error 1
Remarks
The beam is a special scene node that can be used to replicate beam effects like lasers and tracer gun fire.This command simply adds the beam you should then make calls to set the beams properties.
Related
_IrrSetBeamSize, _IrrSetBeamPosition
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()