Builtin Library
- ..
- .metadata100 B
- README.md681 B
- init.luau873 B
- torus.module
README.md
shape.torus
A torus in the XY plane around Z.
In a scene: TorusGeometry(radius, tube, radialSegments, tubularSegments, arc).
| Input | Default | Meaning |
|---|---|---|
radius | 1 | The radius of the ring. |
tube | 0.4 | The radius of the tube. |
radialSegments | 12 | Segments around the tube. |
tubularSegments | 48 | Segments around the ring. |
arc | 2 pi | How much of the ring, in radians. |
The node answers geometry: a mesh with positions, normals and uvs. Its body is a call into the module in its own folder, so a graph of many parts cooks without a device dispatch per shape.
TorusGeometry(0.255, 0.105, 14, 32)