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

Method applyForce

ogsr_engine/xrGame/PHShell.cpp:237–246  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

235 (*i)->UnFreeze();
236}
237void CPHShell::applyForce(const Fvector& dir, float val)
238{
239 if (!isActive())
240 return;
241 ELEMENT_I i = elements.begin(), e = elements.end();
242 val /= getMass();
243 for (; e != i; ++i)
244 (*i)->applyForce(dir, val * (*i)->getMass());
245 EnableObject(0);
246};
247void CPHShell::applyForce(float x, float y, float z)
248{
249 Fvector dir;

Callers 5

InitMethod · 0.45
runMethod · 0.45
RevertMethod · 0.45
raiseMethod · 0.45
PullingUpdateMethod · 0.45

Calls 7

fis_zeroFunction · 0.85
beginMethod · 0.45
endMethod · 0.45
getMassMethod · 0.45
setMethod · 0.45
magnitudeMethod · 0.45
mulMethod · 0.45

Tested by

no test coverage detected