ParticleGravity class final

Pulls particles down. Sparks and debris; not smoke.

Inheritance

Constructors

ParticleGravity([double acceleration = -9.8])
const

Properties

acceleration → double
Metres per second squared. Negative is downwards, and a fraction of real gravity usually looks better than the real figure — nine-eighty reads as heavy for something the size of a spark.
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

apply(Particle particle, double dt) → void
Advances one particle by dt. Called once per particle per step, after its age has been updated and before it is moved.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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