CollisionArea.rectangle constructor

CollisionArea.rectangle({
  1. required Vector2 size,
  2. Vector2? align,
})

Implementation

CollisionArea.rectangle({
  required Vector2 size,
  Vector2? align,
})  : shape = RectangleShape(size),
      align = align ?? Vector2.zero();