ParticleGroupDef class

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

Constructors

ParticleGroupDef()

Properties

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
linearVelocity Vector2
The linear velocity of the group's origin in world co-ordinates.
final
position Vector2
The world position of the group. Moves the group's shape a distance equal to the value of position.
final
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
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