PxConvexCoreExt#
Defined in include/extensions/PxConvexCoreExt.h
-
class PxConvexCoreExt#
Convex geometry helpers.
Public Static Functions
- static void computeMassInfo(
- const PxConvexCoreGeometry &convex,
- PxReal &density1Mass,
- PxMat33 &inertiaTensor,
- PxVec3 ¢erOfMass,
Compute mass properties of the convex core geometry.
- Parameters:
convex – The convex geometry.
density1Mass – [out] The mass of the geometry assuming unit density.
inertiaTensor – [out] The inertia tensor of the geometry.
centerOfMass – [out] The center of mass of the geometry.
- static void visualize(
- const PxConvexCoreGeometry &convex,
- const PxTransform &pose,
- bool drawCore,
- const PxBounds3 &cullbox,
- PxRenderOutput &out,
Visualize the convex core geometry.
- Parameters:
convex – The convex geometry.
pose – The pose of the geometry in world space
drawCore – If true, draw the core inside the full convex geometry including the margin
cullbox – The culling box for visualization
out – The render output object to use for visualization