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)
180 virtual void setCMassLocalPose(
const PxTransform& pose) = 0;
212 virtual void setMass(
PxReal mass) = 0;
223 virtual PxReal getMass()
const = 0;
232 virtual PxReal getInvMass()
const = 0;
255 virtual void setMassSpaceInertiaTensor(
const PxVec3& m) = 0;
268 virtual PxVec3 getMassSpaceInertiaTensor()
const = 0;
281 virtual PxVec3 getMassSpaceInvInertiaTensor()
const = 0;
298 virtual void setLinearDamping(
PxReal linDamp) = 0;
307 virtual PxReal getLinearDamping()
const = 0;
322 virtual void setAngularDamping(
PxReal angDamp) = 0;
331 virtual PxReal getAngularDamping()
const = 0;
346 virtual PxVec3 getLinearVelocity()
const = 0;
367 virtual void setLinearVelocity(
const PxVec3& linVel,
bool autowake =
true ) = 0;
378 virtual PxVec3 getAngularVelocity()
const = 0;
400 virtual void setAngularVelocity(
const PxVec3& angVel,
bool autowake =
true ) = 0;
420 virtual void setMaxAngularVelocity(
PxReal maxAngVel) = 0;
429 virtual PxReal getMaxAngularVelocity()
const = 0;
447 virtual void setMaxLinearVelocity(
PxReal maxLinVel) = 0;
456 virtual PxReal getMaxLinearVelocity()
const = 0;
631 virtual void setMinCCDAdvanceCoefficient(
PxReal advanceCoefficient) = 0;
642 virtual PxReal getMinCCDAdvanceCoefficient()
const = 0;
650 virtual void setMaxDepenetrationVelocity(
PxReal biasClamp) = 0;
657 virtual PxReal getMaxDepenetrationVelocity()
const = 0;
678 virtual PxReal getMaxContactImpulse()
const = 0;
685 virtual PxU32 getInternalIslandNodeIndex()
const = 0;
Definition: GuContactBuffer.h:37
virtual ~PxRigidBody()
Definition: PxRigidBody.h:691
PX_INLINE PxRigidBody(PxType concreteType, PxBaseFlags baseFlags)
Definition: PxRigidBody.h:689
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
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
PxFlags< PxRigidBodyFlag::Enum, PxU8 > PxRigidBodyFlags
collection of set bits defined in PxRigidBodyFlag.
Definition: PxRigidBody.h:148
uint8_t PxU8
Definition: PxSimpleTypes.h:75
virtual bool isKindOf(const char *name) const
Returns whether a given type name matches with the type of this instance.
Definition: PxRigidActor.h:228
PX_INLINE PxRigidBody(PxBaseFlags baseFlags)
Definition: PxRigidBody.h:690
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:157
virtual bool isKindOf(const char *name) const
Returns whether a given type name matches with the type of this instance.
Definition: PxRigidBody.h:692
uint32_t PxU32
Definition: Px.h:48
#define PX_INLINE
Definition: PxPreprocessor.h:349
3 Element vector class.
Definition: PxVec3.h:49