ParticleDef class

Constructors

ParticleDef()

Properties

color ParticleColor
The color of the particle.
read / write
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.b2_elasticParticle | ParticleType.b2_viscousParticle.
read / write
position Vector2
The world position of the particle.
final
userData Object
Use this to store application-specific body data.
read / write
velocity Vector2
The linear velocity of the particle in world co-ordinates.
final
hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) bool
The equality operator. [...]
inherited