CollisionArea.polygon constructor

CollisionArea.polygon({
  1. required List<Vector2> points,
  2. Vector2? align,
})

Implementation

CollisionArea.polygon({
  required List<Vector2> points,
  Vector2? align,
})  : shape = PolygonShape(points),
      align = align ?? Vector2.zero();