MCPcopy Create free account
hub / github.com/OGSR/OGSR-Engine / dBodySetMass

Function dBodySetMass

3rd_party/Src/ode/ode/src/ode.cpp:428–437  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

426
427
428void dBodySetMass (dBodyID b, const dMass *mass)
429{
430 dAASSERT (b && mass);
431 memcpy (&b->mass,mass,sizeof(dMass));
432 if (dInvertPDMatrix (b->mass.I,b->invI,3)==0) {
433 dDEBUGMSG ("inertia must be positive definite");
434 dRSetIdentity (b->invI);
435 }
436 b->invMass = dRecip(b->mass.mass);
437}
438
439
440void dBodyGetMass (dBodyID b, dMass *mass)

Callers 12

setMassMethod · 0.85
FixBodyFunction · 0.85
buildMethod · 0.85
setInertiaMethod · 0.85
addInertiaMethod · 0.85
ReAdjustMassPositionsMethod · 0.85
ResetMassMethod · 0.85
ReleaseFixedMethod · 0.85
CreateMethod · 0.85
CreateMethod · 0.85
SetMasMethod · 0.85
CreateBodyMethod · 0.85

Calls 2

dInvertPDMatrixFunction · 0.85
dRSetIdentityFunction · 0.85

Tested by

no test coverage detected