com.jme3.bullet.collision
インタフェース PhysicsCollisionGroupListener


public interface PhysicsCollisionGroupListener


メソッドの概要
 boolean collide(PhysicsCollisionObject nodeA, PhysicsCollisionObject nodeB)
          Called when two physics objects of the registered group are about to collide, called from physics thread.
 

メソッドの詳細

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.

パラメータ:
nodeA - CollisionObject #1
nodeB - CollisionObject #2
戻り値:
true if the collision should happen, false otherwise