Add dynamic behaviors to scene elements; detect contacts and collisions; simulate realistic effects like gravity, springs, and vehicles.
Framework
- Scene
Kit
Add dynamic behaviors to scene elements; detect contacts and collisions; simulate realistic effects like gravity, springs, and vehicles.
Framework
class SCNPhysics Body
The physics simulation attributes attached to a scene graph node.
class SCNPhysics Shape
An abstraction of a physics body’s solid volume for tuning collision detection.
protocol SCNPhysics Contact Delegate
Methods you can implement to respond when a contact or collision occurs between two physics bodies in a scene.
class SCNPhysics Contact
Detailed information about a contact between two physics bodies in a scene’s physics simulation.
class SCNPhysics World
The global simulation of collisions, gravity, joints, and other physics effects in a scene.
class SCNPhysics Field
An object that applies forces, such as gravitation, electromagnetism, and turbulence, to physics bodies within a certain area of effect.
class SCNPhysics Behavior
The abstract superclass for joints, vehicle simulations, and other high-level behaviors that incorporate multiple physics bodies.
class SCNPhysics Hinge Joint
A physics behavior that connects two bodies and allows them to pivot around each other on a single axis.
class SCNPhysics Slider Joint
A physics behavior that connects two bodies and allows them to slide against each other and rotate around their connecting points.
class SCNPhysics Ball Socket Joint
A physics behavior that connects two physics bodies and allows them to pivot around each other in any direction.
class SCNPhysics Vehicle
A physics behavior that modifies a physics body to behave like a car, motorcycle, or other wheeled vehicle.
class SCNPhysics Vehicle Wheel
The appearance and physical characteristics of an individual wheel associated with an physics vehicle behavior.