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