<!--
{
  "availability" : [
    "iOS: 8.0.0 -",
    "iPadOS: 8.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.10.0 -",
    "tvOS: -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SpriteKit",
  "identifier" : "/documentation/SpriteKit/SK3DNode/hitTest(_:options:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "SpriteKit"
    ],
    "preciseIdentifier" : "c:objc(cs)SK3DNode(im)hitTest:options:"
  },
  "title" : "hitTest(_:options:)"
}
-->

# hitTest(_:options:)

Searches the Scene Kit scene for objects corresponding to a point in the rendered image.

```
func hitTest(_ point: CGPoint, options: [String : Any]? = nil) -> [SCNHitTestResult]
```

## Parameters

`point`

A point in the viewport coordinate system of the SpriteKit node.

`options`

A dictionary of options affecting the search. See Hit Testing Options Keys for acceptable values.

## Return Value

An array of <doc://com.apple.documentation/documentation/SceneKit/SCNHitTestResult> objects representing search results.

## Discussion

A point in the SpriteKit node’s 2D viewport coordinate space can refer to any point along a line segment in the 3D SceneKit coordinate space. Hit-testing is the process of finding elements of a scene located along this line segment. For example, you can use this method to find the geometry corresponding to a touch event.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)