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