AppleSCNPhysicsShapeOptionDictionary - UBogun/Xojo-iosLib GitHub Wiki
is a subclass of AppleMutableDictionary, prepared with the keys and values as expected by the constructors of AppleSCNPhysicsShape using an option dictionary. See AppleSCNPhysicsShape.
In the constructors above, if you define no AppleSCNPhysicsShapeOptionDictionary, a standard dictionary for the shape will be created.
Constructor
Constructor(): Creates a new Dictionary with the default values for the shape.
Properties
KeepAsCompound As Boolean: Whether to create a group of independent shapes or combine them into a single shape. Default True.
Scale As SCNVector3: The key for selecting the scale factor of the shape relative to the local coordinate space of the node containing it. Default (1.0, 1.0, 1.0)
ShapeType As SCNShapeType: The level of detail at which to create shapes from geometry.
SCNShapeType | Definition |
---|---|
BoundingBox | The physics shape is the smallest box containing the geometry. This option provides the lowest level of detail and the fastest simulation performance. Use it for generally box-shaped physics bodies or when constructing a compound physics shape. |
LowDetail | The physics shape is a convex polyhedron roughly enclosing the geometry. This option provides a moderate level of detail and simulation performance. Use it for rounded or irregularly shaped physics bodies. |
HighDetail | he physics shape is a concave polyhedron closely following the surface of the geometry. This option provides the highest level of detail, at a high cost to simulation performance. Use it only for irregularly shaped bodies where precise collision behavior is crucial to your app’s design. This shape type may only be used for static physics bodies (that is, those whose type property is SCNPhysicsBodyTypeStatic). |