PhysicsViewer crashes the application when disposing of a PhysicsBody

Hey!

The bug can be seen here: https://playground.babylonjs.com/#35H1JV#1
To reproduce it click the button to dispose of the box. This crashes the application.

I suspect that the render loop for the debugger does not check if the PhysicsBody has been disposed of before it tries to update the debug graphics.

I’m on it! Thanks for reporting!

1 Like
2 Likes