Closed quinton-ashley closed 6 months ago
I'm pretty sure this is not a bug actually.
The physics simulation doesn't have to do anything with the static colliders and puts them to sleep. Removing them is negligible because the performance difference is only due to drawing the circles or not.
Here's a proper demo:
https://aijs.io/editor?user=quinton-ashley&project=colliderType_demo
Removing sprite's colliders should make the physics simulation speed go up but it does nothing. Only removing them makes the physics simulation speed go up.
In p5play I'm destroying the physics body of sprites with no collider or sensors though.
Here's a minimum reproducible example:
https://aijs.io/editor?user=quinton-ashley&project=noCollidersBug