What it does
mesh.createBox creates a Box in mesh. It takes id and an options object.
Signature
mesh.createBox(id, {size|width,height,depth})Arguments
id{size|width,height,depth}Keys:
size|widthheightdepth
Example · generated
function start() { mesh.createBox('box', { size: 1 });}mesh.createBox 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.