Esempio n. 1
0
        public override void rayTest(BroadphaseRayCallback rayCallback, Dispatcher dispatcher, VInt3 aabbMin, VInt3 aabbMax, short collisionFilterGroup, short collisionFilterMask)
        {
            BroadphaseRayTester callback = new BroadphaseRayTester(rayCallback);

            sets[DYNAMIC_SET].rayTestInternal(sets[DYNAMIC_SET].root,
                                              dispatcher,
                                              rayCallback.rayFrom,
                                              rayCallback.rayTo,
                                              aabbMin,
                                              aabbMax,
                                              collisionFilterGroup,
                                              collisionFilterMask,
                                              callback);

            sets[FIXED_SET].rayTestInternal(sets[FIXED_SET].root,
                                            dispatcher,
                                            rayCallback.rayFrom,
                                            rayCallback.rayTo,
                                            aabbMin,
                                            aabbMax,
                                            collisionFilterGroup,
                                            collisionFilterMask,
                                            callback);
        }
Esempio n. 2
0
 public abstract void rayTest(BroadphaseRayCallback rayCallback, Dispatcher dispatcher, VInt3 aabbMin, VInt3 aabbMax, short collisionFilterGroup, short collisionFilterMask);
Esempio n. 3
0
 public BroadphaseRayTester(BroadphaseRayCallback callback)
 {
     rayCallback = callback;
 }