au3Irr2 Function Reference
_IrrRemoveAffectorsRemoves all affectors from a particle system.
#Include <au3Irrlicht2.au3>
_IrrRemoveAffectors($h_ParticleSystem)
Parameters
$h_ParticleSystem | Handle of an Irrlicht particle system. |
Return Value
success: truefailure: false
Remarks
You might use this if you want to change the direction or strength of the wind for example.
Related
_IrrAddParticleSystemToScene, _IrrSetParticleAffectorEnable
Example
#include "au3Irrlicht2.au3"
_IrrStart()
; add particle system with default emitter to the irrlicht scene manager
local $particleSystem = _IrrAddParticleSystemToScene($IRR_DEFAULT_EMITTER)
local $ParticleTexture = _IrrGetTexture( "./media/ParticleGrey.bmp" )
; add two affectors to the particle system:
_IrrAddRotationAffector ( $particleSystem, 50.0, -120.0, 50.0, 30.0,0.0,0.0 )
_IrrAddFadeOutParticleAffector( $particleSystem, 100, 255, 0, 0)
_IrrSetNodeMaterialTexture( $particleSystem, $ParticleTexture, 0 )
_IrrSetNodeMaterialFlag( $particleSystem, $IRR_EMF_LIGHTING, $IRR_OFF )
_IrrSetNodeMaterialType ( $particleSystem, $IRR_EMT_TRANSPARENT_ADD_COLOR )
local $nodeCamera = _IrrAddCamera( 80,0,0, 0,50,50)
local $time = TimerInit()
WHILE _IrrRunning()
if TimerDiff($time) > 8000 then _IrrRemoveAffectors($particleSystem)
_IrrBeginScene( 0,0,50 )
_IrrDrawScene()
_IrrEndScene()
WEND
_IrrStop()