30 #ifndef PX_PHYSICS_NX_CONSTRAINTDESC 31 #define PX_PHYSICS_NX_CONSTRAINTDESC 43 namespace physx {
namespace pvdsdk {
74 eACCELERATION_SPRING = 1<<1,
78 eHAS_DRIVE_LIMIT = 1<<5,
79 eANGULAR_CONSTRAINT = 1 << 6,
99 eROTATIONAL_EQUALITY = 1024,
100 eROTATIONAL_INEQUALITY = 1025,
155 struct SpringModifiers
160 struct RestitutionModifiers
230 PxU32 maxConstraints,
232 const void* constantBlock,
235 bool useExtendedLimits,
302 virtual void visualizeDoubleCone(
const PxTransform& t,
PxReal angle,
bool active) = 0;
326 const void* constantBlock,
339 UPDATE_SIM_PROPERTIES
359 virtual void* prepareData() = 0;
364 virtual bool updatePvdProperties(physx::pvdsdk::PvdDataStream& pvdConnection,
378 virtual void onConstraintRelease() = 0;
386 virtual void onComShift(
PxU32 actor) = 0;
399 virtual void onOriginShift(
const PxVec3& shift) = 0;
413 virtual void* getExternalReference(
PxU32& typeID) = 0;
420 virtual PxBase* getSerializable() = 0;
430 virtual const void* getConstantBlock()
const = 0;
Definition: GuContactBuffer.h:37
A scene is a collection of bodies and constraints which can interact.
Definition: PxScene.h:169
PxReal damping
damping parameter, for spring constraints
Definition: PxConstraintDesc.h:158
PxVec3 linear0
linear component of velocity jacobian in world space
Definition: PxConstraintDesc.h:143
PxReal minImpulse
minimum impulse the solver may apply to enforce this constraint
Definition: PxConstraintDesc.h:149
Definition: PxConstraintDesc.h:257
Definition: PxConstraintDesc.h:336
PxReal stiffness
spring parameter, for spring constraints
Definition: PxConstraintDesc.h:157
PxVec3 linear0
linear component of velocity jacobian in world space
Definition: PxConstraintDesc.h:85
PxVec3 angular0
angular component of velocity jacobian in world space
Definition: PxConstraintDesc.h:87
PxVec3 linear1
linear component of velocity jacobian in world space
Definition: PxConstraintDesc.h:148
constraint row flags
Definition: PxConstraintDesc.h:67
#define PX_FORCE_INLINE
Definition: PxPreprocessor.h:364
float PxReal
Definition: PxSimpleTypes.h:78
struct @6::SpringModifiers spring
uint32_t PxU32
Definition: PxSimpleTypes.h:71
PxReal linear0
multiplier for inverse mass of body0
Definition: PxConstraintDesc.h:198
PxReal angular1
multiplier for inverse MoI of body1
Definition: PxConstraintDesc.h:201
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
A constraint.
Definition: PxConstraintDesc.h:141
Flags for determining which components of the constraint should be visualized.
Definition: PxConstraintDesc.h:179
PxReal forInternalUse
for internal use only
Definition: PxConstraintDesc.h:167
PxVec3 linear1
linear component of velocity jacobian in world space
Definition: PxConstraintDesc.h:90
PxReal velocityTarget
velocity target for the constraint along this axis
Definition: PxConstraintDesc.h:146
struct @6::RestitutionModifiers bounce
PxReal restitution
restitution parameter for determining additional "bounce"
Definition: PxConstraintDesc.h:162
virtual ~PxConstraintVisualizer()
Definition: PxConstraintDesc.h:260
PxReal maxImpulse
maximum impulse the solver may apply to enforce this constraint
Definition: PxConstraintDesc.h:151
PxVec3 angular1
angular component of velocity jacobian in world space
Definition: PxConstraintDesc.h:92
Definition: PxConstraintDesc.h:189
PxReal geometricError
geometric error of the constraint along this axis
Definition: PxConstraintDesc.h:144
PxRigidActor represents a base class shared between dynamic and static rigid bodies in the physics SD...
Definition: PxRigidActor.h:58
Type
Definition: PxConstraintDesc.h:71
PxVec3 angular0
angular component of velocity jacobian in world space
Definition: PxConstraintDesc.h:145
constraint type hints which the solver uses to optimize constraint handling
Definition: PxConstraintDesc.h:90
PxU16 flags
a set of Px1DConstraintFlags
Definition: PxConstraintDesc.h:110
#define PX_ALIGN_PREFIX(alignment)
Definition: PxPreprocessor.h:422
Definition: PxConstraintDesc.h:332
PxFlags< Px1DConstraintFlag::Type, PxU16 > Px1DConstraintFlags
Definition: PxConstraintDesc.h:84
Interface for points, lines, triangles, and text buffer.
Definition: PxRenderBuffer.h:131
A plugin class for implementing constraints.
Definition: PxConstraint.h:108
PX_CUDA_CALLABLE PX_FORCE_INLINE PxConstraintInvMassScale(PxReal lin0, PxReal ang0, PxReal lin1, PxReal ang1)
Definition: PxConstraintDesc.h:204
void(* PxConstraintProject)(const void *constantBlock, PxTransform &bodyAToWorld, PxTransform &bodyBToWorld, bool projectToA)
Definition: PxConstraintDesc.h:249
interface to get notification on object deletion
Definition: PxDeletionListener.h:73
PX_CUDA_CALLABLE PX_FORCE_INLINE PxConstraintInvMassScale()
Definition: PxConstraintDesc.h:203
PxReal angular0
multiplier for inverse MoI of body0
Definition: PxConstraintDesc.h:199
PxU16 flags
a set of Px1DConstraintFlags
Definition: PxConstraintDesc.h:168
void(* PxConstraintVisualize)(PxConstraintVisualizer &visualizer, const void *constantBlock, const PxTransform &body0Transform, const PxTransform &body1Transform, PxU32 flags)
Definition: PxConstraintDesc.h:325
Enum
Definition: PxConstraintDesc.h:334
Definition: PxConstraintDesc.h:338
Container for bitfield flag variables associated with a specific enum type.
Definition: PxFlags.h:73
PxU16 solveHint
constraint optimization hint, should be an element of PxConstraintSolveHint
Definition: PxConstraintDesc.h:169
Definition: PxConstraintDesc.h:337
uint16_t PxU16
Definition: PxSimpleTypes.h:73
Enum
Definition: PxConstraintDesc.h:181
uint32_t PxU32
Definition: Px.h:48
Base class for objects that can be members of a PxCollection.
Definition: PxBase.h:73
PxReal velocityThreshold
minimum impact velocity for bounce
Definition: PxConstraintDesc.h:163
#define PX_CUDA_CALLABLE
Definition: PxPreprocessor.h:473
3 Element vector class.
Definition: PxVec3.h:49
virtual ~PxConstraintConnector()
virtual destructor
Definition: PxConstraintDesc.h:435
PxReal linear1
multiplier for inverse mass of body1
Definition: PxConstraintDesc.h:200
PX_CUDA_CALLABLE Px1DConstraintFlag()
Definition: PxConstraintDesc.h:69
This class connects a custom constraint to the SDK.
Definition: PxConstraintDesc.h:352
PxVec3 angular1
angular component of velocity jacobian in world space
Definition: PxConstraintDesc.h:150
struct PxConstraintVisualizationFlag PX_ALIGN_SUFFIX