Beispiel #1
0
 public b2Vec2 GetPosition()
 {
     b2Vec2 ret = new b2Vec2(Box2DPINVOKE.b2Body_GetPosition(swigCPtr), false);
     return ret;
 }
Beispiel #2
0
 public b2Vec2 GetSupportVertex(b2Vec2 d)
 {
     b2Vec2 ret = new b2Vec2(Box2DPINVOKE.b2CircleShape_GetSupportVertex(swigCPtr, b2Vec2.getCPtr(d)), false);
     if (Box2DPINVOKE.SWIGPendingException.Pending) throw Box2DPINVOKE.SWIGPendingException.Retrieve();
     return ret;
 }
Beispiel #3
0
 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;
 }
Beispiel #4
0
 public override b2Vec2 GetAnchorB()
 {
     b2Vec2 ret = new b2Vec2(Box2DPINVOKE.b2MouseJoint_GetAnchorB(swigCPtr), true);
     return ret;
 }
Beispiel #5
0
 public b2Vec2 GetTarget()
 {
     b2Vec2 ret = new b2Vec2(Box2DPINVOKE.b2MouseJoint_GetTarget(swigCPtr), false);
     return ret;
 }
Beispiel #6
0
 public void SetGravity(b2Vec2 gravity)
 {
     Box2DPINVOKE.b2World_SetGravity(swigCPtr, b2Vec2.getCPtr(gravity));
     if (Box2DPINVOKE.SWIGPendingException.Pending) throw Box2DPINVOKE.SWIGPendingException.Retrieve();
 }
Beispiel #7
0
 public virtual b2Vec2 GetReactionForce(float inv_dt)
 {
     b2Vec2 ret = new b2Vec2(Box2DPINVOKE.b2Joint_GetReactionForce(swigCPtr, inv_dt), true);
     return ret;
 }
Beispiel #8
0
 public void ApplyForceToCenter(b2Vec2 force)
 {
     Box2DPINVOKE.b2Body_ApplyForceToCenter(swigCPtr, b2Vec2.getCPtr(force));
     if (Box2DPINVOKE.SWIGPendingException.Pending) throw Box2DPINVOKE.SWIGPendingException.Retrieve();
 }
Beispiel #9
0
 public void ApplyLinearImpulse(b2Vec2 impulse, b2Vec2 point)
 {
     Box2DPINVOKE.b2Body_ApplyLinearImpulse(swigCPtr, b2Vec2.getCPtr(impulse), b2Vec2.getCPtr(point));
     if (Box2DPINVOKE.SWIGPendingException.Pending) throw Box2DPINVOKE.SWIGPendingException.Retrieve();
 }
Beispiel #10
0
 public void SetTransform(b2Vec2 position, float angle)
 {
     Box2DPINVOKE.b2Body_SetTransform(swigCPtr, b2Vec2.getCPtr(position), angle);
     if (Box2DPINVOKE.SWIGPendingException.Pending) throw Box2DPINVOKE.SWIGPendingException.Retrieve();
 }
Beispiel #11
0
 public void ApplyForce(b2Vec2 force, b2Vec2 point)
 {
     Box2DPINVOKE.b2Body_ApplyForce(swigCPtr, b2Vec2.getCPtr(force), b2Vec2.getCPtr(point));
     if (Box2DPINVOKE.SWIGPendingException.Pending) throw Box2DPINVOKE.SWIGPendingException.Retrieve();
 }
Beispiel #12
0
 public void SetLinearVelocity(b2Vec2 v)
 {
     Box2DPINVOKE.b2Body_SetLinearVelocity(swigCPtr, b2Vec2.getCPtr(v));
     if (Box2DPINVOKE.SWIGPendingException.Pending) throw Box2DPINVOKE.SWIGPendingException.Retrieve();
 }
Beispiel #13
0
 public b2Vec2 GetWorldVector(b2Vec2 localVector)
 {
     b2Vec2 ret = new b2Vec2(Box2DPINVOKE.b2Body_GetWorldVector(swigCPtr, b2Vec2.getCPtr(localVector)), true);
     if (Box2DPINVOKE.SWIGPendingException.Pending) throw Box2DPINVOKE.SWIGPendingException.Retrieve();
     return ret;
 }
Beispiel #14
0
 public b2Vec2 GetWorldCenter()
 {
     b2Vec2 ret = new b2Vec2(Box2DPINVOKE.b2Body_GetWorldCenter(swigCPtr), false);
     return ret;
 }
Beispiel #15
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();
 }
