protected void updateSingleAabb(CollisionObject colObj) { VInt3 minAabb, maxAabb; colObj.getCollisionShape().getAabb(colObj.getWorldTransform(), out minAabb, out maxAabb); // need to increase the aabb for contact thresholds /*VInt3 contactThreshold = new VInt3(Globals.getContactBreakingThreshold(), Globals.getContactBreakingThreshold(), Globals.getContactBreakingThreshold()); * minAabb -= contactThreshold; * maxAabb += contactThreshold;*/ BroadphaseInterface bp = broadphase; bp.setAabb(colObj.getBroadphaseHandle(), minAabb, maxAabb, dispatcher1); }
public void setBroadphase(BroadphaseInterface pairCache) { broadphase = pairCache; }
public CollisionWorld(Dispatcher dispatcher, BroadphaseInterface broadphase) { this.dispatcher1 = dispatcher; this.broadphase = broadphase; }
public DynamicsWorld(Dispatcher dispatcher, BroadphaseInterface broadphase) : base(dispatcher, broadphase) { iteration = 4; }