PxCreateJointConstraintsWithImmediateShaders

Defined in include/PxImmediateMode.h

bool PxCreateJointConstraintsWithImmediateShaders(PxConstraintBatchHeader *batchHeaders, PxU32 nbBatchHeaders, PxImmediateConstraint *constraints, PxSolverConstraintPrepDesc *jointDescs, PxConstraintAllocator &allocator, PxReal dt, PxReal invDt, PxSpatialVector *Z = NULL)

Creates a set of joint constraint blocks.

This function runs joint shaders defined inside PxImmediateConstraint* 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 timestep.

  • invDt[in] The inverse timestep.

  • Z[out] Temporary buffer for impulse propagation.

Returns

a boolean indicating if this method was successful or not.