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

Function dMassAdjust

3rd_party/Src/ode/ode/src/mass.cpp:213–223  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

211
212
213void dMassAdjust (dMass *m, dReal newmass)
214{
215 dAASSERT (m);
216 dReal scale = newmass / m->mass;
217 m->mass = newmass;
218 for (int i=0; i<3; i++) for (int j=0; j<3; j++) m->_I(i,j) *= scale;
219
220# ifndef dNODEBUG
221 checkMass (m);
222# endif
223}
224
225
226void dMassTranslate (dMass *m, dReal x, dReal y, dReal z)

Callers 11

adjustMethod · 0.85
FixBodyFunction · 0.85
create_camera_shellFunction · 0.85
add_MassMethod · 0.85
set_BoxMassMethod · 0.85
CreateMethod · 0.85
get_massMethod · 0.85
CreateMethod · 0.85
SetMasMethod · 0.85
CreateBodyMethod · 0.85

Calls 1

checkMassFunction · 0.85

Tested by

no test coverage detected