Sphere shape has two options to control:
- Radius - radius of the sphere
- Solid - switched between a solid and hollow spheres
- Thickness - defines the thickness of the hollow shpere walls
- Level of details - defines how smooth the sphere is
Sphere is a very simple shape and has just one material.
Here is a sample script that creates a sphere object:
var m = scene.root.addMesh("sphere", "generator.simple.sphere"); var g = m.generator; g.radius = 20; g.lod = 3; g.solid = false; t.thickness = 1;