internal static HandleRef getCPtr(b2Shape obj) { return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; }
public void Set(b2Shape shape, int index) { Box2DPINVOKE.b2DistanceProxy_Set(swigCPtr, b2Shape.getCPtr(shape), index); }
public b2Fixture CreateFixture(b2Shape shape, float density) { IntPtr cPtr = Box2DPINVOKE.b2Body_CreateFixture__SWIG_1(swigCPtr, b2Shape.getCPtr(shape), density); b2Fixture ret = (cPtr == IntPtr.Zero) ? null : new b2Fixture(cPtr, false); return ret; }
public static bool b2TestOverlap(b2Shape shapeA, int indexA, b2Shape shapeB, int indexB, b2Transform xfA, b2Transform xfB) { bool ret = Box2DPINVOKE.b2TestOverlap__SWIG_0(b2Shape.getCPtr(shapeA), indexA, b2Shape.getCPtr(shapeB), indexB, b2Transform.getCPtr(xfA), b2Transform.getCPtr(xfB)); if (Box2DPINVOKE.SWIGPendingException.Pending) throw Box2DPINVOKE.SWIGPendingException.Retrieve(); return ret; }