yandeu / arcade-physics

Use Arcade Physics without Phaser.
GNU Lesser General Public License v3.0
49 stars 3 forks source link

Bodies not actually destroyed on destroy() #6

Closed jamesward1 closed 1 year ago

jamesward1 commented 1 year ago

Destroying a body does not actually ever remove it from the World's body list. If you print the length of the body data structure, it grows endlessly but never shrinks, even after calling destroy() on bodies.

jamesward1 commented 1 year ago

Actually, looks like I just made a mistake in not calling postUpdate(). It looks like it works correctly. My mistake.