Class ParticleGroupDef

java.lang.Object
org.jbox2d.particle.ParticleGroupDef

public class ParticleGroupDef extends Object
A particle group definition holds all the data needed to construct a particle group. You can safely re-use these definitions.
  • Field Details

    • flags

      public int flags
      The particle-behavior flags.
    • groupFlags

      public int groupFlags
      The group-construction flags.
    • position

      public final Vec2 position
      The world position of the group. Moves the group's shape a distance equal to the value of position.
    • angle

      public float angle
      The world angle of the group in radians. Rotates the shape by an angle equal to the value of angle.
    • linearVelocity

      public final Vec2 linearVelocity
      The linear velocity of the group's origin in world co-ordinates.
    • angularVelocity

      public float angularVelocity
      The angular velocity of the group.
    • color

      public ParticleColor color
      The color of all particles in the group.
    • strength

      public float strength
      The strength of cohesion among the particles in a group with flag b2_elasticParticle or b2_springParticle.
    • shape

      public Shape shape
      Shape containing the particle group.
    • destroyAutomatically

      public boolean destroyAutomatically
      If true, destroy the group automatically after its last particle has been destroyed.
    • userData

      public Object userData
      Use this to store application-specific group data.
  • Constructor Details

    • ParticleGroupDef

      public ParticleGroupDef()