public b2Vec2 GetPosition() { b2Vec2 ret = new b2Vec2(Box2DPINVOKE.b2Body_GetPosition(swigCPtr), false); return ret; }
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; }
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; }
public override b2Vec2 GetAnchorB() { b2Vec2 ret = new b2Vec2(Box2DPINVOKE.b2MouseJoint_GetAnchorB(swigCPtr), true); return ret; }
public b2Vec2 GetTarget() { b2Vec2 ret = new b2Vec2(Box2DPINVOKE.b2MouseJoint_GetTarget(swigCPtr), false); return ret; }
public void SetGravity(b2Vec2 gravity) { Box2DPINVOKE.b2World_SetGravity(swigCPtr, b2Vec2.getCPtr(gravity)); if (Box2DPINVOKE.SWIGPendingException.Pending) throw Box2DPINVOKE.SWIGPendingException.Retrieve(); }
public virtual b2Vec2 GetReactionForce(float inv_dt) { b2Vec2 ret = new b2Vec2(Box2DPINVOKE.b2Joint_GetReactionForce(swigCPtr, inv_dt), true); return ret; }
public void ApplyForceToCenter(b2Vec2 force) { Box2DPINVOKE.b2Body_ApplyForceToCenter(swigCPtr, b2Vec2.getCPtr(force)); if (Box2DPINVOKE.SWIGPendingException.Pending) throw Box2DPINVOKE.SWIGPendingException.Retrieve(); }
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(); }
public void SetTransform(b2Vec2 position, float angle) { Box2DPINVOKE.b2Body_SetTransform(swigCPtr, b2Vec2.getCPtr(position), angle); if (Box2DPINVOKE.SWIGPendingException.Pending) throw Box2DPINVOKE.SWIGPendingException.Retrieve(); }
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(); }
public void SetLinearVelocity(b2Vec2 v) { Box2DPINVOKE.b2Body_SetLinearVelocity(swigCPtr, b2Vec2.getCPtr(v)); if (Box2DPINVOKE.SWIGPendingException.Pending) throw Box2DPINVOKE.SWIGPendingException.Retrieve(); }
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; }
public b2Vec2 GetWorldCenter() { b2Vec2 ret = new b2Vec2(Box2DPINVOKE.b2Body_GetWorldCenter(swigCPtr), false); return ret; }
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(); }
public void Set(b2Vec2 vertices, int vertexCount) { Box2DPINVOKE.b2PolygonShape_Set(swigCPtr, b2Vec2.getCPtr(vertices), vertexCount); }
public b2World(b2Vec2 gravity) : this(Box2DPINVOKE.new_b2World(b2Vec2.getCPtr(gravity)), true) { if (Box2DPINVOKE.SWIGPendingException.Pending) throw Box2DPINVOKE.SWIGPendingException.Retrieve(); }
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(); }
public virtual b2Vec2 GetAnchorB() { b2Vec2 ret = new b2Vec2(Box2DPINVOKE.b2Joint_GetAnchorB(swigCPtr), true); return ret; }
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; }
public void SetTarget(b2Vec2 target) { Box2DPINVOKE.b2MouseJoint_SetTarget(swigCPtr, b2Vec2.getCPtr(target)); if (Box2DPINVOKE.SWIGPendingException.Pending) throw Box2DPINVOKE.SWIGPendingException.Retrieve(); }
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(); }
public override b2Vec2 GetReactionForce(float inv_dt) { b2Vec2 ret = new b2Vec2(Box2DPINVOKE.b2MouseJoint_GetReactionForce(swigCPtr, inv_dt), true); return ret; }
public b2Vec2 Skew() { b2Vec2 ret = new b2Vec2(Box2DPINVOKE.b2Vec2_Skew(swigCPtr), true); return ret; }
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(); }
internal static HandleRef getCPtr(b2Vec2 obj) { return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; }
public b2Vec2 GetVertex(int index) { b2Vec2 ret = new b2Vec2(Box2DPINVOKE.b2CircleShape_GetVertex(swigCPtr, index), false); return ret; }
public b2Vec2 GetGravity() { b2Vec2 ret = new b2Vec2(Box2DPINVOKE.b2World_GetGravity(swigCPtr), true); return ret; }
public int GetSupport(b2Vec2 d) { int ret = Box2DPINVOKE.b2CircleShape_GetSupport(swigCPtr, b2Vec2.getCPtr(d)); if (Box2DPINVOKE.SWIGPendingException.Pending) throw Box2DPINVOKE.SWIGPendingException.Retrieve(); return ret; }
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; }