예제 #1
0
파일: b2Body.cs 프로젝트: vanoseva/Box2DCS
 public b2Vec2 GetPosition()
 {
     b2Vec2 ret = new b2Vec2(Box2DPINVOKE.b2Body_GetPosition(swigCPtr), false);
     return ret;
 }
예제 #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;
 }
예제 #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;
 }
예제 #4
0
 public override b2Vec2 GetAnchorB()
 {
     b2Vec2 ret = new b2Vec2(Box2DPINVOKE.b2MouseJoint_GetAnchorB(swigCPtr), true);
     return ret;
 }
예제 #5
0
 public b2Vec2 GetTarget()
 {
     b2Vec2 ret = new b2Vec2(Box2DPINVOKE.b2MouseJoint_GetTarget(swigCPtr), false);
     return ret;
 }
예제 #6
0
파일: b2World.cs 프로젝트: vanoseva/Box2DCS
 public void SetGravity(b2Vec2 gravity)
 {
     Box2DPINVOKE.b2World_SetGravity(swigCPtr, b2Vec2.getCPtr(gravity));
     if (Box2DPINVOKE.SWIGPendingException.Pending) throw Box2DPINVOKE.SWIGPendingException.Retrieve();
 }
예제 #7
0
파일: b2Joint.cs 프로젝트: vanoseva/Box2DCS
 public virtual b2Vec2 GetReactionForce(float inv_dt)
 {
     b2Vec2 ret = new b2Vec2(Box2DPINVOKE.b2Joint_GetReactionForce(swigCPtr, inv_dt), true);
     return ret;
 }
예제 #8
0
파일: b2Body.cs 프로젝트: vanoseva/Box2DCS
 public void ApplyForceToCenter(b2Vec2 force)
 {
     Box2DPINVOKE.b2Body_ApplyForceToCenter(swigCPtr, b2Vec2.getCPtr(force));
     if (Box2DPINVOKE.SWIGPendingException.Pending) throw Box2DPINVOKE.SWIGPendingException.Retrieve();
 }
예제 #9
0
파일: b2Body.cs 프로젝트: vanoseva/Box2DCS
 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();
 }
예제 #10
0
파일: b2Body.cs 프로젝트: vanoseva/Box2DCS
 public void SetTransform(b2Vec2 position, float angle)
 {
     Box2DPINVOKE.b2Body_SetTransform(swigCPtr, b2Vec2.getCPtr(position), angle);
     if (Box2DPINVOKE.SWIGPendingException.Pending) throw Box2DPINVOKE.SWIGPendingException.Retrieve();
 }
예제 #11
0
파일: b2Body.cs 프로젝트: vanoseva/Box2DCS
 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();
 }
예제 #12
0
파일: b2Body.cs 프로젝트: vanoseva/Box2DCS
 public void SetLinearVelocity(b2Vec2 v)
 {
     Box2DPINVOKE.b2Body_SetLinearVelocity(swigCPtr, b2Vec2.getCPtr(v));
     if (Box2DPINVOKE.SWIGPendingException.Pending) throw Box2DPINVOKE.SWIGPendingException.Retrieve();
 }
예제 #13
0
파일: b2Body.cs 프로젝트: vanoseva/Box2DCS
 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;
 }
예제 #14
0
파일: b2Body.cs 프로젝트: vanoseva/Box2DCS
 public b2Vec2 GetWorldCenter()
 {
     b2Vec2 ret = new b2Vec2(Box2DPINVOKE.b2Body_GetWorldCenter(swigCPtr), false);
     return ret;
 }
예제 #15
0
파일: b2World.cs 프로젝트: vanoseva/Box2DCS
 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();
 }
예제 #16
0
 public void Set(b2Vec2 vertices, int vertexCount)
 {
     Box2DPINVOKE.b2PolygonShape_Set(swigCPtr, b2Vec2.getCPtr(vertices), vertexCount);
 }
예제 #17
0
파일: b2World.cs 프로젝트: vanoseva/Box2DCS
 public b2World(b2Vec2 gravity)
     : this(Box2DPINVOKE.new_b2World(b2Vec2.getCPtr(gravity)), true)
 {
     if (Box2DPINVOKE.SWIGPendingException.Pending) throw Box2DPINVOKE.SWIGPendingException.Retrieve();
 }
예제 #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();
 }
예제 #19
0
파일: b2Joint.cs 프로젝트: vanoseva/Box2DCS
 public virtual b2Vec2 GetAnchorB()
 {
     b2Vec2 ret = new b2Vec2(Box2DPINVOKE.b2Joint_GetAnchorB(swigCPtr), true);
     return ret;
 }
예제 #20
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;
 }
예제 #21
0
 public void SetTarget(b2Vec2 target)
 {
     Box2DPINVOKE.b2MouseJoint_SetTarget(swigCPtr, b2Vec2.getCPtr(target));
     if (Box2DPINVOKE.SWIGPendingException.Pending) throw Box2DPINVOKE.SWIGPendingException.Retrieve();
 }
예제 #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();
 }
예제 #23
0
 public override b2Vec2 GetReactionForce(float inv_dt)
 {
     b2Vec2 ret = new b2Vec2(Box2DPINVOKE.b2MouseJoint_GetReactionForce(swigCPtr, inv_dt), true);
     return ret;
 }
예제 #24
0
파일: b2Vec2.cs 프로젝트: vanoseva/Box2DCS
 public b2Vec2 Skew()
 {
     b2Vec2 ret = new b2Vec2(Box2DPINVOKE.b2Vec2_Skew(swigCPtr), true);
     return ret;
 }
예제 #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();
 }
예제 #26
0
파일: b2Vec2.cs 프로젝트: vanoseva/Box2DCS
 internal static HandleRef getCPtr(b2Vec2 obj)
 {
     return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
 }
예제 #27
0
 public b2Vec2 GetVertex(int index)
 {
     b2Vec2 ret = new b2Vec2(Box2DPINVOKE.b2CircleShape_GetVertex(swigCPtr, index), false);
     return ret;
 }
예제 #28
0
파일: b2World.cs 프로젝트: vanoseva/Box2DCS
 public b2Vec2 GetGravity()
 {
     b2Vec2 ret = new b2Vec2(Box2DPINVOKE.b2World_GetGravity(swigCPtr), true);
     return ret;
 }
예제 #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;
 }
예제 #30
0
파일: b2Body.cs 프로젝트: vanoseva/Box2DCS
 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;
 }