Exemple #1
0
        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);
        }
Exemple #2
0
 public void setBroadphase(BroadphaseInterface pairCache)
 {
     broadphase = pairCache;
 }
Exemple #3
0
 public CollisionWorld(Dispatcher dispatcher, BroadphaseInterface broadphase)
 {
     this.dispatcher1 = dispatcher;
     this.broadphase  = broadphase;
 }
Exemple #4
0
 public DynamicsWorld(Dispatcher dispatcher, BroadphaseInterface broadphase) : base(dispatcher, broadphase)
 {
     iteration = 4;
 }