What it does
mesh.createSphere creates a Sphere in mesh. It takes id and an options object.
Signature
mesh.createSphere(id, {diameter, segments})Arguments
id{diameter, segments}Keys:
diametersegments
Example · generated
function start() { mesh.createSphere('sphere', { diameter: 1, segments: 16 });}mesh.createSphere 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.