move method
Translates the shape by the specified offset
vector, in-place.
This method is a simpler version of project, since all shapes can be moved without changing the shape type, and with little modifications to the internal state.
Implementation
@override
void move(Vector2 offset) {
_vertices.forEach((vertex) => vertex.add(offset));
_center?.add(offset);
_aabb?.min.add(offset);
_aabb?.max.add(offset);
}