コード例 #1
0
ファイル: b2CircleShape.cs プロジェクト: vanoseva/Box2DCS
 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();
 }
コード例 #2
0
ファイル: b2CircleShape.cs プロジェクト: vanoseva/Box2DCS
 public override bool RayCast(b2RayCastOutput output, b2RayCastInput input, b2Transform transform, int childIndex)
 {
     bool ret = Box2DPINVOKE.b2CircleShape_RayCast(swigCPtr, b2RayCastOutput.getCPtr(output), b2RayCastInput.getCPtr(input), b2Transform.getCPtr(transform), childIndex);
     if (Box2DPINVOKE.SWIGPendingException.Pending) throw Box2DPINVOKE.SWIGPendingException.Retrieve();
     return ret;
 }
コード例 #3
0
ファイル: b2CircleShape.cs プロジェクト: vanoseva/Box2DCS
 public override bool TestPoint(b2Transform transform, b2Vec2 p)
 {
     bool ret = Box2DPINVOKE.b2CircleShape_TestPoint(swigCPtr, b2Transform.getCPtr(transform), b2Vec2.getCPtr(p));
     if (Box2DPINVOKE.SWIGPendingException.Pending) throw Box2DPINVOKE.SWIGPendingException.Retrieve();
     return ret;
 }
コード例 #4
0
ファイル: b2Shape.cs プロジェクト: vanoseva/Box2DCS
 public virtual bool TestPoint(b2Transform xf, b2Vec2 p)
 {
     bool ret = Box2DPINVOKE.b2Shape_TestPoint(swigCPtr, b2Transform.getCPtr(xf), b2Vec2.getCPtr(p));
     if (Box2DPINVOKE.SWIGPendingException.Pending) throw Box2DPINVOKE.SWIGPendingException.Retrieve();
     return ret;
 }
コード例 #5
0
ファイル: b2Shape.cs プロジェクト: vanoseva/Box2DCS
 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();
 }
コード例 #6
0
ファイル: b2Body.cs プロジェクト: vanoseva/Box2DCS
 public b2Transform GetTransform()
 {
     b2Transform ret = new b2Transform(Box2DPINVOKE.b2Body_GetTransform(swigCPtr), false);
     return ret;
 }
コード例 #7
0
ファイル: b2Sweep.cs プロジェクト: vanoseva/Box2DCS
 public void GetTransform(b2Transform xfb, float beta)
 {
     Box2DPINVOKE.b2Sweep_GetTransform(swigCPtr, b2Transform.getCPtr(xfb), beta);
 }
コード例 #8
0
ファイル: b2WorldManifold.cs プロジェクト: vanoseva/Box2DCS
 public void Initialize(b2Manifold manifold, b2Transform xfA, float radiusA, b2Transform xfB, float radiusB)
 {
     Box2DPINVOKE.b2WorldManifold_Initialize(swigCPtr, b2Manifold.getCPtr(manifold), b2Transform.getCPtr(xfA), radiusA, b2Transform.getCPtr(xfB), radiusB);
     if (Box2DPINVOKE.SWIGPendingException.Pending) throw Box2DPINVOKE.SWIGPendingException.Retrieve();
 }
コード例 #9
0
ファイル: b2Contact.cs プロジェクト: vanoseva/Box2DCS
 public virtual void Evaluate(b2Manifold manifold, b2Transform xfA, b2Transform xfB)
 {
     Box2DPINVOKE.b2Contact_Evaluate(swigCPtr, b2Manifold.getCPtr(manifold), b2Transform.getCPtr(xfA), b2Transform.getCPtr(xfB));
     if (Box2DPINVOKE.SWIGPendingException.Pending) throw Box2DPINVOKE.SWIGPendingException.Retrieve();
 }
コード例 #10
0
ファイル: b2Transform.cs プロジェクト: vanoseva/Box2DCS
 internal static HandleRef getCPtr(b2Transform obj)
 {
     return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
 }
コード例 #11
0
ファイル: b2Draw.cs プロジェクト: vanoseva/Box2DCS
 public virtual void DrawTransform(b2Transform xf)
 {
     Box2DPINVOKE.b2Draw_DrawTransform(swigCPtr, b2Transform.getCPtr(xf));
     if (Box2DPINVOKE.SWIGPendingException.Pending) throw Box2DPINVOKE.SWIGPendingException.Retrieve();
 }
コード例 #12
0
ファイル: Box2D.cs プロジェクト: vanoseva/Box2DCS
 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;
 }
コード例 #13
0
ファイル: Box2D.cs プロジェクト: vanoseva/Box2DCS
 public static b2Transform b2MulT(b2Transform A, b2Transform B)
 {
     b2Transform ret = new b2Transform(Box2DPINVOKE.b2MulT__SWIG_5(b2Transform.getCPtr(A), b2Transform.getCPtr(B)), true);
     if (Box2DPINVOKE.SWIGPendingException.Pending) throw Box2DPINVOKE.SWIGPendingException.Retrieve();
     return ret;
 }
コード例 #14
0
ファイル: Box2D.cs プロジェクト: vanoseva/Box2DCS
 public static b2Vec2 b2MulT(b2Transform T, b2Vec2 v)
 {
     b2Vec2 ret = new b2Vec2(Box2DPINVOKE.b2MulT__SWIG_4(b2Transform.getCPtr(T), b2Vec2.getCPtr(v)), true);
     if (Box2DPINVOKE.SWIGPendingException.Pending) throw Box2DPINVOKE.SWIGPendingException.Retrieve();
     return ret;
 }
コード例 #15
0
ファイル: Box2D.cs プロジェクト: vanoseva/Box2DCS
 public static void b2CollidePolygons(b2Manifold manifold, b2PolygonShape polygonA, b2Transform xfA, b2PolygonShape polygonB, b2Transform xfB)
 {
     Box2DPINVOKE.b2CollidePolygons(b2Manifold.getCPtr(manifold), b2PolygonShape.getCPtr(polygonA), b2Transform.getCPtr(xfA), b2PolygonShape.getCPtr(polygonB), b2Transform.getCPtr(xfB));
     if (Box2DPINVOKE.SWIGPendingException.Pending) throw Box2DPINVOKE.SWIGPendingException.Retrieve();
 }
コード例 #16
0
ファイル: Box2D.cs プロジェクト: vanoseva/Box2DCS
 public static void b2CollideEdgeAndPolygon(b2Manifold manifold, b2EdgeShape edgeA, b2Transform xfA, b2PolygonShape circleB, b2Transform xfB)
 {
     Box2DPINVOKE.b2CollideEdgeAndPolygon(b2Manifold.getCPtr(manifold), b2EdgeShape.getCPtr(edgeA), b2Transform.getCPtr(xfA), b2PolygonShape.getCPtr(circleB), b2Transform.getCPtr(xfB));
     if (Box2DPINVOKE.SWIGPendingException.Pending) throw Box2DPINVOKE.SWIGPendingException.Retrieve();
 }