Particle class

Constructors

Particle(ParticleSystem system, {ParticleGroup? group})

Properties

accumulation double
getter/setter pair
accumulationVector Vector2
final
color Color3i
The color of the particle.
getter/setter pair
depth double
getter/setter pair
flags int
Specifies the type of particle. A particle may be more than one type. Multiple types are chained by logical sums, for example: pd.flags = ParticleType.elasticParticle | ParticleType.viscousParticle.
getter/setter pair
group ParticleGroup
The group which the particle belongs to
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
position Vector2
The world position of the particle.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
system ParticleSystem
The ParticleSystem which the particle belongs to
final
userData Object?
Use this to store application-specific body data.
getter/setter pair
velocity Vector2
The linear velocity of the particle in world co-ordinates.
final

Methods

clone() Particle
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