本文整理汇总了C#中IDispatcher.GetNewManifold方法的典型用法代码示例。如果您正苦于以下问题:C# IDispatcher.GetNewManifold方法的具体用法?C# IDispatcher.GetNewManifold怎么用?C# IDispatcher.GetNewManifold使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类IDispatcher
的用法示例。
在下文中一共展示了IDispatcher.GetNewManifold方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: ConvexTriangleCallback
public ConvexTriangleCallback(IDispatcher dispatcher, CollisionObject body0, CollisionObject body1, bool isSwapped)
{
m_dispatcher = dispatcher;
m_convexBody = isSwapped ? body1 : body0;
m_triBody = isSwapped ? body0 : body1;
m_manifoldPtr = m_dispatcher.GetNewManifold(m_convexBody, m_triBody);
ClearCache();
}
示例2: ConvexTriangleCallback
public ConvexTriangleCallback(IDispatcher dispatcher, CollisionObject bodyA, CollisionObject bodyB, bool isSwapped)
{
_dispatcher = dispatcher;
_dispatchInfo = null;
_convexBody = isSwapped ? bodyB : bodyA;
_triBody = isSwapped ? bodyA : bodyB;
// create the manifold from the dispatcher 'manifold pool'
_manifold = _dispatcher.GetNewManifold(_convexBody, _triBody);
ClearCache();
}
示例3: Initialize
public void Initialize(IDispatcher dispatcher, CollisionObject body0, CollisionObject body1, bool isSwapped)
{
m_dispatcher = dispatcher;
m_convexBody = isSwapped ? body1 : body0;
m_triBody = isSwapped ? body0 : body1;
m_manifoldPtr = m_dispatcher.GetNewManifold(m_convexBody, m_triBody);
ClearCache();
}