30 #ifndef PX_PHYSICS_NX_CONSTRAINT 31 #define PX_PHYSICS_NX_CONSTRAINT 67 ePROJECT_TO_ACTOR0 = 1<<1,
68 ePROJECT_TO_ACTOR1 = 1<<2,
69 ePROJECTION = ePROJECT_TO_ACTOR0 | ePROJECT_TO_ACTOR1,
70 eCOLLISION_ENABLED = 1<<3,
71 eVISUALIZATION = 1<<4,
72 eDRIVE_LIMITS_ARE_FORCES = 1<<5,
73 eIMPROVED_SLERP = 1<<7,
74 eDISABLE_PREPROCESSING = 1<<8,
75 eENABLE_EXTENDED_LIMITS = 1<<9,
76 eGPU_COMPATIBLE = 1<<10
92 eMAX_SOLVERPRPEP_DATASIZE=400
119 virtual void release() = 0;
128 virtual PxScene* getScene()
const = 0;
153 virtual void markDirty() = 0;
201 virtual bool isValid()
const = 0;
233 virtual void setMinResponseThreshold(
PxReal threshold) = 0;
240 virtual PxReal getMinResponseThreshold()
const = 0;
252 virtual void* getExternalReference(
PxU32& typeID) = 0;
Definition: GuContactBuffer.h:37
A scene is a collection of bodies and constraints which can interact.
Definition: PxScene.h:169
PxConstraintSolverPrep solverPrep
solver constraint generation function
Definition: PxConstraint.h:95
virtual const char * getConcreteTypeName() const
Returns string name of dynamic type.
Definition: PxConstraint.h:265
a table of function pointers for a constraint
Definition: PxConstraint.h:62
PxConstraintProject project
constraint projection function
Definition: PxConstraint.h:96
float PxReal
Definition: PxSimpleTypes.h:78
virtual bool isKindOf(const char *superClass) const
Returns whether a given type name matches with the type of this instance.
Definition: PxBase.h:178
virtual bool isKindOf(const char *name) const
Returns whether a given type name matches with the type of this instance.
Definition: PxConstraint.h:271
PxU32(* PxConstraintSolverPrep)(Px1DConstraint *constraints, PxVec3 &bodyAWorldOffset, PxU32 maxConstraints, PxConstraintInvMassScale &invMassScale, const void *constantBlock, const PxTransform &bodyAToWorld, const PxTransform &bodyBToWorld, bool useExtendedLimits, PxVec3 &cAtW, PxVec3 &cBtW)
Definition: PxConstraintDesc.h:228
PX_INLINE PxConstraint(PxType concreteType, PxBaseFlags baseFlags)
Definition: PxConstraint.h:268
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
PxFlags< PxConstraintFlag::Enum, PxU16 > PxConstraintFlags
constraint flags
Definition: PxConstraint.h:85
virtual ~PxConstraint()
Definition: PxConstraint.h:270
PxVec3 angular
Definition: PxArticulationReducedCoordinate.h:134
PxConstraintFlag::Enum flag
constraint flags
Definition: PxConstraint.h:98
PxU16 flags
a set of Px1DConstraintFlags
Definition: PxConstraintDesc.h:110
A plugin class for implementing constraints.
Definition: PxConstraint.h:108
Enum
Definition: PxConstraint.h:64
void(* PxConstraintProject)(const void *constantBlock, PxTransform &bodyAToWorld, PxTransform &bodyBToWorld, bool projectToA)
Definition: PxConstraintDesc.h:249
PxVec3 linear
Definition: PxArticulationReducedCoordinate.h:132
void(* PxConstraintVisualize)(PxConstraintVisualizer &visualizer, const void *constantBlock, const PxTransform &body0Transform, const PxTransform &body1Transform, PxU32 flags)
Definition: PxConstraintDesc.h:325
Definition: PxConstraint.h:88
PxConstraintVisualize visualize
constraint visualization function
Definition: PxConstraint.h:97
Container for bitfield flag variables associated with a specific enum type.
Definition: PxFlags.h:73
uint16_t PxU16
Definition: PxSimpleTypes.h:73
uint32_t PxU32
Definition: Px.h:48
PX_INLINE PxConstraint(PxBaseFlags baseFlags)
Definition: PxConstraint.h:269
Base class for objects that can be members of a PxCollection.
Definition: PxBase.h:73
#define PX_INLINE
Definition: PxPreprocessor.h:336
3 Element vector class.
Definition: PxVec3.h:49
This class connects a custom constraint to the SDK.
Definition: PxConstraintDesc.h:352