Package com.jme3.bullet.collision
Interface PhysicsCollisionGroupListener
public interface PhysicsCollisionGroupListener
Interface to receive notifications whenever an object in a particular
collision group is about to collide.
-
Method Summary
Modifier and TypeMethodDescriptionboolean
collide
(PhysicsCollisionObject pco1, PhysicsCollisionObject pco2) Invoked when a collision object in the registered group is about to collide.
-
Method Details
-
collide
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 #1pco2
- collision object #2- Returns:
- true if the collision should happen, false if it should be ignored
-