public void DrawDebug(Body body, CollisionSkin collision) { if (!body.CollisionSkin.GetType().Equals(typeof(JigLibX.Geometry.Plane))) { wf = collision.GetLocalSkinWireframe(); // if the collision skin was also added to the body // we have to transform the skin wireframe to the body space if (body.CollisionSkin != null) { body.TransformWireframe(wf); } DrawShape(wf); } }