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?
*of course, sir. Here is my project
CannonBox script needs to listen to the destroy event and remove the box from the Cannon world.
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 event *
i fixed it, thank you sir