What it does
globals.destroyMesh takes id, x, y, z and force. id, x, y, z and force are optional.
The API says: impact point + force
Signature
destroyMesh(id?, x?, y?, z?, force?)Arguments
idoptionalxoptionalyoptionalzoptionalforceoptional
Example · generated
function start() { makeDestructible('destructible', {}); destroyMesh('destructible', 0, 2, 0, 10);}globals.destroyMesh is called with values of the shape its signature asks for. The code sits in start(), which the engine calls once, when the entity spawns.