コード例 #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;
 }