---
title: SCNPhysicsWorld.TestOption
framework: scenekit
role: symbol
role_heading: Structure
path: scenekit/scnphysicsworld/testoption
---

# SCNPhysicsWorld.TestOption

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

## Declaration

```swift
struct TestOption
```

## Discussion

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:) contactTest(with:options:) rayTestWithSegment(from:to:options:) convexSweepTest(with:from:to:options:)

## Topics

### Type Properties

- [backfaceCulling](scenekit/scnphysicsworld/testoption/backfaceculling.md)
- [collisionBitMask](scenekit/scnphysicsworld/testoption/collisionbitmask.md)
- [searchMode](scenekit/scnphysicsworld/testoption/searchmode.md)
- [SCNPhysicsWorld.TestSearchMode](scenekit/scnphysicsworld/testsearchmode.md)

### Initializers

- [init(rawValue:)](scenekit/scnphysicsworld/testoption/init(rawvalue:).md)

## Relationships

### Conforms To

- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [RawRepresentable](swift/rawrepresentable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)
