1 /* 2 * To change this template, choose Tools | Templates 3 * and open the template in the editor. 4 */ 5 6 package com.jme3.bullet.collision; 7 8 /** 9 * 10 * @author normenhansen 11 */ 12 public interface PhysicsCollisionGroupListener { 13 14 /** 15 * Called when two physics objects of the registered group are about to collide, <i>called from physics thread</i>.<br> 16 * This is only called when the collision will happen based on the collisionGroup and collideWithGroups 17 * settings in the PhysicsCollisionObject. That is the case when <b>one</b> of the partys has the 18 * collisionGroup of the other in its collideWithGroups set.<br> 19 * @param nodeA CollisionObject #1 20 * @param nodeB CollisionObject #2 21 * @return true if the collision should happen, false otherwise 22 */ 23 public boolean collide(PhysicsCollisionObject nodeA, PhysicsCollisionObject nodeB); 24 25 } 26