Creates a physics body with the specified type and shape.
Mac Catalyst 13.0+
A constant that determines how a body responds to forces and collisions. See SCNPhysicsBodyType.
A physics shape defining the volume of the body for collision detection purposes.
A new physics body object.
For the body to participate in collision detection or respond to forces, you must attach it to the physicsBody property of an SCNNode object in a scene.
If you pass nil for the shape parameter, 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 SCNPhysicsShape class method.