当前位置: 首页>>代码示例>>C#>>正文


C# BulletSharp.BroadphaseProxy类代码示例

本文整理汇总了C#中BulletSharp.BroadphaseProxy的典型用法代码示例。如果您正苦于以下问题:C# BroadphaseProxy类的具体用法?C# BroadphaseProxy怎么用?C# BroadphaseProxy使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


BroadphaseProxy类属于BulletSharp命名空间,在下文中一共展示了BroadphaseProxy类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: NeedsCollision

        //! If you don't want to consider collisions where the bodies are joined by a constraint, override NeedsCollision:
        /*! However, if you use a CollisionObject for #body instead of a RigidBody,
         *  then this is unnecessary—CheckCollideWithOverride isn't available */
        public override bool NeedsCollision(BroadphaseProxy proxy)
        {
            // superclass will check CollisionFilterGroup and CollisionFilterMask
            if (!base.NeedsCollision(proxy))
                return false;

            // if passed filters, may also want to avoid contacts between constraints
            return body.CheckCollideWithOverride(proxy.ClientObject as CollisionObject);
        }
开发者ID:jdoyle1983,项目名称:BulletSharp,代码行数:12,代码来源:ContactSensorCallback.cs

示例2: GetAabb

        public unsafe static void GetAabb(this BroadphaseInterface obj, BroadphaseProxy proxy, out OpenTK.Vector3 aabbMin, out OpenTK.Vector3 aabbMax)
		{
			fixed (OpenTK.Vector3* aabbMinPtr = &aabbMin)
			{
				fixed (OpenTK.Vector3* aabbMaxPtr = &aabbMax)
				{
                    obj.GetAabb(proxy, out *(BulletSharp.Math.Vector3*)aabbMinPtr, out *(BulletSharp.Math.Vector3*)aabbMaxPtr);
				}
			}
		}
开发者ID:sinkingsugar,项目名称:BulletSharpPInvoke,代码行数:10,代码来源:BroadphaseInterfaceExtensions.cs

示例3: SetAabbForceUpdate

		public unsafe static void SetAabbForceUpdate(this DbvtBroadphase obj, BroadphaseProxy absproxy, ref OpenTK.Vector3 aabbMin, ref OpenTK.Vector3 aabbMax, Dispatcher __unnamed3)
		{
			fixed (OpenTK.Vector3* aabbMinPtr = &aabbMin)
			{
				fixed (OpenTK.Vector3* aabbMaxPtr = &aabbMax)
				{
					obj.SetAabbForceUpdate(absproxy, ref *(BulletSharp.Math.Vector3*)aabbMinPtr, ref *(BulletSharp.Math.Vector3*)aabbMaxPtr, __unnamed3);
				}
			}
		}
开发者ID:sinkingsugar,项目名称:BulletSharpPInvoke,代码行数:10,代码来源:DbvtBroadphaseExtensions.cs

示例4: CleanProxyFromPairs

		public void CleanProxyFromPairs(BroadphaseProxy proxy, Dispatcher dispatcher)
		{
			btOverlappingPairCache_cleanProxyFromPairs(_native, proxy._native, dispatcher._native);
		}
开发者ID:sinkingsugar,项目名称:BulletSharpPInvoke,代码行数:4,代码来源:OverlappingPairCache.cs

示例5: RemoveOverlappingPairsContainingProxy

 public override void RemoveOverlappingPairsContainingProxy(BroadphaseProxy proxy0, Dispatcher dispatcher)
 {
     btOverlappingPairCallback_removeOverlappingPairsContainingProxy(_native, proxy0._native, dispatcher._native);
 }
开发者ID:sinkingsugar,项目名称:BulletSharpPInvoke,代码行数:4,代码来源:OverlappingPairCache.cs

示例6: AddOverlappingPair

 public override BroadphasePair AddOverlappingPair(BroadphaseProxy proxy0, BroadphaseProxy proxy1)
 {
     return new BroadphasePair(btOverlappingPairCallback_addOverlappingPair(_native, proxy0._native, proxy1._native));
 }
开发者ID:sinkingsugar,项目名称:BulletSharpPInvoke,代码行数:4,代码来源:OverlappingPairCache.cs

示例7: FindPair

		public BroadphasePair FindPair(BroadphaseProxy proxy0, BroadphaseProxy proxy1)
		{
            return new BroadphasePair(btOverlappingPairCache_findPair(_native, proxy0._native, proxy1._native));
		}
开发者ID:sinkingsugar,项目名称:BulletSharpPInvoke,代码行数:4,代码来源:OverlappingPairCache.cs

示例8: UnQuantize

 void UnQuantize(BroadphaseProxy proxy, Vector3 aabbMin, Vector3 aabbMax)
 {
     btAxisSweep3_unQuantize(_native, proxy._native, out aabbMin, out aabbMax);
 }
开发者ID:sinkingsugar,项目名称:BulletSharpPInvoke,代码行数:4,代码来源:AxisSweep3.cs

示例9: SetAabb

 public void SetAabb(BroadphaseProxy proxy, Vector3 aabbMin, Vector3 aabbMax, Dispatcher dispatcher)
 {
     SetAabbRef(proxy, ref aabbMin, ref aabbMax, dispatcher);
 }
开发者ID:Cyberbanan,项目名称:BulletSharpUnity3d,代码行数:4,代码来源:BroadphaseInterface.cs

示例10: GetAabb

 public void GetAabb(BroadphaseProxy proxy, out Vector3 aabbMin, out Vector3 aabbMax)
 {
     btBroadphaseInterface_getAabb(_native, proxy._native, out aabbMin, out aabbMax);
 }
开发者ID:Cyberbanan,项目名称:BulletSharpUnity3d,代码行数:4,代码来源:BroadphaseInterface.cs

示例11: DestroyProxy

 public void DestroyProxy(BroadphaseProxy proxy, Dispatcher dispatcher)
 {
     btBroadphaseInterface_destroyProxy(_native, proxy._native, dispatcher._native);
 }
开发者ID:Cyberbanan,项目名称:BulletSharpUnity3d,代码行数:4,代码来源:BroadphaseInterface.cs

示例12: SetNewBroadphaseProxy

 public void SetNewBroadphaseProxy(BroadphaseProxy broadphaseProxy)
 {
     btRigidBody_setNewBroadphaseProxy(_native, broadphaseProxy._native);
 }
开发者ID:Cyberbanan,项目名称:BulletSharpUnity3d,代码行数:4,代码来源:RigidBody.cs

示例13: RemoveOverlappingPairsContainingProxy

 public abstract void RemoveOverlappingPairsContainingProxy(BroadphaseProxy proxy0, Dispatcher dispatcher);
开发者ID:sinkingsugar,项目名称:BulletSharpPInvoke,代码行数:1,代码来源:OverlappingPairCallback.cs

示例14: RemoveOverlappingPair

 public abstract IntPtr RemoveOverlappingPair(BroadphaseProxy proxy0, BroadphaseProxy proxy1, Dispatcher dispatcher);
开发者ID:sinkingsugar,项目名称:BulletSharpPInvoke,代码行数:1,代码来源:OverlappingPairCallback.cs

示例15: OverlappingPairCallback

 /*
 protected OverlappingPairCallback()
 {
     _native = btOverlappingPairCallbackWrapper_new();
 }
 */
 public abstract BroadphasePair AddOverlappingPair(BroadphaseProxy proxy0, BroadphaseProxy proxy1);
开发者ID:sinkingsugar,项目名称:BulletSharpPInvoke,代码行数:7,代码来源:OverlappingPairCallback.cs


注:本文中的BulletSharp.BroadphaseProxy类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。