---
title: SCNPhysicsWorld.TestSearchMode
framework: scenekit
role: symbol
role_heading: Structure
path: scenekit/scnphysicsworld/testsearchmode
---

# SCNPhysicsWorld.TestSearchMode

Options affecting how SceneKit searches for bodies in a collision, ray, or sweep test, used with the searchMode key.

## Declaration

```swift
struct TestSearchMode
```

## Topics

### Type Properties

- [all](scenekit/scnphysicsworld/testsearchmode/all.md)
- [any](scenekit/scnphysicsworld/testsearchmode/any.md)
- [closest](scenekit/scnphysicsworld/testsearchmode/closest.md)

### Initializers

- [init(rawValue:)](scenekit/scnphysicsworld/testsearchmode/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)

## See Also

### Type Properties

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