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

Method getMass

ogsr_engine/xrGame/PHShell.cpp:149–159  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

147 (*i)->setMass(M / elements.size());
148}
149float CPHShell::getMass()
150{
151 float m = 0.f;
152
153 ELEMENT_I i;
154
155 for (i = elements.begin(); elements.end() != i; ++i)
156 m += (*i)->getMass();
157
158 return m;
159}
160
161void CPHShell::get_spatial_params() { spatialParsFromDGeom((dGeomID)m_space, spatial.sphere.P, AABB, spatial.sphere.R); }
162

Callers 15

GetMassMethod · 0.45
switchGravityMethod · 0.45
GetMassMethod · 0.45
InitMethod · 0.45
ReleaseMethod · 0.45
RevertMethod · 0.45
PhTuneMethod · 0.45
CreateBrokenMethod · 0.45
applyForceMethod · 0.45
raiseMethod · 0.45
keepMethod · 0.45
InitMethod · 0.45

Calls 2

beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected