ParticleSystemTracker

Namespace: Murder.Core.Particles
Assembly: Murder.dll

public sealed struct ParticleSystemTracker

⭐ Constructors

public ParticleSystemTracker(Emitter emitter, Particle particle, int seed)

Parameters
emitter Emitter
particle Particle
seed int

⭐ Properties

CurrentTime

public float CurrentTime { get; }

Returns
float

Emitter

public readonly Emitter Emitter;

Returns
Emitter

LastEmitterPosition

public Vector2 LastEmitterPosition { get; }

The last position of the emitter.

Returns
Vector2

Particle

public readonly Particle Particle;

Returns
Particle

Particles

public ReadOnlySpan<T> Particles { get; }

Returns
ReadOnlySpan<T>

⭐ Methods

Step(bool, Vector2, int)

public bool Step(bool allowSpawn, Vector2 emitterPosition, int id)

Makes a "step" throughout the particle system.

Parameters
allowSpawn bool

emitterPosition Vector2

id int

Returns
bool

Start(Vector2, int)

public void Start(Vector2 emitterPosition, int id)

Parameters
emitterPosition Vector2
id int