Exemple #1
0
 public void QueryAABB(b2QueryCallback callback, b2AABB aabb)
 {
     Box2DPINVOKE.b2World_QueryAABB(swigCPtr, b2QueryCallback.getCPtr(callback), b2AABB.getCPtr(aabb));
     if (Box2DPINVOKE.SWIGPendingException.Pending) throw Box2DPINVOKE.SWIGPendingException.Retrieve();
 }
Exemple #2
0
 public override void ComputeAABB(b2AABB aabb, b2Transform transform, int childIndex)
 {
     Box2DPINVOKE.b2CircleShape_ComputeAABB(swigCPtr, b2AABB.getCPtr(aabb), b2Transform.getCPtr(transform), childIndex);
     if (Box2DPINVOKE.SWIGPendingException.Pending) throw Box2DPINVOKE.SWIGPendingException.Retrieve();
 }
Exemple #3
0
 public b2AABB GetAABB(int childIndex)
 {
     b2AABB ret = new b2AABB(Box2DPINVOKE.b2Fixture_GetAABB(swigCPtr, childIndex), false);
     return ret;
 }
Exemple #4
0
 public virtual void ComputeAABB(b2AABB aabb, b2Transform xf, int childIndex)
 {
     Box2DPINVOKE.b2Shape_ComputeAABB(swigCPtr, b2AABB.getCPtr(aabb), b2Transform.getCPtr(xf), childIndex);
     if (Box2DPINVOKE.SWIGPendingException.Pending) throw Box2DPINVOKE.SWIGPendingException.Retrieve();
 }
Exemple #5
0
 public void Combine(b2AABB aabb1, b2AABB aabb2)
 {
     Box2DPINVOKE.b2AABB_Combine__SWIG_1(swigCPtr, b2AABB.getCPtr(aabb1), b2AABB.getCPtr(aabb2));
     if (Box2DPINVOKE.SWIGPendingException.Pending) throw Box2DPINVOKE.SWIGPendingException.Retrieve();
 }
Exemple #6
0
 public bool Contains(b2AABB aabb)
 {
     bool ret = Box2DPINVOKE.b2AABB_Contains(swigCPtr, b2AABB.getCPtr(aabb));
     if (Box2DPINVOKE.SWIGPendingException.Pending) throw Box2DPINVOKE.SWIGPendingException.Retrieve();
     return ret;
 }
Exemple #7
0
 public b2AABB GetFatAABB(int proxyId)
 {
     b2AABB ret = new b2AABB(Box2DPINVOKE.b2DynamicTree_GetFatAABB(swigCPtr, proxyId), false);
     return ret;
 }
Exemple #8
0
 internal static HandleRef getCPtr(b2AABB obj)
 {
     return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
 }
Exemple #9
0
 public int CreateProxy(b2AABB aabb, SWIGTYPE_p_void userData)
 {
     int ret = Box2DPINVOKE.b2DynamicTree_CreateProxy(swigCPtr, b2AABB.getCPtr(aabb), SWIGTYPE_p_void.getCPtr(userData));
     if (Box2DPINVOKE.SWIGPendingException.Pending) throw Box2DPINVOKE.SWIGPendingException.Retrieve();
     return ret;
 }
Exemple #10
0
 public bool MoveProxy(int proxyId, b2AABB aabb1, b2Vec2 displacement)
 {
     bool ret = Box2DPINVOKE.b2DynamicTree_MoveProxy(swigCPtr, proxyId, b2AABB.getCPtr(aabb1), b2Vec2.getCPtr(displacement));
     if (Box2DPINVOKE.SWIGPendingException.Pending) throw Box2DPINVOKE.SWIGPendingException.Retrieve();
     return ret;
 }
Exemple #11
0
 public static bool b2TestOverlap(b2AABB a, b2AABB b)
 {
     bool ret = Box2DPINVOKE.b2TestOverlap__SWIG_1(b2AABB.getCPtr(a), b2AABB.getCPtr(b));
     if (Box2DPINVOKE.SWIGPendingException.Pending) throw Box2DPINVOKE.SWIGPendingException.Retrieve();
     return ret;
 }
Exemple #12
0
 public b2AABB GetFatAABB(int proxyId)
 {
     b2AABB ret = new b2AABB(Box2DPINVOKE.b2BroadPhase_GetFatAABB(swigCPtr, proxyId), false);
     return ret;
 }
Exemple #13
0
 public void MoveProxy(int proxyId, b2AABB aabb, b2Vec2 displacement)
 {
     Box2DPINVOKE.b2BroadPhase_MoveProxy(swigCPtr, proxyId, b2AABB.getCPtr(aabb), b2Vec2.getCPtr(displacement));
     if (Box2DPINVOKE.SWIGPendingException.Pending) throw Box2DPINVOKE.SWIGPendingException.Retrieve();
 }