Example #1
0
 public OverlapShapeInputCSharp()
 {
     transform = Physics2DCSharp.GetNewTransform(Vector2.Zero, 0f);
     aabb      = new AABB();
 }
 public CollisionListenerCSharp(Physics2DCSharp physics2DControl)
 {
     _Physics2D = physics2DControl;
 }
Example #3
0
 public void SetAsBox(float width, float height)
 {
     shape = Physics2DCSharp.GetBoxShape(width, height, Vector2.Zero, 0f);
 }
Example #4
0
 public void SetAsPolygon(Vector2[] vertices)
 {
     shape = Physics2DCSharp.GetPolygonShape(vertices);
 }
Example #5
0
 public void SetAsCircle(float radius)
 {
     shape = Physics2DCSharp.GetCircleShape(radius, Vector2.Zero);
 }