コード例 #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);
        }
コード例 #2
0
 public abstract void rayTest(BroadphaseRayCallback rayCallback, Dispatcher dispatcher, VInt3 aabbMin, VInt3 aabbMax, short collisionFilterGroup, short collisionFilterMask);
コード例 #3
0
 public BroadphaseRayTester(BroadphaseRayCallback callback)
 {
     rayCallback = callback;
 }