Structure

SCNPhysicsWorld.TestOption

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

Declaration

struct TestOption

Overview

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:

Topics

Type Properties

static let backfaceCulling: SCNPhysicsWorld.TestOption

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

static let collisionBitMask: SCNPhysicsWorld.TestOption

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

static let searchMode: SCNPhysicsWorld.TestOption

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

struct SCNPhysicsWorld.TestSearchMode

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

Relationships

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software