Skip to content

v8.1.0

Compare
Choose a tag to compare
@Prozi Prozi released this 01 Jul 20:46
· 116 commits to master since this release
  • 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