Exemplo n.º 1
0
 public ShapeCastInputNative()
 {
     transform     = Physics2DNative.GetNewTransform(Vector2.Zero, 0f);
     _EndTransform = Physics2DNative.GetNewTransform(Vector2.Zero, 0f);
     aabb          = new b2AABB();
     _End          = new b2AABB();
 }
Exemplo n.º 2
0
 public void SetAsPolygon(Vector2[] vertices)
 {
     shape = Physics2DNative.GetPolygonShape(vertices);
 }
Exemplo n.º 3
0
 public void SetAsBox(float width, float height)
 {
     shape = Physics2DNative.GetBoxShape(width, height, Vector2.Zero, 0f);
 }
Exemplo n.º 4
0
 public void SetAsCircle(float radius)
 {
     shape = Physics2DNative.GetCircleShape(radius, Vector2.Zero);
 }
Exemplo n.º 5
0
 public OverlapShapeInputNative()
 {
     transform = Physics2DNative.GetNewTransform(Vector2.Zero, 0f);
     aabb      = new b2AABB();
 }
Exemplo n.º 6
0
 public CollisionListenerNative(Physics2DNative physics2DControl)
 {
     _Physics2D = physics2DControl;
 }