14 #ifndef PX_PHYSICS_EXTENSIONS_RIGIDBODY_H
15 #define PX_PHYSICS_EXTENSIONS_RIGIDBODY_H
77 static bool updateMassAndInertia(
PxRigidBody& body,
const PxReal* shapeDensities,
PxU32 shapeDensityCount,
const PxVec3* massLocalPose =
NULL,
bool includeNonSimShapes =
false);
93 static bool updateMassAndInertia(
PxRigidBody& body,
PxReal density,
const PxVec3* massLocalPose =
NULL,
bool includeNonSimShapes =
false);
117 static bool setMassAndUpdateInertia(
PxRigidBody& body,
const PxReal* shapeMasses,
PxU32 shapeMassCount,
const PxVec3* massLocalPose =
NULL,
bool includeNonSimShapes =
false);
138 static bool setMassAndUpdateInertia(
PxRigidBody& body,
PxReal mass,
const PxVec3* massLocalPose =
NULL,
bool includeNonSimShapes =
false);
318 static bool linearSweepSingle(
320 PxHitFlags outputFlags,
325 const PxReal inflation=0.0f);
359 static PxU32 linearSweepMultiple(
361 PxHitFlags outputFlags,
384 static void computeVelocityDeltaFromImpulse(
const PxRigidBody& body,
const PxVec3& impulsiveForce,
const PxVec3& impulsiveTorque,
PxVec3& deltaLinearVelocity,
PxVec3& deltaAngularVelocity);
404 const PxReal invInertiaScale,
PxVec3& deltaLinearVelocity,
PxVec3& deltaAngularVelocity);