當前位置: 首頁>>代碼示例>>C#>>正文


C# BulletSPlugin.BulletShape類代碼示例

本文整理匯總了C#中OpenSim.Region.Physics.BulletSPlugin.BulletShape的典型用法代碼示例。如果您正苦於以下問題:C# BulletShape類的具體用法?C# BulletShape怎麽用?C# BulletShape使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


BulletShape類屬於OpenSim.Region.Physics.BulletSPlugin命名空間,在下文中一共展示了BulletShape類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。

示例1: BSPhysObject

    protected BSPhysObject(BSScene parentScene, uint localID, string name, string typeName)
    {
        PhysicsScene = parentScene;
        LocalID = localID;
        PhysObjectName = name;
        TypeName = typeName;

        // We don't have any physical representation yet.
        PhysBody = new BulletBody(localID);
        PhysShape = new BulletShape();

        // A linkset of just me
        Linkset = BSLinkset.Factory(PhysicsScene, this);
        LastAssetBuildFailed = false;

        // Default material type
        Material = MaterialAttributes.Material.Wood;

        CollisionCollection = new CollisionEventUpdate();
        SubscribedEventsMs = 0;
        CollidingStep = 0;
        CollidingGroundStep = 0;
    }
開發者ID:justasabc,項目名稱:opensim75grid,代碼行數:23,代碼來源:BSPhysObject.cs

示例2: BuildHullShapeFromMesh

 public abstract BulletShape BuildHullShapeFromMesh(BulletWorld world, BulletShape meshShape, HACDParams parms);
開發者ID:KSLcom,項目名稱:Aurora-Sim,代碼行數:1,代碼來源:BSApiTemplate.cs

示例3: SetShapeCollisionMargin

 public abstract void SetShapeCollisionMargin(BulletShape shape, float margin);
開發者ID:KSLcom,項目名稱:Aurora-Sim,代碼行數:1,代碼來源:BSApiTemplate.cs

示例4: SetLocalScaling

 public abstract void SetLocalScaling(BulletShape shape, Vector3 scale);
開發者ID:KSLcom,項目名稱:Aurora-Sim,代碼行數:1,代碼來源:BSApiTemplate.cs

示例5: RemoveChildShapeFromCompoundShapeIndex

 public abstract BulletShape RemoveChildShapeFromCompoundShapeIndex(BulletShape cShape, int indx);
開發者ID:KSLcom,項目名稱:Aurora-Sim,代碼行數:1,代碼來源:BSApiTemplate.cs

示例6: RecalculateCompoundShapeLocalAabb

 public abstract void RecalculateCompoundShapeLocalAabb(BulletShape cShape);
開發者ID:KSLcom,項目名稱:Aurora-Sim,代碼行數:1,代碼來源:BSApiTemplate.cs

示例7: IsPolyhedral

 public abstract bool IsPolyhedral(BulletShape shape);
開發者ID:KSLcom,項目名稱:Aurora-Sim,代碼行數:1,代碼來源:BSApiTemplate.cs

示例8: IsNativeShape

 public abstract bool IsNativeShape(BulletShape shape);
開發者ID:KSLcom,項目名稱:Aurora-Sim,代碼行數:1,代碼來源:BSApiTemplate.cs

示例9: GetAngularMotionDisc

 // =====================================================================================
 // btCollisionShape entries
 public abstract float GetAngularMotionDisc(BulletShape shape);
開發者ID:KSLcom,項目名稱:Aurora-Sim,代碼行數:3,代碼來源:BSApiTemplate.cs

示例10: DuplicateCollisionShape

 public abstract BulletShape DuplicateCollisionShape(BulletWorld sim, BulletShape srcShape, UInt32 id);
開發者ID:KSLcom,項目名稱:Aurora-Sim,代碼行數:1,代碼來源:BSApiTemplate.cs

示例11: DumpCollisionShape

 public virtual void DumpCollisionShape(BulletWorld sim, BulletShape collisionShape)
 {
 }
開發者ID:KSLcom,項目名稱:Aurora-Sim,代碼行數:3,代碼來源:BSApiTemplate.cs

示例12: DeleteCollisionShape

 public abstract bool DeleteCollisionShape(BulletWorld world, BulletShape shape);
開發者ID:KSLcom,項目名稱:Aurora-Sim,代碼行數:1,代碼來源:BSApiTemplate.cs

示例13: CreateGhostFromShape

 public abstract BulletBody CreateGhostFromShape(BulletWorld sim, BulletShape shape, UInt32 id, Vector3 pos, Quaternion rot);
開發者ID:KSLcom,項目名稱:Aurora-Sim,代碼行數:1,代碼來源:BSApiTemplate.cs

示例14: CreateBodyWithDefaultMotionState

 public abstract BulletBody CreateBodyWithDefaultMotionState(BulletShape shape, UInt32 id, Vector3 pos, Quaternion rot);
開發者ID:KSLcom,項目名稱:Aurora-Sim,代碼行數:1,代碼來源:BSApiTemplate.cs

示例15: CalculateLocalInertia

 public abstract Vector3 CalculateLocalInertia(BulletShape shape, float mass);
開發者ID:KSLcom,項目名稱:Aurora-Sim,代碼行數:1,代碼來源:BSApiTemplate.cs


注:本文中的OpenSim.Region.Physics.BulletSPlugin.BulletShape類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。