本文整理汇总了C#中InWorldz.PhysxPhysics.PhysxPrim.ClearTrackedTouches方法的典型用法代码示例。如果您正苦于以下问题:C# PhysxPrim.ClearTrackedTouches方法的具体用法?C# PhysxPrim.ClearTrackedTouches怎么用?C# PhysxPrim.ClearTrackedTouches使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类InWorldz.PhysxPhysics.PhysxPrim
的用法示例。
在下文中一共展示了PhysxPrim.ClearTrackedTouches方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: RemoveChildShape
/// <summary>
/// Removes and returns the old child shape associated with the given prim
/// </summary>
/// <param name="physxPrim">The child prim</param>
/// <returns>The old shape</returns>
private PhysicsShape RemoveChildShape(PhysxPrim physxPrim)
{
PhysicsShape retShape = null;
RelatedShapes childShapes;
if (_childShapes.TryGetValue(physxPrim, out childShapes))
{
physxPrim.ClearTrackedTouches();
_scene.ForEachCharacter((PhysxCharacter character) =>
{
character.InvalidateControllerCacheIfContacting(this);
}
);
retShape = childShapes.ChildShape;
foreach (PhysX.Shape shape in childShapes.PhyShapes)
{
shape.Dispose();
_shapeToPrimIndex.Remove(shape);
}
_childShapes.Remove(physxPrim);
//collision accounting
if (physxPrim._properties.WantsCollisionNotification)
{
if (--_numChildPrimsWantingCollisionNotification == 0)
{
_properties.ChildrenWantCollisionNotification = false;
}
}
}
return retShape;
}