init(shapes:transforms:)
Creates a new physics shape by combining others.
Declaration
convenience init(shapes: [SCNPhysicsShape], transforms: [NSValue]?)Parameters
- shapes:
An array of Scnphysicsshape objects.
- transforms:
An array of Nsvalue objects containing Scnmatrix4 Swift.struct values, each of which is a transform for the physics shape at the corresponding index in the
shapesparameter.
Return Value
A new physics shape object.
Discussion
An individual physics shape is defined in its own local coordinate space. Therefore, to describe the positions and orientations of multiple shapes relative to one another, you must use coordinate transformations.