<!--
{
  "availability" : [
    "iOS: 8.0.0 - 26.0.0",
    "iPadOS: 8.0.0 - 26.0.0",
    "macCatalyst: 13.1.0 - 26.0.0",
    "macOS: 10.8.0 - 26.0.0",
    "tvOS: 9.0.0 - 26.0.0",
    "visionOS: 1.0.0 - 26.0.0",
    "watchOS: 3.0.0 - 26.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "SceneKit",
  "identifier" : "/documentation/SceneKit/SCNPhysicsWorld/TestOption",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "SceneKit"
    ],
    "preciseIdentifier" : "c:@T@SCNPhysicsTestOption"
  },
  "title" : "SCNPhysicsWorld.TestOption"
}
-->

# SCNPhysicsWorld.TestOption

Keys in options dictionaries that affect how SceneKit searches for bodies in a collision, ray, or sweep test.

```
struct TestOption
```

## Discussion

Pass a dictionary containing one or more of these keys (with values as described above) for the `options` parameter when calling one of these methods:

- [`contactTestBetween(_:_:options:)`](/documentation/SceneKit/SCNPhysicsWorld/contactTestBetween(_:_:options:))
- [`contactTest(with:options:)`](/documentation/SceneKit/SCNPhysicsWorld/contactTest(with:options:))
- [`rayTestWithSegment(from:to:options:)`](/documentation/SceneKit/SCNPhysicsWorld/rayTestWithSegment(from:to:options:))
- [`convexSweepTest(with:from:to:options:)`](/documentation/SceneKit/SCNPhysicsWorld/convexSweepTest(with:from:to:options:))

## Topics

### Type Properties

[`backfaceCulling`](/documentation/SceneKit/SCNPhysicsWorld/TestOption/backfaceCulling)

The key for choosing whether to ignore back-facing polygons in physics shapes when searching for contacts.

[`collisionBitMask`](/documentation/SceneKit/SCNPhysicsWorld/TestOption/collisionBitMask)

The key for selecting which categories of physics bodies that SceneKit should test for contacts.

[`searchMode`](/documentation/SceneKit/SCNPhysicsWorld/TestOption/searchMode)

The key for selecting the number and order of contacts to be tested.

[`SCNPhysicsWorld.TestSearchMode`](/documentation/SceneKit/SCNPhysicsWorld/TestSearchMode)

Options affecting how SceneKit searches for bodies in a collision, ray, or sweep test, used with the [`searchMode`](/documentation/SceneKit/SCNPhysicsWorld/TestOption/searchMode) key.



---

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)