Global Variable

SCNHitTestClipToZRangeKey

An option to search for objects only within the depth range of the current point of view.

Declaration

const SCNHitTestOption SCNHitTestClipToZRangeKey;

Discussion

The value for this key is an NSNumber object containing a Boolean value. The default value is YES, specifying that hit-testing searches only objects between the zNear and zFar distances of the pointOfView camera. Specify NO to include objects outside this depth range in the search.

This option is valid only when hit-testing in the screen space of an SCNSceneRenderer object with the hitTest:options: method.

See Also

Options

SCNHitTestBackFaceCullingKey

An option to ignore faces not oriented toward the camera.

SCNHitTestBoundingBoxOnlyKey

An option to search for objects by bounding box only.

SCNHitTestOptionCategoryBitMask

An option to search only for objects matching a specified bitmask.

SCNHitTestIgnoreChildNodesKey

An option to ignore child nodes when searching.

SCNHitTestIgnoreHiddenNodesKey

An option to ignore hidden nodes when searching.

SCNHitTestRootNodeKey

The root of the node hierarchy to be searched.

SCNHitTestOptionSearchMode

An option for the number and order of hit test results to provide.

SCNHitTestSearchMode

Possible values for the SCNHitTestOptionSearchMode option used with hit-testing methods.