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

C# BulletSPlugin.BulletShape类代码示例

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

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



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

示例1: IsConvex2d

 public abstract bool IsConvex2d(BulletShape shape);
开发者ID:VirtualReality,项目名称:Universe,代码行数:1,代码来源:BSApiTemplate.cs


示例2: BSShapeHull

 public BSShapeHull(BulletShape pShape) : base(pShape)
 {
 }
开发者ID:Virtual-Universe,项目名称:Virtual-Universe,代码行数:3,代码来源:BSShapes.cs


示例3: TryGetHullByPtr

 // Loop through all the known hulls and return the description based on the physical address.
 public static bool TryGetHullByPtr(BulletShape pShape, out BSShapeHull outHull)
 {
     bool ret = false;
     BSShapeHull foundDesc = null;
     lock (Hulls)
     {
         foreach (BSShapeHull sh in Hulls.Values)
         {
             if (sh.physShapeInfo.ReferenceSame(pShape))
             {
                 foundDesc = sh;
                 ret = true;
                 break;
             }
         }
     }
     outHull = foundDesc;
     return ret;
 }
开发者ID:Virtual-Universe,项目名称:Virtual-Universe,代码行数:20,代码来源:BSShapes.cs


示例4: BSShapeNative

 public BSShapeNative(BulletShape pShape)
     : base(pShape)
 {
 }
开发者ID:Virtual-Universe,项目名称:Virtual-Universe,代码行数:4,代码来源:BSShapes.cs


示例5: TryGetMeshByPtr

 // Loop through all the known meshes and return the description based on the physical address.
 public static bool TryGetMeshByPtr(BulletShape pShape, out BSShapeMesh outMesh)
 {
     bool ret = false;
     BSShapeMesh foundDesc = null;
     lock (Meshes)
     {
         foreach (BSShapeMesh sm in Meshes.Values)
         {
             if (sm.physShapeInfo.ReferenceSame(pShape))
             {
                 foundDesc = sm;
                 ret = true;
                 break;
             }
         }
     }
     outMesh = foundDesc;
     return ret;
 }
开发者ID:Virtual-Universe,项目名称:Virtual-Universe,代码行数:20,代码来源:BSShapes.cs


示例6: BSShapeConvexHull

 public BSShapeConvexHull(BulletShape pShape) : base(pShape)
 {
 }
开发者ID:Virtual-Universe,项目名称:Virtual-Universe,代码行数:3,代码来源:BSShapes.cs


示例7: BSShape

 public BSShape(BulletShape pShape)
 {
     referenceCount = 1;
     lastReferenced = DateTime.Now;
     physShapeInfo = pShape;
     shapeInfo = new ShapeInfoInfo();
 }
开发者ID:Virtual-Universe,项目名称:Virtual-Universe,代码行数:7,代码来源:BSShapes.cs


示例8: RecalculateCompoundShapeLocalAabb

 public abstract void RecalculateCompoundShapeLocalAabb(BulletShape cShape);
开发者ID:VirtualReality,项目名称:Universe,代码行数:1,代码来源:BSApiTemplate.cs


示例9: RemoveChildShapeFromCompoundShape

 public abstract void RemoveChildShapeFromCompoundShape(BulletShape cShape, BulletShape removeShape);
开发者ID:VirtualReality,项目名称:Universe,代码行数:1,代码来源:BSApiTemplate.cs


示例10: IsPolyhedral

 public abstract bool IsPolyhedral(BulletShape shape);
开发者ID:VirtualReality,项目名称:Universe,代码行数:1,代码来源:BSApiTemplate.cs


示例11: IsSoftBody

 public abstract bool IsSoftBody(BulletShape shape);
开发者ID:VirtualReality,项目名称:Universe,代码行数:1,代码来源:BSApiTemplate.cs


示例12: IsNonMoving

 public abstract bool IsNonMoving(BulletShape shape);
开发者ID:VirtualReality,项目名称:Universe,代码行数:1,代码来源:BSApiTemplate.cs


示例13: IsNativeShape

 public abstract bool IsNativeShape(BulletShape shape);
开发者ID:VirtualReality,项目名称:Universe,代码行数:1,代码来源:BSApiTemplate.cs


示例14: IsInfinite

 public abstract bool IsInfinite(BulletShape shape);
开发者ID:VirtualReality,项目名称:Universe,代码行数:1,代码来源:BSApiTemplate.cs


示例15: TryGetCompoundByPtr

 public static bool TryGetCompoundByPtr(BulletShape pShape, out BSShapeCompound outCompound)
 {
     lock (CompoundShapes)
     {
         string addr = pShape.AddrString;
         return CompoundShapes.TryGetValue(addr, out outCompound);
     }
 }
