• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C# BulletSharp.BroadphaseProxy类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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


示例16: NeedsCollision

		public virtual bool NeedsCollision(BroadphaseProxy proxy0)
		{
			return btCollisionWorld_RayResultCallbackWrapper_needsCollision(_native, proxy0._native);
		}
开发者ID:rhynodegreat,项目名称:BulletSharpPInvoke,代码行数:4,代码来源:CollisionWorld.cs


示例17: TestAabbOverlap

 public bool TestAabbOverlap(BroadphaseProxy proxy0, BroadphaseProxy proxy1)
 {
     return btSimpleBroadphase_testAabbOverlap(_native, proxy0._native, proxy1._native);
 }
开发者ID:RatherGood1,项目名称:BulletSharpUnity3d,代码行数:4,代码来源:SimpleBroadphase.cs


示例18: SetAabbRef

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


示例19: TestAabbOverlap

 bool TestAabbOverlap(BroadphaseProxy proxy0, BroadphaseProxy proxy1)
 {
     return btAxisSweep3_testAabbOverlap(_native, proxy0._native, proxy1._native);
 }
开发者ID:sinkingsugar,项目名称:BulletSharpPInvoke,代码行数:4,代码来源:AxisSweep3.cs


示例20: Process

 public abstract bool Process(BroadphaseProxy proxy);
开发者ID:Cyberbanan,项目名称:BulletSharpUnity3d,代码行数:1,代码来源:BroadphaseInterface.cs



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# BulletSharp.CollisionDispatcher类代码示例发布时间:2022-05-24
下一篇:
C# BulletSharp.BoxShape类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap