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

Method SetMas

ogsr_engine/xrGame/PHSimpleCharacter.cpp:1078–1088  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1076}
1077
1078void CPHSimpleCharacter::SetMas(dReal mass)
1079{
1080 m_mass = mass;
1081 if (!b_exist)
1082 return;
1083 dMass m;
1084 // dMassSetBox(&m,1,1000000.f,1000000.f,1000000.f);
1085 dMassSetSphere(&m, 1, 1000000.f / 2.f);
1086 dMassAdjust(&m, mass);
1087 dBodySetMass(m_body, &m);
1088}
1089#ifdef DEBUG
1090void CPHSimpleCharacter::OnRender()
1091{

Callers 2

SetMassMethod · 0.80

Calls 3

dMassSetSphereFunction · 0.85
dMassAdjustFunction · 0.85
dBodySetMassFunction · 0.85

Tested by

no test coverage detected