Defined in include/PxImmediateMode.h

void PxConstructSolverBodies(const PxRigidBodyData *inRigidData, PxSolverBodyData *outSolverBodyData, PxU32 nbBodies, const PxVec3 &gravity, PxReal dt, bool gyroscopicForces = false)

Constructs a PxSolverBodyData structure based on rigid body properties.

Applies gravity, damping and clamps maximum velocity.

  • inRigidData[in] The array rigid body properties

  • outSolverBodyData[out] The array of solverBodyData produced to represent these bodies

  • nbBodies[in] The total number of solver bodies to create

  • gravity[in] The gravity vector

  • dt[in] The timestep

  • gyroscopicForces[in] Indicates whether gyroscopic forces should be integrated