launchUpdateInverseMass#
Fully qualified name: isaacsim::physics::newton::tensors::launchUpdateInverseMass
- bool isaacsim::physics::newton::tensors::launchUpdateInverseMass(
- const float *mass,
- float *inverseMass,
- int n,
- void *stream = nullptr,
Compute per-element inverse mass on device.
inverseMass[i] = mass[i] > eps ? 1.0f / mass[i] : 0.0f.- Parameters:
mass – Device pointer to the mass array.
inverseMass – Device pointer to the output array; may alias
mass.n – Element count.
stream – CUDA stream.
- Returns:
trueif the launch succeeded.