31 #ifndef PX_PHYSICS_EXTENSIONS_RIGIDBODY_H 32 #define PX_PHYSICS_EXTENSIONS_RIGIDBODY_H 94 static bool updateMassAndInertia(
PxRigidBody& body,
const PxReal* shapeDensities,
PxU32 shapeDensityCount,
const PxVec3* massLocalPose = NULL,
bool includeNonSimShapes =
false);
110 static bool updateMassAndInertia(
PxRigidBody& body,
PxReal density,
const PxVec3* massLocalPose = NULL,
bool includeNonSimShapes =
false);
134 static bool setMassAndUpdateInertia(
PxRigidBody& body,
const PxReal* shapeMasses,
PxU32 shapeMassCount,
const PxVec3* massLocalPose = NULL,
bool includeNonSimShapes =
false);
155 static bool setMassAndUpdateInertia(
PxRigidBody& body,
PxReal mass,
const PxVec3* massLocalPose = NULL,
bool includeNonSimShapes =
false);
347 static bool linearSweepSingle(
349 PxHitFlags outputFlags,
354 const PxReal inflation=0.0f);
388 static PxU32 linearSweepMultiple(
390 PxHitFlags outputFlags,
413 static void computeVelocityDeltaFromImpulse(
const PxRigidBody& body,
const PxVec3& impulsiveForce,
const PxVec3& impulsiveTorque,
PxVec3& deltaLinearVelocity,
PxVec3& deltaAngularVelocity);
433 const PxReal invInertiaScale,
PxVec3& deltaLinearVelocity,
PxVec3& deltaAngularVelocity);
Definition: GuContactBuffer.h:37
A scene is a collection of bodies and constraints which can interact.
Definition: PxScene.h:169
Scene query filtering callbacks.
Definition: PxQueryFiltering.h:169
Abstract class for collision shapes.
Definition: PxShape.h:142
float PxReal
Definition: PxSimpleTypes.h:78
Scene query filtering data.
Definition: PxQueryFiltering.h:132
Enum
Definition: PxForceMode.h:52
utility functions for use with PxRigidBody and subclasses
Definition: PxRigidBodyExt.h:58
Utility class to compute and manipulate mass and inertia tensor properties.
Definition: PxMassProperties.h:63
parameter has unit of mass * distance/ time^2, i.e. a force
Definition: PxForceMode.h:54
single hit cache for scene queries.
Definition: PxScene.h:143
int32_t PxI32
Definition: PxSimpleTypes.h:70
Stores results of sweep queries.
Definition: PxQueryReport.h:199
PxRigidBody is a base class shared between dynamic rigid body objects.
Definition: PxRigidBody.h:157
uint32_t PxU32
Definition: Px.h:48
3 Element vector class.
Definition: PxVec3.h:49