A right circular cylinder geometry whose ends are capped with hemispheres.
SDKs
- iOS 8.0+
- macOS 10.8+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
Framework
- Scene
Kit
Declaration
@interface SCNCapsule : SCNGeometry
Overview
A capsule and its properties

Define the size of the two hemispheres forming the ends of a capsule with the cap
property. Because the cylindrical body of the capsule stretches between the its two hemispherical ends, its circular cross section in the x- and z-axis dimensions has the same radius. Define the capsule’s extent in the z-axis dimension of its local coordinate space with the height
property. To change the orientation of a capsule, adjust the transform
property of the node containing the capsule geometry.
Control the level of detail with the height
, cap
, and height
properties. Higher radial and cap segment counts create smoother curves for the cylinder’s circular sides and hemispherical ends. A higher segment count in any direction produces more vertices, which can improve rendering quality for certain lighting models or custom shader effects, but at a cost to rendering performance.