PxCreateJointConstraintsWithShadersTGS#
Defined in include/PxImmediateMode.h
- bool PxCreateJointConstraintsWithShadersTGS(
- PxConstraintBatchHeader *batchHeaders,
- PxU32 nbBatchHeaders,
- PxConstraint **constraints,
- PxTGSSolverConstraintPrepDesc *jointDescs,
- PxConstraintAllocator &allocator,
- PxReal dt,
- PxReal totalDt,
- PxReal invDt,
- PxReal invTotalDt,
- PxReal lengthScale,
Creates a set of joint constraint blocks.
This function runs joint shaders defined inside PxConstraint** param, fills in joint row information in jointDescs and then calls PxCreateJointConstraints.
See also
PxCreateJointConstraints
- Parameters:
batchHeaders – [in] The set of batchHeaders to be processed
nbBatchHeaders – [in] The number of batch headers to process.
constraints – [in] The set of constraints to be used to produce constraint rows
jointDescs – [inout] An array of constraint prep descs defining the properties of the constraints being created
allocator – [in] An allocator callback to allocate constraint data
dt – [in] The total time-step/nbPositionIterations
totalDt – [in] The total time-step
invDt – [in] The inverse (timestep/nbPositionIterations)
invTotalDt – [in] The inverse total time-step
lengthScale – [in] PxToleranceScale::length, i.e. a meter in simulation units
- Returns:
a boolean indicating if this method was successful or not.