The node from which the scene’s contents are viewed for rendering.
- iOS 8.0+
- macOS 10.8+
- tvOS 9.0+
- watchOS 3.0+
Use a node with an
SCNCamera instance assigned to its
camera property to view a scene. The node provides the position and direction of a virtual camera, and the camera object provides rendering parameters such as field of view and focus.
For debugging lights and shadows, you can also designate a spotlight (an
SCNLight object whose
type property is
spot) as a point of view. In this case, the light’s
spot property determines the field of view, and its
z properties determine the near and far extents of the region that is visible onscreen (also known as the viewing frustum).
In either case, the direction of view is along the negative z-axis of the node’s local coordinate space.