Function _IrrSetBoltProperties

au3Irr2

au3Irr2 Function Reference

_IrrSetBoltProperties

This sets the properties of a bolt node that simulates an electrical effect.

#Include <au3Irrlicht2.au3>
_IrrSetBoltProperties($h_BoltNode, $f_SX, $f_SY, $f_SZ, $f_EX, $f_EY, $f_EZ, $i_UpdateTime=50, $i_Height=10, $f_Thickness=5.0, $i_Parts=10, $i_Bolts=6, $i_Steadyend=$IRR_OFF, $i_Color=0x0000FFFF)

 

Parameters

$h_BoltNode [explanation]
$f_SX, $f_SY, $f_SZ Starting point that the bolt origionates from.
$f_EX, $f_EY, $f_EZ End terminating point for the bolt.
$i_UpdateTime Number of miliseconds between updates to the appearence of the bolt.
$i_Height Radius is the radius of the entire bolt effect.
$f_Thickness Thickness of a single electrical element in the bolt.
$i_Parts Number of segments the bolt is divided into.
$i_Bolts Number of individual electrical arcs that are rendered.
$i_Steadyend Set to IRR_ON ends in a tight point, Set to IRR_OFF it ends with the same width as the rest of the bolt.
$i_Color Diffuse color that is applied to the bolt.

 

Return Value

Success: True
Failure: False

 

Remarks

There are a number of properties that control many aspects of the bolt to produce a wide range of appearences.

 

Related

_IrrAddBoltSceneNode

 

Example


#include "au3Irrlicht2.au3"

Global $hBoltNode, $hTexture, $hCamera

_IrrStart()

$hBoltNode = _IrrAddBoltSceneNode()
_IrrSetBoltProperties($hBoltNode, 0, 90, 0, 0, 0, 0, 50, 10, 2, 10, 6, $IRR_ON, 0xFFFFFFFF)
$hTexture = _IrrGetTexture("./media/ParticleBlue.bmp")
_IrrSetNodeMaterialTexture($hBoltNode, $hTexture, 0)

$hCamera = _IrrAddCamera(40, 50, 40, 0, 50, 0)

While _IrrRunning() And Sleep(10)
    _IrrBeginScene(16, 24, 32)
    _IrrDrawScene()
    _IrrEndScene()
WEnd

_IrrStop()