---
title: SCNHitTestResult
framework: scenekit
role: symbol
role_heading: Class
path: scenekit/scnhittestresult
---

# SCNHitTestResult

Information about the result of a scene-space or view-space search for scene elements.

## Declaration

```swift
class SCNHitTestResult
```

## Overview

Overview Hit-testing is the process of finding elements of a scene located at a specified point, or along a specified line segment (or ray). An SCNHitTestResult object provides details about one result from a hit-test search. There are three ways to perform a hit-test search. Use the hitTest(_:options:) method of an SCNView object (or other scene renderer), the hitTestWithSegment(from:to:options:) method of a node, or the rayTestWithSegment(from:to:options:) method of your scene’s physics world. When you perform a hit-test search, SceneKit looks for SCNGeometry objects along the ray you specify. For each intersection between the ray and and a geometry, SceneKit creates a hit-test result to provide information about both the SCNNode object containing the geometry and the location of the intersection on the geometry’s surface.

## Topics

### Retrieving Information About a Hit-Test Result

- [node](scenekit/scnhittestresult/node.md)
- [geometryIndex](scenekit/scnhittestresult/geometryindex.md)
- [faceIndex](scenekit/scnhittestresult/faceindex.md)
- [localCoordinates](scenekit/scnhittestresult/localcoordinates.md)
- [worldCoordinates](scenekit/scnhittestresult/worldcoordinates.md)
- [localNormal](scenekit/scnhittestresult/localnormal.md)
- [worldNormal](scenekit/scnhittestresult/worldnormal.md)
- [modelTransform](scenekit/scnhittestresult/modeltransform.md)
- [textureCoordinates(withMappingChannel:)](scenekit/scnhittestresult/texturecoordinates(withmappingchannel:).md)

### Instance Properties

- [boneNode](scenekit/scnhittestresult/bonenode.md)
- [simdLocalCoordinates](scenekit/scnhittestresult/simdlocalcoordinates.md)
- [simdLocalNormal](scenekit/scnhittestresult/simdlocalnormal.md)
- [simdModelTransform](scenekit/scnhittestresult/simdmodeltransform.md)
- [simdWorldCoordinates](scenekit/scnhittestresult/simdworldcoordinates.md)
- [simdWorldNormal](scenekit/scnhittestresult/simdworldnormal.md)

## Relationships

### Inherits From

- [NSObject](objectivec/nsobject-swift.class.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)

## See Also

### Display and Interactivity

- [SCNSceneRenderer](scenekit/scnscenerenderer.md)
- [SCNSceneRendererDelegate](scenekit/scnscenerendererdelegate.md)
- [SCNLayer](scenekit/scnlayer.md)
- [SCNRenderer](scenekit/scnrenderer.md)
