Creates a capsule geometry with the specified radius and height.
- iOS 8.0+
- macOS 10.8+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 3.0+
The radius both of the capsule’s cylindrical body and of its hemispherical ends.
The height of the capsule along the y-axis of its local coordinate space.
A new capsule geometry.
The capsule is centered in its local coordinate system. For example, if you create a capsule whose cap radius is
5 and height is
20, it extends from
10 in the y-axis, and the circular cross section at the center of its body extends from
5 along the x- and z-axes.