UpdaterGravity Class
Namespace: Stride.Particles.ModulesAssembly: 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
Derived from UpdaterGravity:
[DataContract("UpdaterGravity")]
[Display("Gravity", null)]
public class UpdaterGravity : ParticleUpdater
Name | Description | |
---|---|---|
Constructors | ||
UpdaterGravity() | ||
Fields | ||
GravitationalAcceleration | Direction and magnitude of the gravitational acceleration |
|
Methods | ||
Update(Single, ParticlePool) |
Constructors
UpdaterGravity()
public UpdaterGravity()
Fields
GravitationalAcceleration
Direction and magnitude of the gravitational acceleration
[DataMember(9)]
public Vector3 GravitationalAcceleration
Field Value
Type | Description |
---|---|
Vector3 |
Methods
Update(Single, ParticlePool)
public override void Update(float dt, ParticlePool pool)
Parameters
Type | Name | Description |
---|---|---|
System.Single | dt | |
ParticlePool | pool |