31 #ifndef PX_PHYSICS_NX_RIGIDBODY 32 #define PX_PHYSICS_NX_RIGIDBODY 89 eUSE_KINEMATIC_TARGET_FOR_SCENE_QUERIES = (1<<1),
101 eENABLE_CCD = (1<<2),
112 eENABLE_CCD_FRICTION = (1<<3),
124 eENABLE_POSE_INTEGRATION_PREVIEW = (1 << 4),
129 eENABLE_SPECULATIVE_CCD = (1 << 5),
134 eENABLE_CCD_MAX_CONTACT_IMPULSE = (1 << 6),
139 eRETAIN_ACCELERATIONS = (1<<7),
159 eFORCE_KINE_KINE_NOTIFICATIONS = (1<<8),
172 eFORCE_STATIC_KINE_NOTIFICATIONS = (1<<9),
218 virtual void setCMassLocalPose(
const PxTransform& pose) = 0;
250 virtual void setMass(
PxReal mass) = 0;
261 virtual PxReal getMass()
const = 0;
270 virtual PxReal getInvMass()
const = 0;
293 virtual void setMassSpaceInertiaTensor(
const PxVec3& m) = 0;
306 virtual PxVec3 getMassSpaceInertiaTensor()
const = 0;
319 virtual PxVec3 getMassSpaceInvInertiaTensor()
const = 0;
336 virtual void setLinearDamping(
PxReal linDamp) = 0;
345 virtual PxReal getLinearDamping()
const = 0;
360 virtual void setAngularDamping(
PxReal angDamp) = 0;
369 virtual PxReal getAngularDamping()
const = 0;
384 virtual PxVec3 getLinearVelocity()
const = 0;
405 virtual void setLinearVelocity(
const PxVec3& linVel,
bool autowake =
true ) = 0;
416 virtual PxVec3 getAngularVelocity()
const = 0;
438 virtual void setAngularVelocity(
const PxVec3& angVel,
bool autowake =
true ) = 0;
458 virtual void setMaxAngularVelocity(
PxReal maxAngVel) = 0;
467 virtual PxReal getMaxAngularVelocity()
const = 0;
485 virtual void setMaxLinearVelocity(
PxReal maxLinVel) = 0;
494 virtual PxReal getMaxLinearVelocity()
const = 0;
669 virtual void setMinCCDAdvanceCoefficient(
PxReal advanceCoefficient) = 0;
680 virtual PxReal getMinCCDAdvanceCoefficient()
const = 0;
688 virtual void setMaxDepenetrationVelocity(
PxReal biasClamp) = 0;
695 virtual PxReal getMaxDepenetrationVelocity()
const = 0;
716 virtual PxReal getMaxContactImpulse()
const = 0;
723 virtual PxU32 getInternalIslandNodeIndex()
const = 0;
Definition: GuContactBuffer.h:37
virtual ~PxRigidBody()
Definition: PxRigidBody.h:729
PX_INLINE PxRigidBody(PxType concreteType, PxBaseFlags baseFlags)
Definition: PxRigidBody.h:727
PxReal maxImpulse
maximum impulse the solver may apply to enforce this constraint
Definition: PxConstraintDesc.h:93
Collection of flags describing the behavior of a rigid body.
Definition: PxRigidBody.h:52
Enum
Definition: PxRigidBody.h:54
float PxReal
Definition: PxSimpleTypes.h:78
PxVec3 force
Definition: PxArticulationReducedCoordinate.h:132
Enum
Definition: PxForceMode.h:52
PxU16 PxType
Definition: PxBase.h:49
PxRigidActor represents a base class shared between dynamic and static rigid bodies in the physics SD...
Definition: PxRigidActor.h:58
parameter has unit of mass * distance/ time^2, i.e. a force
Definition: PxForceMode.h:54
virtual bool isKindOf(const char *name) const
Returns whether a given type name matches with the type of this instance.
Definition: PxRigidActor.h:228
PxFlags< PxRigidBodyFlag::Enum, PxU16 > PxRigidBodyFlags
collection of set bits defined in PxRigidBodyFlag.
Definition: PxRigidBody.h:186
PxVec3 torque
Definition: PxArticulationReducedCoordinate.h:134
PX_INLINE PxRigidBody(PxBaseFlags baseFlags)
Definition: PxRigidBody.h:728
Container for bitfield flag variables associated with a specific enum type.
Definition: PxFlags.h:73
PxRigidBody is a base class shared between dynamic rigid body objects.
Definition: PxRigidBody.h:195
virtual bool isKindOf(const char *name) const
Returns whether a given type name matches with the type of this instance.
Definition: PxRigidBody.h:730
uint16_t PxU16
Definition: PxSimpleTypes.h:73
uint32_t PxU32
Definition: Px.h:48
#define PX_INLINE
Definition: PxPreprocessor.h:336
3 Element vector class.
Definition: PxVec3.h:49