AccelerationModule class Particles

Adds a constant acceleration (world units per second squared) to every particle's velocity each step. Use it for wind or as an extra gravity on top of the system's own gravity.

Inheritance

Constructors

AccelerationModule(Vector3 acceleration)
Creates a constant-acceleration force.

Properties

acceleration → Vector3
The acceleration applied each step.
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
spawn(ParticleStorage storage, int index) → void
Initializes the freshly spawned particle at index.
inherited
toString() String
A string representation of this object.
inherited
update(ParticleStorage storage, double dt) → void
Advances every live particle by dt seconds.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited