sim.computeMassAndInertiaComputes and applies the mass and inertia matrix for a shape, based on its convex representation. When calling this function while the simulation is running, one should then call sim.resetDynamicObject, for the changes to take effect Synopsisint result = sim.computeMassAndInertia(int shapeHandle, float density)
int result = sim.computeMassAndInertia(int shapeHandle, float density)
Arguments
Return values
|