Particle
namespace Griff.Scenes;
public struct ParticleOne live particle, in world space.
Properties
Section titled “Properties”public float Age { get; init; }AgeFrom
Section titled “AgeFrom”public float AgeFrom { get; init; }Its age before it last moved, for drawing it between steps.
public int Frame { get; init; }The frame of the emitter’s sprite sheet it was born with, when the emitter picks one at random.
public Vector2 From { get; init; }Where it was before it last moved (where it was born, until it moves), for drawing it between steps.
Lifetime
Section titled “Lifetime”public float Lifetime { get; init; }Position
Section titled “Position”public Vector2 Position { get; init; }Progress
Section titled “Progress”public float Progress { get; }0 when born, 1 when it disappears.
Velocity
Section titled “Velocity”public Vector2 Velocity { get; init; }Methods
Section titled “Methods”Deconstruct
Section titled “Deconstruct”public void Deconstruct(out Vector2 Position, out Vector2 Velocity, out float Age, out float Lifetime)Equals
Section titled “Equals”public override bool Equals(object obj)Equals
Section titled “Equals”public bool Equals(Particle other)GetHashCode
Section titled “GetHashCode”public override int GetHashCode()ToString
Section titled “ToString”public override string ToString()