Instance Property

options

The options dictionary that was used to create the shape.

Declaration

var options: [SCNPhysicsShape.Option : Any]? { get }

Discussion

You provide this dictionary in the init(geometry:options:) or init(node:options:) method. Use this dictionary along with the sourceObject property to recover the information that was used to create the shape.

If the shape was created with the init(shapes:transforms:) method, this property’s value is nil.

See Also

Getting Information About a Shape

var sourceObject: Any

The object that was used to create the shape.

var transforms: [NSValue]?

The array of transforms that was used to create a compound shape.