Пример #1
0
 public AxisSweep3(Vector3 worldAabbMin, Vector3 worldAabbMax, ushort maxHandles, OverlappingPairCache pairCache)
     : base(btAxisSweep3_new3(ref worldAabbMin, ref worldAabbMax, maxHandles,
     (pairCache != null) ? pairCache._native : IntPtr.Zero))
 {
     _pairCache = (pairCache != null) ? pairCache : new HashedOverlappingPairCache(
         btBroadphaseInterface_getOverlappingPairCache(_native), true);
 }
Пример #2
0
		public AxisSweep3(Vector3 worldAabbMin, Vector3 worldAabbMax, ushort maxHandles, OverlappingPairCache pairCache, bool disableRaycastAccelerator)
            : base(btAxisSweep3_new4(ref worldAabbMin, ref worldAabbMax, maxHandles,
            (pairCache != null) ? pairCache._native : IntPtr.Zero, disableRaycastAccelerator))
		{
            _overlappingPairCache = (pairCache != null) ? pairCache : new HashedOverlappingPairCache(
                btBroadphaseInterface_getOverlappingPairCache(_native), true);
		}
Пример #3
0
		public AxisSweep3(Vector3 worldAabbMin, Vector3 worldAabbMax, ushort maxHandles, OverlappingPairCache pairCache, bool disableRaycastAccelerator)
            : base(btAxisSweep3_new4(ref worldAabbMin, ref worldAabbMax, maxHandles,
            (pairCache != null) ? pairCache._native : IntPtr.Zero, disableRaycastAccelerator))
		{
            _pairCache = (pairCache != null) ? pairCache : new HashedOverlappingPairCache(
                btBroadphaseInterface_getOverlappingPairCache(_native), true);
		}
 public AxisSweep3_32Bit(Vector3 worldAabbMin, Vector3 worldAabbMax, uint maxHandles = 1500000,
                         OverlappingPairCache pairCache = null, bool disableRaycastAccelerator = false)
     : base(bt32BitAxisSweep3_new(ref worldAabbMin, ref worldAabbMax, maxHandles,
                                  (pairCache != null) ? pairCache._native : IntPtr.Zero, disableRaycastAccelerator))
 {
     _overlappingPairCache = (pairCache != null) ? pairCache : new HashedOverlappingPairCache(
         btBroadphaseInterface_getOverlappingPairCache(_native), true);
 }
Пример #5
0
 public AxisSweep3(Vector3 worldAabbMin, Vector3 worldAabbMax, ushort maxHandles = 16384,
                   OverlappingPairCache pairCache = null, bool disableRaycastAccelerator = false)
     : base(btAxisSweep3_new(ref worldAabbMin, ref worldAabbMax, maxHandles,
                             (pairCache != null) ? pairCache.Native : IntPtr.Zero, disableRaycastAccelerator))
 {
     _overlappingPairCache = pairCache ?? new HashedOverlappingPairCache(
         btBroadphaseInterface_getOverlappingPairCache(Native), true);
 }
Пример #6
0
 public AxisSweep3(Vector3 worldAabbMin, Vector3 worldAabbMax, ushort maxHandles,
                   OverlappingPairCache pairCache)
     : base(btAxisSweep3_new3(ref worldAabbMin, ref worldAabbMax, maxHandles,
                              (pairCache != null) ? pairCache._native : IntPtr.Zero))
 {
     _overlappingPairCache = (pairCache != null) ? pairCache : new HashedOverlappingPairCache(
         btBroadphaseInterface_getOverlappingPairCache(_native), true);
 }
Пример #7
0
        public AxisSweep3(Vector3 worldAabbMin, Vector3 worldAabbMax, ushort maxHandles = 16384,
                          OverlappingPairCache pairCache = null, bool disableRaycastAccelerator = false)
        {
            IntPtr native = btAxisSweep3_new(ref worldAabbMin, ref worldAabbMax, maxHandles,
                                             pairCache?.Native ?? IntPtr.Zero, disableRaycastAccelerator);

            InitializeUserOwned(native);

            InitializeMembers(pairCache ?? new HashedOverlappingPairCache(
                                  btBroadphaseInterface_getOverlappingPairCache(Native), this));
        }
Пример #8
0
 public void DispatchAllCollisionPairs(OverlappingPairCache pairCache, DispatcherInfo dispatchInfo,
                                       Dispatcher dispatcher)
 {
     btDispatcher_dispatchAllCollisionPairs(_native, pairCache._native, dispatchInfo._native,
                                            dispatcher._native);
 }
Пример #9
0
 public DbvtBroadphase(OverlappingPairCache pairCache)
     : base(btDbvtBroadphase_new2((pairCache != null) ? pairCache._native : IntPtr.Zero))
 {
     _pairCache = (pairCache != null) ? pairCache : new HashedOverlappingPairCache(
         btBroadphaseInterface_getOverlappingPairCache(_native), true);
 }
 public SimpleBroadphase(int maxProxies, OverlappingPairCache overlappingPairCache)
     : base(btSimpleBroadphase_new3(maxProxies, overlappingPairCache._native))
 {
     _pairCache = (overlappingPairCache != null) ? overlappingPairCache : new HashedOverlappingPairCache(
         btBroadphaseInterface_getOverlappingPairCache(_native), true);
 }
Пример #11
0
 public void DispatchAllCollisionPairs(OverlappingPairCache pairCache, DispatcherInfo dispatchInfo, Dispatcher dispatcher)
 {
     btDispatcher_dispatchAllCollisionPairs(_native, pairCache._native, dispatchInfo._native, dispatcher._native);
 }
Пример #12
0
		public AxisSweep3(Vector3 worldAabbMin, Vector3 worldAabbMax, ushort maxHandles,
			OverlappingPairCache pairCache, bool disableRaycastAccelerator)
			: base(btAxisSweep3_new4(ref worldAabbMin, ref worldAabbMax, maxHandles,
                (pairCache != null) ? pairCache._native : IntPtr.Zero, disableRaycastAccelerator))
		{
		}
 public SimpleBroadphase(int maxProxies, OverlappingPairCache overlappingPairCache)
     : base(btSimpleBroadphase_new3(maxProxies, overlappingPairCache._native))
 {
     _overlappingPairCache = (overlappingPairCache != null) ? overlappingPairCache : new HashedOverlappingPairCache(
         btBroadphaseInterface_getOverlappingPairCache(_native), true);
 }
Пример #14
0
 public AxisSweep3(Vector3 worldAabbMin, Vector3 worldAabbMax, ushort maxHandles,
                   OverlappingPairCache pairCache, bool disableRaycastAccelerator)
     : base(btAxisSweep3_new4(ref worldAabbMin, ref worldAabbMax, maxHandles,
                              (pairCache != null) ? pairCache._native : IntPtr.Zero, disableRaycastAccelerator))
 {
 }
 public DbvtBroadphase(OverlappingPairCache pairCache)
     : base(btDbvtBroadphase_new2((pairCache != null) ? pairCache._native : IntPtr.Zero))
 {
     _overlappingPairCache = (pairCache != null) ? pairCache : new HashedOverlappingPairCache(
         btBroadphaseInterface_getOverlappingPairCache(_native), true);
 }