Class UpdaterGravity
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
Methods
Update(float, ParticlePool)
Updates all particles in the ParticlePool using this updater
public override void Update(float dt, ParticlePool pool)
Parameters
dt
floatDelta time in seconds which has passed since the last update call
pool
ParticlePoolThe target ParticlePool which needs to be updated