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

Function E_NL

ogsr_engine/xrGame/Physics.cpp:433–444  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

431 return (kin_energy_start - kin_energy_end);
432}
433float E_NL(dBodyID b1, dBodyID b2, const dReal* norm)
434{
435 VERIFY(b1 || b2);
436
437 if (b1)
438 if (b2)
439 return E_NLD(b1, b2, norm);
440 else
441 return E_NlS(b1, norm, 1);
442 else
443 return E_NlS(b2, norm, -1);
444}
445void ApplyGravityAccel(dBodyID body, const dReal* accel)
446{
447 dMass m;

Callers 1

CollisionCallbackMethod · 0.85

Calls 2

E_NLDFunction · 0.85
E_NlSFunction · 0.85

Tested by

no test coverage detected