An SKPhysicsWorld object simulates collisions and other physical properties. You do not create SKPhysicsWorld objects directly; instead, read the physicsWorld property of an SKScene object.
An SKPhysicsWorld object simulates collisions and other physical properties. You do not create SKPhysicsWorld objects directly; instead, read the physicsWorld property of an SKScene object.
The physics world object allows you to perform the following tasks:
- Set global properties for the simulation, such as gravity
- Create joints between two physics bodies in the scene
- Set a delegate to receive notifications when two physics bodies are in contact with each other
- Determine which physics bodies within the scene intersect with points, rectangles, or rays
Click Here for Apple's Documentation of SKPhysicsWorld