SCNPhysicsWorld
The global simulation of collisions, gravity, joints, and other physics effects in a scene.
Declaration
class SCNPhysicsWorldOverview
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.