示例#1
0
 public void RayCast(b2RayCastCallback callback, b2Vec2 point1, b2Vec2 point2)
 {
     Box2DPINVOKE.b2World_RayCast(swigCPtr, b2RayCastCallback.getCPtr(callback), b2Vec2.getCPtr(point1), b2Vec2.getCPtr(point2));
     if (Box2DPINVOKE.SWIGPendingException.Pending) throw Box2DPINVOKE.SWIGPendingException.Retrieve();
 }
示例#2
0
 internal static HandleRef getCPtr(b2RayCastCallback obj)
 {
     return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
 }