A constant acceleration everywhere — §27's uniform gravity, and the field form of ParticleEmitterOptions.gravity.
ParticleEmitterOptions.gravity
uniformGravityField(); // (0, −9.81, 0)uniformGravityField(new Vector3(0, -1.62, 0)); // lunar Copy
uniformGravityField(); // (0, −9.81, 0)uniformGravityField(new Vector3(0, -1.62, 0)); // lunar
Prefer the emitter's gravity option when there is exactly one constant acceleration: it costs no virtual call per particle. Use this when gravity must be wrapped by volumeField, or ordered against other fields.
gravity
Optional
Units/s², copied. Omitted means (0, {@link DEFAULT_GRAVITY_Y}, 0).
(0, {@link DEFAULT_GRAVITY_Y}, 0)
RangeError if any component is not finite.
A constant acceleration everywhere — §27's uniform gravity, and the field form of
ParticleEmitterOptions.gravity.Prefer the emitter's
gravityoption when there is exactly one constant acceleration: it costs no virtual call per particle. Use this when gravity must be wrapped by volumeField, or ordered against other fields.