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

Function ApplyGravityAccel

ogsr_engine/xrGame/Physics.cpp:445–450  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

443 return E_NlS(b2, norm, -1);
444}
445void ApplyGravityAccel(dBodyID body, const dReal* accel)
446{
447 dMass m;
448 dBodyGetMass(body, &m);
449 dBodyAddForce(body, accel[0] * m.mass, accel[1] * m.mass, accel[2] * m.mass);
450}
451
452const dReal* dJointGetPositionContact(dJointID joint)
453{

Callers

nothing calls this directly

Calls 2

dBodyGetMassFunction · 0.85
dBodyAddForceFunction · 0.85

Tested by

no test coverage detected