Particlesystem: Disable looping in running Particle-Animation

Software: Away3D 4.x

Locutus, Newbie
Posted: 03 January 2013 12:48 PM   Total Posts: 1

It would be great, if you add a way to stop the looping in a running particle animator.

By this change a particle effect could slowly disapear after a specific user interaction, because no more particled are generated.

At the moment you can only set looping = false in the constructor of ParticleAnimationSet and the particle effect must have a fixed life time.

Another limitation with the fixed life time:
You draw a geometric symbol with fire particles emitted from the ground. (for example a pentagramm). If you set looping = true and calculate the coordinates and the start time of the particle with the index, it is possible to draw the symbol line for line. But it can not diseaper slowly.



Cheng Liao, Administrator
Posted: 03 January 2013 04:21 PM   Total Posts: 116   [ # 1 ]

These is a magic way to implement the effect your want:
Add a ParticleFollowNode to the particle animation. When you want to stop the particle slowly, just set the follow target of ParticleFollowState to a infinity far distance. For more information on how to use ParticleFollowNode, please see this example:



Away3D Forum

Member Login