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