Class ParticleContact

java.lang.Object
org.jbox2d.particle.ParticleContact

public class ParticleContact extends Object
  • Field Details

    • indexA

      public int indexA
      Index of the respective particle-making contact.
    • indexB

      public int indexB
      Index of the respective particle-making contact.
    • flags

      public int flags
      The logical sum of the particle behaviors that have been set.
    • weight

      public float weight
      Weight of the contact. A value between 0.0f and 1.0f.
    • normal

      public final Vec2 normal
      The normalized direction from A to B.
  • Constructor Details

    • ParticleContact

      public ParticleContact()