Builtin Library
- ..
- .metadata38 B
- README.md780 B
- init.luau1.1 KB
- ring.module
README.md
shape.ring
A flat annulus in the XY plane facing +Z.
In a scene: RingGeometry(innerRadius, outerRadius, thetaSegments, phiSegments, thetaStart, thetaLength).
| Input | Default | Meaning |
|---|---|---|
innerRadius | 0.5 | The radius of the hole. |
outerRadius | 1 | The outer radius. |
thetaSegments | 32 | Segments around. |
phiSegments | 1 | Segments from the inner to the outer radius. |
thetaStart | 0 | Where the arc starts, in radians. |
thetaLength | 2 pi | How far the arc runs, 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.
RingGeometry(0.3, 0.5, 48)