Instance Property

options

The options dictionary that was used to create the shape.

Declaration

@property(readonly, nonatomic) NSDictionary<SCNPhysicsShapeOption, id> *options;

Discussion

You provide this dictionary in the shapeWithGeometry:options: or shapeWithNode: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 shapeWithShapes:transforms: method, this property’s value is nil.

See Also

Getting Information About a Shape

sourceObject

The object that was used to create the shape.

transforms

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