You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TypeError: Cannot read property 'type' of undefined
at scriptType.P2World.postUpdate (https://launch.playcanvas.com/api/assets/files/scripts/p2-integration.js?id=40361730&branchId=4ebfaa2e-923e-4ad2-b2e4-d10f0763f57d:170:19)
at ScriptComponent._scriptMethod (https://code.playcanvas.com/playcanvas-stable.dbg.js:44702:19)
at ScriptComponent._onPostUpdate (https://code.playcanvas.com/playcanvas-stable.dbg.js:44752:11)
at ScriptComponentSystem._callComponentMethod (https://code.playcanvas.com/playcanvas-stable.dbg.js:45206:49)
at ScriptComponentSystem._onPostUpdate (https://code.playcanvas.com/playcanvas-stable.dbg.js:45221:9)
at Function._helper (https://code.playcanvas.com/playcanvas-stable.dbg.js:29284:12)
at Function.postUpdate (https://code.playcanvas.com/playcanvas-stable.dbg.js:29304:9)
at Application.update (https://code.playcanvas.com/playcanvas-stable.dbg.js:50241:20)
at https://code.playcanvas.com/playcanvas-stable.dbg.js:50847:16
Here's my code to destroy the entity:
enemyBody.entity.destroy();
The body comes from a collision.
The text was updated successfully, but these errors were encountered:
Whenever I try I get
Here's my code to destroy the entity:
The body comes from a collision.
The text was updated successfully, but these errors were encountered: