com.jme3.bullet.collision
Interface PhysicsCollisionGroupListener


public interface PhysicsCollisionGroupListener


Method Summary
 boolean collide(PhysicsCollisionObject nodeA, PhysicsCollisionObject nodeB)
          Called when two physics objects of the registered group are about to collide, called from physics thread.
This is only called when the collision will happen based on the collisionGroup and collideWithGroups settings in the PhysicsCollisionObject.
 

Method Detail

collide

boolean collide(PhysicsCollisionObject nodeA,
                PhysicsCollisionObject nodeB)
Called when two physics objects of the registered group are about to collide, called from physics thread.
This is only called when the collision will happen based on the collisionGroup and collideWithGroups settings in the PhysicsCollisionObject. That is the case when one of the partys has the collisionGroup of the other in its collideWithGroups set.

Parameters:
nodeA - CollisionObject #1
nodeB - CollisionObject #2
Returns:
true if the collision should happen, false otherwise