Ctrl+K

Particle

Declaration

public struct Strawberry.Graphics.ParticleSystem.Particle

Represents the state of a single particle managed by the particle system.

Properties

NormalizedAge

Gets the normalized age of the particle between 0 and 1.

float NormalizedAge { get }

Fields

Position

Gets or sets the particle position.

Vector2 Position

Velocity

Gets or sets the particle velocity.

Vector2 Velocity

Acceleration

Gets or sets the particle acceleration.

Vector2 Acceleration

Color

Gets or sets the particle color.

Color Color

Scale

Gets or sets the particle scale.

float Scale

Rotation

Gets or sets the particle rotation in degrees.

float Rotation

AngularVelocity

Gets or sets the angular velocity of the particle.

float AngularVelocity

Lifetime

Gets or sets the total lifetime of the particle.

float Lifetime

Age

Gets or sets the current age of the particle.

float Age

Alive

Gets or sets a value indicating whether the particle is alive.

bool Alive

ImageIndex

Gets or sets the sprite image index for this particle.

int ImageIndex

EmitterIndex

Gets or sets the index of the emitter that owns this particle.

int EmitterIndex