Package org.jbox2d.particle
Class ParticleGroupDef
java.lang.Object
org.jbox2d.particle.ParticleGroupDef
A particle group definition holds all the data needed to construct a particle
group. You can safely re-use these definitions.
-
Field Summary
FieldsModifier and TypeFieldDescriptionfloatThe world angle of the group in radians.floatThe angular velocity of the group.The color of all particles in the group.booleanIf true, destroy the group automatically after its last particle has been destroyed.intThe particle-behavior flags.intThe group-construction flags.final Vec2The linear velocity of the group's origin in world co-ordinates.final Vec2The world position of the group.Shape containing the particle group.floatThe strength of cohesion among the particles in a group with flag b2_elasticParticle or b2_springParticle.Use this to store application-specific group data. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
flags
public int flagsThe particle-behavior flags. -
groupFlags
public int groupFlagsThe group-construction flags. -
position
The world position of the group. Moves the group's shape a distance equal to the value of position. -
angle
public float angleThe world angle of the group in radians. Rotates the shape by an angle equal to the value of angle. -
linearVelocity
The linear velocity of the group's origin in world co-ordinates. -
angularVelocity
public float angularVelocityThe angular velocity of the group. -
color
The color of all particles in the group. -
strength
public float strengthThe strength of cohesion among the particles in a group with flag b2_elasticParticle or b2_springParticle. -
shape
Shape containing the particle group. -
destroyAutomatically
public boolean destroyAutomaticallyIf true, destroy the group automatically after its last particle has been destroyed. -
userData
Use this to store application-specific group data.
-
-
Constructor Details
-
ParticleGroupDef
public ParticleGroupDef()
-