Table of Contents

Class UpdaterGravity

Namespace
Stride.Particles.Modules
Assembly
Stride.Particles.dll

The UpdaterGravity is a simple version of a force field which updates the particles' velocity over time and acts as a gravitational force

[DataContract("UpdaterGravity")]
[Display("Gravity", null)]
public class UpdaterGravity : ParticleUpdater
Inheritance
UpdaterGravity
Inherited Members

Constructors

UpdaterGravity()

public UpdaterGravity()

Fields

GravitationalAcceleration

Direction and magnitude of the gravitational acceleration

[DataMember(9)]
public Vector3 GravitationalAcceleration

Field Value

Vector3

Methods

Update(float, ParticlePool)

Updates all particles in the ParticlePool using this updater

public override void Update(float dt, ParticlePool pool)

Parameters

dt float

Delta time in seconds which has passed since the last update call

pool ParticlePool

The target ParticlePool which needs to be updated