public void Inititialize(CollisionAlgorithmConstructionInfo ci, CollisionObject body0, CollisionObject body1, bool isSwapped) { base.Initialize(ci, body0, body1); m_isSwapped = isSwapped; if (m_convexTriangleCallback == null) { m_convexTriangleCallback = new ConvexTriangleCallback(m_dispatcher, body0, body1, isSwapped); } else { m_convexTriangleCallback.Initialize(m_dispatcher, body0, body1, isSwapped); } }
} // for pool public ConvexConcaveCollisionAlgorithm(CollisionAlgorithmConstructionInfo ci, CollisionObject body0, CollisionObject body1, bool isSwapped) : base(ci, body0, body1) { m_isSwapped = isSwapped; m_convexTriangleCallback = new ConvexTriangleCallback(m_dispatcher, body0, body1, isSwapped); }