49 const PxReal invLengthScale);
61 const PxReal biasCoefficient,
68 const PxReal invLengthScale);
74 static ComputeUnconstrainedVelocitiesFn sComputeUnconstrainedVelocities;
75 static UpdateBodiesFn sUpdateBodies;
76 static UpdateBodiesFn sUpdateBodiesTGS;
77 static SaveVelocityFn sSaveVelocity;
78 static SaveVelocityTGSFn sSaveVelocityTGS;
80 static UpdateDeltaMotionFn sUpdateDeltaMotion;
81 static DeltaMotionToMotionVelFn sDeltaMotionToMotionVel;
82 static ComputeUnconstrainedVelocitiesTGSFn sComputeUnconstrainedVelocitiesTGS;
83 static SetupInternalConstraintsTGSFn sSetupInternalConstraintsTGS;
91 const PxReal invLengthScale)
93 PX_ASSERT(sComputeUnconstrainedVelocities);
94 if (sComputeUnconstrainedVelocities)
95 return (sComputeUnconstrainedVelocities)(desc, dt, acCount,
96 gravity, Z, deltaV, invLengthScale);
104 PX_ASSERT(sUpdateBodies);
106 (*sUpdateBodies)(desc, tempDeltaV, dt);
112 PX_ASSERT(sUpdateBodiesTGS);
113 if (sUpdateBodiesTGS)
114 (*sUpdateBodiesTGS)(desc, tempDeltaV, dt);
119 PX_ASSERT(sSaveVelocity);
121 (*sSaveVelocity)(desc, tempDeltaV);
129 PX_ASSERT(sSaveVelocityTGS);
130 if (sSaveVelocityTGS)
131 (*sSaveVelocityTGS)(desc, invDtF32);
137 const PxReal invLengthScale)
139 PX_ASSERT(sComputeUnconstrainedVelocitiesTGS);
140 if (sComputeUnconstrainedVelocitiesTGS)
141 (sComputeUnconstrainedVelocitiesTGS)(desc, dt, gravity, contextID, Z, DeltaV, invLengthScale);
146 PX_ASSERT(sUpdateDeltaMotion);
147 if (sUpdateDeltaMotion)
148 (*sUpdateDeltaMotion)(desc, dt, DeltaV, totalInvDt);
153 PX_ASSERT(sDeltaMotionToMotionVel);
154 if (sDeltaMotionToMotionVel)
155 (*sDeltaMotionToMotionVel)(desc, invDt);
162 const PxReal biasCoefficient,
166 PX_ASSERT(sSetupInternalConstraintsTGS);
167 if (sSetupInternalConstraintsTGS)
168 return sSetupInternalConstraintsTGS(desc, dt, invDt,
169 totalDt, biasCoefficient, acCount, Z);