Creates a physics body that can be affected by forces and collisions.
- iOS 8.0+
- macOS 10.10+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 3.0+
A new physics body object.
Use dynamic bodies for the elements of your scene that are moved by the physics simulation.
SceneKit automatically creates a physics shape for the body when you attach it to a node, based on that node’s
geometry property. To create a physics shape that’s based on the geometries of a node and its hierarchy of children, or to control the level of detail in a physics shape, create the physics shape manually using an
SCNPhysics class method.