vrdPhysicsHullConfig¶
-
class
vrdPhysicsHullConfig
¶
(Inherits vrdPhysicsConfig
)
The configuration class for PhysX convex hull colliders.
Summary¶
Functions¶
-
vrdPhysicsHullConfig.
getMergeGeometries
()¶ Check if geometries are merged before creating convex hulls.
Returns: True if geometries are merged, False otherwise. Return type: bool
-
vrdPhysicsHullConfig.
getUseBoundingBox
()¶ Check if the bounding box of the geometry is used to create the convex hull.
Returns: True if the bounding box is used, False otherwise. Return type: bool
-
vrdPhysicsHullConfig.
setMergeGeometries
(enable)¶ Set whether to merge geometries before creating hulls.
If this is enabled, all child geometries of the node will be merged into a single geometry before creating the hull. Otherwise a separate convex hull will be created for each child geometry.
The default value is ‘true’.
Parameters: enable (bool) – True to merge geometries, False otherwise.
-
vrdPhysicsHullConfig.
setUseBoundingBox
(enable)¶ Set whether to use the bounding box of the geometry to create the convex hull.
This is an optimization that can be used to speed up the creation of convex hulls. If precise hulls are not required, this can be enabled to create a convex hull that matches an object oriented bounding box of the geometry. This can be used as a replacement for the normal PhysX box collider since it also works with geometies that are mirrored with a negative scaling factor.
The default value is ‘false’.
Parameters: enable (bool) – True to use the bounding box, False otherwise.