The extent of the cylinder along its y-axis. Animatable.
SDKs
- iOS 8.0+
- macOS 10.8+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 3.0+
Framework
- Scene
Kit
Declaration
var height: CGFloat { get set }
Discussion
The cylinder is centered in its local coordinate system. For example, if a cylinder has a height of 10
, its base lies in the plane whose y-coordinate is -5
and its top is in the plane whose y-coordinate is 5
. The default height is 1
. A height of zero or less creates an empty geometry.
You can animate changes to this property’s value. See Animating SceneKit Content.