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