Enumeration

SCNHitTestSearchMode

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

Declaration

typedef enum SCNHitTestSearchMode : NSInteger {
    ...
} SCNHitTestSearchMode;

Topics

Search Modes

SCNHitTestSearchModeAll

The hit test should return all possible results, sorted from nearest to farthest.

SCNHitTestSearchModeAny

The hit test should return only the first object found, regardless of distance.

SCNHitTestSearchModeClosest

The hit test should return only the closes object found.

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.

SCNHitTestClipToZRangeKey

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

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.