What it does
mesh.translate takes id, axis and dist.
Signature
mesh.translate(id, axis, dist)Arguments
idaxisdist
Example · generated
function start() { mesh.createBox('box', { size: 1 }); mesh.translate('box', 'Horizontal', 10);}mesh.createBox is there to give the call something to act on; mesh.translate is the line that matters. The code sits in start(), which the engine calls once, when the entity spawns.