Particle object returned by CreateParticle. More...
Public Member Functions | |
override string | ToString () |
Return the string representation of this Particle. | |
Public Attributes | |
Vector2 | Position |
Position. | |
Vector2 | Velocity |
Velocity. | |
float | Age |
Age (particle dies when Age >= LifeSpan). | |
float | LifeSpan |
Life span. | |
float | LifeSpanRcp |
Life span reciprocal - if you don't use the automatic init, you must make sure to set this to 1.0f/LifeSpan. | |
float | Angle |
Rotation angle. | |
float | AngularVelocity |
Angular velocity. | |
float | ScaleStart |
Scale when Age=0.0. | |
float | ScaleDelta |
ScaleDelta must be initialized to ( scale_end - ScaleStart ) / LifeSpan. | |
Vector4 | ColorStart |
Color when Age=0.0. | |
Vector4 | ColorDelta |
ColorDelta must be initialized to ( color_end - ColorStart ) / LifeSpan. | |
Properties | |
float | Scale [get] |
Scale. | |
Vector4 | Color [get] |
Color. | |
bool | Dead [get] |
Check if the particle is still alive. |
Particle object returned by CreateParticle.