本文整理汇总了C#中Universe.Physics.BulletSPlugin.BulletShape类的典型用法代码示例。如果您正苦于以下问题:C# BulletShape类的具体用法?C# BulletShape怎么用?C# BulletShape使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
BulletShape类属于Universe.Physics.BulletSPlugin命名空间,在下文中一共展示了BulletShape类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: IsConvex2d
public abstract bool IsConvex2d(BulletShape shape);
示例2: BSShapeHull
public BSShapeHull(BulletShape pShape) : base(pShape)
{
}
示例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;
}
示例4: BSShapeNative
public BSShapeNative(BulletShape pShape)
: base(pShape)
{
}
示例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;
}
示例6: BSShapeConvexHull
public BSShapeConvexHull(BulletShape pShape) : base(pShape)
{
}
示例7: BSShape
public BSShape(BulletShape pShape)
{
referenceCount = 1;
lastReferenced = DateTime.Now;
physShapeInfo = pShape;
shapeInfo = new ShapeInfoInfo();
}
示例8: RecalculateCompoundShapeLocalAabb
public abstract void RecalculateCompoundShapeLocalAabb(BulletShape cShape);
示例9: RemoveChildShapeFromCompoundShape
public abstract void RemoveChildShapeFromCompoundShape(BulletShape cShape, BulletShape removeShape);
示例10: IsPolyhedral
public abstract bool IsPolyhedral(BulletShape shape);
示例11: IsSoftBody
public abstract bool IsSoftBody(BulletShape shape);
示例12: IsNonMoving
public abstract bool IsNonMoving(BulletShape shape);
示例13: IsNativeShape
public abstract bool IsNativeShape(BulletShape shape);
示例14: IsInfinite
public abstract bool IsInfinite(BulletShape shape);
示例15: TryGetCompoundByPtr
public static bool TryGetCompoundByPtr(BulletShape pShape, out BSShapeCompound outCompound)
{
lock (CompoundShapes)
{
string addr = pShape.AddrString;
return CompoundShapes.TryGetValue(addr, out outCompound);
}
}