开发者ID:Virtual-Universe,项目名称:Virtual-Universe,代码行数:8,代码来源:BSShapes.cs


示例16: RemoveChildShapeFromCompoundShapeIndex

 public abstract BulletShape RemoveChildShapeFromCompoundShapeIndex(BulletShape cShape, int indx);
开发者ID:VirtualReality,项目名称:Universe,代码行数:1,代码来源:BSApiTemplate.cs


示例17: DereferenceAnonCollisionShape

 // Sometimes we have a pointer to a collision shape but don't know what type it is.
 // Figure out type and call the correct dereference routine.
 // Called at taint-time.
 void DereferenceAnonCollisionShape(BSScene physicsScene, BulletShape pShape)
 {
     // TODO: figure a better way to go through all the shape types and find a possible instance.
     physicsScene.DetailLog("{0},BSShapeCompound.DereferenceAnonCollisionShape,shape={1}",
         BSScene.DetailLogZero, pShape);
     BSShapeMesh meshDesc;
     if (BSShapeMesh.TryGetMeshByPtr(pShape, out meshDesc))
     {
         meshDesc.Dereference(physicsScene);
         // physicsScene.DetailLog("{0},BSShapeCompound.DereferenceAnonCollisionShape,foundMesh,shape={1}", BSScene.DetailLogZero, pShape);
     }
     else
     {
         BSShapeHull hullDesc;
         if (BSShapeHull.TryGetHullByPtr(pShape, out hullDesc))
         {
             hullDesc.Dereference(physicsScene);
             // physicsScene.DetailLog("{0},BSShapeCompound.DereferenceAnonCollisionShape,foundHull,shape={1}", BSScene.DetailLogZero, pShape);
         }
         else
         {
             BSShapeConvexHull chullDesc;
             if (BSShapeConvexHull.TryGetConvexHullByPtr(pShape, out chullDesc))
             {
                 chullDesc.Dereference(physicsScene);
                 // physicsScene.DetailLog("{0},BSShapeCompound.DereferenceAnonCollisionShape,foundConvexHull,shape={1}", BSScene.DetailLogZero, pShape);
             }
             else
             {
                 BSShapeGImpact gImpactDesc;
                 if (BSShapeGImpact.TryGetGImpactByPtr(pShape, out gImpactDesc))
                 {
                     gImpactDesc.Dereference(physicsScene);
                     // physicsScene.DetailLog("{0},BSShapeCompound.DereferenceAnonCollisionShape,foundgImpact,shape={1}", BSScene.DetailLogZero, pShape);
                 }
                 else
                 {
                     // Didn't find it in the lists of specific types. It could be compound.
                     BSShapeCompound compoundDesc;
                     if (TryGetCompoundByPtr(pShape, out compoundDesc))
                     {
                         compoundDesc.Dereference(physicsScene);
                         // physicsScene.DetailLog("{0},BSShapeCompound.DereferenceAnonCollisionShape,recursiveCompoundShape,shape={1}", BSScene.DetailLogZero, pShape);
                     }
                     else
                     {
                         // If none of the above, maybe it is a simple native shape.
                         if (physicsScene.PE.IsNativeShape(pShape))
                         {
                             // physicsScene.DetailLog("{0},BSShapeCompound.DereferenceAnonCollisionShape,assumingNative,shape={1}", BSScene.DetailLogZero, pShape);
                             BSShapeNative nativeShape = new BSShapeNative(pShape);
                             nativeShape.Dereference(physicsScene);
                         }
                         else
                         {
                             physicsScene.Logger.WarnFormat(
                                 "{0} DereferenceAnonCollisionShape. Did not find shape. {1}",
                                 LogHeader, pShape);
                         }
                     }
                 }
             }
         }
     }
 }
开发者ID:Virtual-Universe,项目名称:Virtual-Universe,代码行数:68,代码来源:BSShapes.cs


示例18: SetCollisionShape

 public abstract void SetCollisionShape(BulletWorld sim, BulletBody obj, BulletShape shape);
开发者ID:VirtualReality,项目名称:Universe,代码行数:1,代码来源:BSApiTemplate.cs


示例19: BSShapeGImpact

 public BSShapeGImpact(BulletShape pShape) : base(pShape)
 {
 }
开发者ID:Virtual-Universe,项目名称:Virtual-Universe,代码行数:3,代码来源:BSShapes.cs


示例20: SetLocalScaling

 public abstract void SetLocalScaling(BulletShape shape, Vector3 scale);
开发者ID:VirtualReality,项目名称:Universe,代码行数:1,代码来源:BSApiTemplate.cs



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

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

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

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

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

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