ParticleSystem.SimulationParams Class Reference

SimulationParams regroups all the parameters needed by the Update and Draw to advance and render the particles. More...

List of all members.

Public Attributes

float Friction = 0.99f
 A global friction applied to all particles.
Vector2 GravityDirection = -GameEngine2D.Base.Math._01
 Gravity direction (unit vector).
float Gravity = 0.8f
 Gravity amount.
Vector2 WindDirection
 Wind direction (unit vector).
float Wind
 Amount of wind.
float BrownianScale = 5.0f
 Amount of brownian motion you want to add to each particle.
float Fade = 0.1f
 The Fade value is a value in 0,1 that controls how fast you want the particle to fade in/fade out (when it dies) The particle's color's alpha value is multiplied by a symmetric fade curve; Fade is the length of the start and end fade areas, for example if Fade is 0.25, the particle will be fully visible at 25% of its age.

Detailed Description

SimulationParams regroups all the parameters needed by the Update and Draw to advance and render the particles.


Member Data Documentation

float BrownianScale = 5.0f

Amount of brownian motion you want to add to each particle.

For each particle, a different random direction is added to the wind everyframe. You can use that to add a touch of gas/dust effects.