capsule.procNode
- .metadata38 B
- README.md688 B
- capsule.module
- init.luau870 B
This package holds more than this page lists. See all of its files in its world.
README.md
shape.capsule
A capsule along Y: a cylinder of length with a hemisphere on each end.
In a scene: CapsuleGeometry(radius, length, capSegments, radialSegments).
| Input | Default | Meaning |
|---|---|---|
radius | 0.5 | The radius of the cylinder and the caps. |
length | 1 | The length of the straight middle part. |
capSegments | 4 | Segments along each cap's arc. |
radialSegments | 16 | Segments around. |
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.
CapsuleGeometry(0.35, 0.9, 6, 20)