Contents

SCNPhysicsWorld

The global simulation of collisions, gravity, joints, and other physics effects in a scene.

Declaration

class SCNPhysicsWorld

Overview

You do not create SCNPhysicsWorld objects directly; instead, read the physicsWorld property of an SCNScene object. Use physics world object to perform the following tasks:

  • Manage global properties of the simulation, such as its speed and constant gravity. (For more precise control of gravity and similar effects, see the SCNPhysicsField class.)

  • Register behaviors that modify interactions between the scene’s physics bodies, such as joints and vehicles. For more details, see SCNPhysicsBehavior.

  • Specify a delegate object to receive messages when two physics bodies contact each other

  • Perform specific contact tests, and search for physics bodies in the scene using ray and sweep tests.

Topics

Managing the Physics Simulation

Registering Physics Behaviors

Detecting Contacts Between Physics Bodies

Searching for Physics Bodies

Search Options

Initializers

See Also

Physics in a Scene