public override void Initialize(Collidable newCollidableA, Collidable newCollidableB)
{
convex = newCollidableA as ConvexCollidable;
triangle = newCollidableB as ConvexCollidable<TriangleShape>;
if (convex == null || triangle == null)
{
convex = newCollidableB as ConvexCollidable;
triangle = newCollidableA as ConvexCollidable<TriangleShape>;
if (convex == null || triangle == null)
throw new Exception("Inappropriate types used to initialize contact manifold.");
}
pairTester.Initialize(convex.Shape, localTriangleShape);
}