MCPcopy Create free account
hub / github.com/NVIDIAGameWorks/PhysX / setInverseMass

Method setInverseMass

physx/source/simulationcontroller/src/ScBodyCore.cpp:276–285  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

274}
275
276void Sc::BodyCore::setInverseMass(PxReal m)
277{
278 if(mSimStateData && mSimStateData->isKine())
279 mSimStateData->getKinematicData()->backupInvMass = m;
280 else
281 {
282 mCore.inverseMass = m;
283 updateBodySim(*this);
284 }
285}
286
287const PxVec3& Sc::BodyCore::getInverseInertia() const
288{

Callers 1

setMassMethod · 0.80

Calls 3

updateBodySimFunction · 0.85
isKineMethod · 0.80
getKinematicDataMethod · 0.80

Tested by

no test coverage detected