ParticleGroupDef class

A particle group definition holds all the data needed to construct a particle group. You can safely re-use these definitions.




angle double
The world angle of the group in radians. Rotates the shape by an angle equal to the value of angle.
read / write
angularVelocity double
The angular velocity of the group.
read / write
color ParticleColor
The color of all particles in the group.
read / write
destroyAutomatically bool
If true, destroy the group automatically after its last particle has been destroyed.
read / write
flags int
The particle-behavior flags.
read / write
groupFlags int
The group-construction flags.
read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
linearVelocity Vector2
The linear velocity of the group's origin in world co-ordinates.
position Vector2
The world position of the group. Moves the group's shape a distance equal to the value of position.
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
shape Shape
Shape containing the particle group.
read / write
strength double
The strength of cohesion among the particles in a group with flag b2_elasticParticle or b2_springParticle.
read / write
userData Object
Use this to store application-specific group data.
read / write


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


operator ==(Object other) bool
The equality operator. [...]