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.
getter/setter pair
angularVelocity double
The angular velocity of the group.
getter/setter pair
color Color3i
The color of all particles in the group.
getter/setter pair
destroyAutomatically bool
If true, destroy the group automatically after its last particle has been destroyed.
getter/setter pair
flags int
The particle-behavior flags.
getter/setter pair
groupFlags int
The group-construction flags.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
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.
no setterinherited
shape Shape?
Shape containing the particle group.
getter/setter pair
strength double
The strength of cohesion among the particles in a group with flag elasticParticle or springParticle.
getter/setter pair
userData Object?
Use this to store application-specific group data.
getter/setter pair


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


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