v8.1.0
- fixed #61 by implementing lazy updating body bbox in tree
In this release I have fixed "setAngle()
doesn't update body bounding box
in 2d collision system" issue by moving the updateBody()
to checkOne()
, and using it lazily by adding a dirty
flag to all bodies
Now, when you manipulate the body, it gets dirty, the next time it gets checked against in checkOne()
(or checkAll()
since that one uses checkOne()
inside), its bbox will update and dirty flag will be removed, added tests for this
This is a feature and it is not a breaking change