Type Alias

SCNPhysicsShapeOption

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

Declaration

typedef NSString *SCNPhysicsShapeOption;

Discussion

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.

Topics

Type Properties

SCNPhysicsShapeKeepAsCompoundKey

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

SCNPhysicsShapeScaleKey

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

SCNPhysicsShapeTypeKey

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

SCNPhysicsShapeType

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