Detect collisions between different shapes such as Points, Lines, Boxes, Polygons (including concave), Ellipses, and Circles. Features include RayCasting and support for offsets, rotation, scaling, bounding box padding, with options for static and trigger bodies (non-colliding).
If you create a Box with
isCentered: true
option and then adjust thewidth
orheight
the Box is repositions itself as ifisCentered
wasfalse
.In order to preserve the
isCentered
property of the box you currently need to do the following: