Type Alias


Keys for the options dictionary used when creating a physics shape.


typedef NSString *SCNPhysicsShapeOption;


When SceneKit creates a shape from a hierarchy of nodes containing multiple geometries, the SCNPhysicsShapeKeepAsCompoundKey option takes precedence over the SCNPhysicsShapeTypeKey option.

For example, if you have a node hierarchy containing several geometries, setting the the SCNPhysicsShapeTypeKey option to SCNPhysicsShapeTypeBoundingBox and the SCNPhysicsShapeKeepAsCompoundKey option to YES creates a shape that is a combination of several boxes. This approach can provide better simulation performance than converting the entire node hierarchy to a single concave polyhedron shape.


Type Properties


An option for selecting whether to create a group of independent shapes or combine them into a single shape.


An option for selecting the scale factor of the shape relative to the local coordinate space of the node containing it.


An option for selecting the level of detail at which to create shapes from geometry.


Values for the SCNPhysicsShapeTypeKey key specifying the level of detail that SceneKit uses when creating a physics shape based on a geometry.