Interface PhysicsCollisionGroupListener


public interface PhysicsCollisionGroupListener
Interface to receive notifications whenever an object in a particular collision group is about to collide.
  • Method Details

    • collide

      boolean collide(PhysicsCollisionObject pco1, PhysicsCollisionObject pco2)
      Invoked when a collision object in the registered group is about to collide. invoked on the physics thread.
      This is only invoked when the collision will happen based on the collisionGroup and collideWithGroups settings in the PhysicsCollisionObject. That is the case when one of the parties has the collisionGroup of the other in its collideWithGroups set.
      Parameters:
      pco1 - collision object #1
      pco2 - collision object #2
      Returns:
      true if the collision should happen, false if it should be ignored