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

Method get_mass

ogsr_engine/xrGame/Geometry.cpp:82–89  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

80}
81
82void CODEGeom::get_mass(dMass& m, const Fvector& ref_point, float density)
83{
84 get_mass(m);
85 dMassAdjust(&m, density * volume());
86 Fvector l;
87 l.sub(local_center(), ref_point);
88 dMassTranslate(&m, l.x, l.y, l.z);
89}
90
91void CODEGeom::get_mass(dMass& m, const Fvector& ref_point)
92{

Callers

nothing calls this directly

Calls 9

dMassAdjustFunction · 0.85
dMassTranslateFunction · 0.85
dMassSetBoxFunction · 0.85
dMassRotateFunction · 0.85
dMassSetSphereFunction · 0.85
dMassSetCylinderFunction · 0.85
subMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected