Skip to content

IParticleForce Interface

Definition

Namespace: Brine2D.Systems.Rendering

Applies a per-frame velocity delta to a particle during the update pass. Implement this interface and add instances to Forces to extend particle physics beyond gravity and turbulence.

C#
public interface IParticleForce

Derived
DirectionalWind
PointAttractor

Methods
Evaluate\(Vector2, float\) Returns the velocity change to add to the particle for this frame. deltaTime is in seconds. The returned vector is added directly to the particle's BaseVelocity and is therefore subject to subsequent damping and speed-over-lifetime scaling.