Beispiel #16
0
 public void Set(b2Vec2 vertices, int vertexCount)
 {
     Box2DPINVOKE.b2PolygonShape_Set(swigCPtr, b2Vec2.getCPtr(vertices), vertexCount);
 }
Beispiel #17
0
 public b2World(b2Vec2 gravity)
     : this(Box2DPINVOKE.new_b2World(b2Vec2.getCPtr(gravity)), true)
 {
     if (Box2DPINVOKE.SWIGPendingException.Pending) throw Box2DPINVOKE.SWIGPendingException.Retrieve();
 }
Beispiel #18
0
 public void SetAsBox(float hx, float hy, b2Vec2 center, float angle)
 {
     Box2DPINVOKE.b2PolygonShape_SetAsBox__SWIG_1(swigCPtr, hx, hy, b2Vec2.getCPtr(center), angle);
     if (Box2DPINVOKE.SWIGPendingException.Pending) throw Box2DPINVOKE.SWIGPendingException.Retrieve();
 }
Beispiel #19
0
 public virtual b2Vec2 GetAnchorB()
 {
     b2Vec2 ret = new b2Vec2(Box2DPINVOKE.b2Joint_GetAnchorB(swigCPtr), true);
     return ret;
 }
Beispiel #20
0
 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;
 }
Beispiel #21
0
 public void SetTarget(b2Vec2 target)
 {
     Box2DPINVOKE.b2MouseJoint_SetTarget(swigCPtr, b2Vec2.getCPtr(target));
     if (Box2DPINVOKE.SWIGPendingException.Pending) throw Box2DPINVOKE.SWIGPendingException.Retrieve();
 }
Beispiel #22
0
 public void Set(b2Vec2 v1, b2Vec2 v2)
 {
     Box2DPINVOKE.b2EdgeShape_Set(swigCPtr, b2Vec2.getCPtr(v1), b2Vec2.getCPtr(v2));
     if (Box2DPINVOKE.SWIGPendingException.Pending) throw Box2DPINVOKE.SWIGPendingException.Retrieve();
 }
Beispiel #23
0
 public override b2Vec2 GetReactionForce(float inv_dt)
 {
     b2Vec2 ret = new b2Vec2(Box2DPINVOKE.b2MouseJoint_GetReactionForce(swigCPtr, inv_dt), true);
     return ret;
 }
Beispiel #24
0
 public b2Vec2 Skew()
 {
     b2Vec2 ret = new b2Vec2(Box2DPINVOKE.b2Vec2_Skew(swigCPtr), true);
     return ret;
 }
Beispiel #25
0
 public void Initialize(b2Body bodyA, b2Body bodyB, b2Vec2 anchor, b2Vec2 axis)
 {
     Box2DPINVOKE.b2PrismaticJointDef_Initialize(swigCPtr, b2Body.getCPtr(bodyA), b2Body.getCPtr(bodyB), b2Vec2.getCPtr(anchor), b2Vec2.getCPtr(axis));
     if (Box2DPINVOKE.SWIGPendingException.Pending) throw Box2DPINVOKE.SWIGPendingException.Retrieve();
 }
Beispiel #26
0
 internal static HandleRef getCPtr(b2Vec2 obj)
 {
     return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
 }
Beispiel #27
0
 public b2Vec2 GetVertex(int index)
 {
     b2Vec2 ret = new b2Vec2(Box2DPINVOKE.b2CircleShape_GetVertex(swigCPtr, index), false);
     return ret;
 }
Beispiel #28
0
 public b2Vec2 GetGravity()
 {
     b2Vec2 ret = new b2Vec2(Box2DPINVOKE.b2World_GetGravity(swigCPtr), true);
     return ret;
 }
Beispiel #29
0
 public int GetSupport(b2Vec2 d)
 {
     int ret = Box2DPINVOKE.b2CircleShape_GetSupport(swigCPtr, b2Vec2.getCPtr(d));
     if (Box2DPINVOKE.SWIGPendingException.Pending) throw Box2DPINVOKE.SWIGPendingException.Retrieve();
     return ret;
 }
Beispiel #30
0
 public b2Vec2 GetLocalPoint(b2Vec2 worldPoint)
 {
     b2Vec2 ret = new b2Vec2(Box2DPINVOKE.b2Body_GetLocalPoint(swigCPtr, b2Vec2.getCPtr(worldPoint)), true);
     if (Box2DPINVOKE.SWIGPendingException.Pending) throw Box2DPINVOKE.SWIGPendingException.Retrieve();
     return ret;
 }