Type Property

backfaceCulling

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

Declaration

static let backfaceCulling: SCNPhysicsWorld.TestOption

Discussion

The value for this key is an NSNumber object containing a Boolean value. The default value is true, specifying that the search should only return contacts with the exterior surfaces of any physics shapes. Change the value to false to consider contacts with both interior and exterior surfaces.

This key applies only to ray and convex sweep tests, and only to physics shapes created using the concavePolyhedron option.

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