I added cannon.js physics to the ground. But when i destroy() the ground, the cannonBox still alive and my character can't fall down

Can you share the project please?

1 Like

*of course, sir. Here is my project

https://playcanvas.com/editor/scene/1130083
*

CannonBox script needs to listen to the destroy event and remove the box from the Cannon world.

1 Like

Can you show me how to do this, sir?

Example here on listening for the destroy event: https://developer.playcanvas.com/en/api/pc.ScriptType.html#event:destroy

*it can’t listen for my destroy eventask2 ask3 *

i fixed it, thank you sir

1 Like