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

Method CreateBody

ogsr_engine/xrGame/PHCapture.cpp:15–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13///////////////////////////////////////////////////////////////////////////////////
14
15void CPHCapture::CreateBody()
16{
17 m_body = dBodyCreate(0);
18 m_island.AddBody(m_body);
19 dMass m;
20 dMassSetSphere(&m, 1.f, 1000000.f);
21 dMassAdjust(&m, 100000.f);
22 dBodySetMass(m_body, &m);
23 dBodySetGravityMode(m_body, 0);
24}
25
26CPHCapture::~CPHCapture() { Deactivate(); }
27void CPHCapture::PhDataUpdate(dReal /**step/**/)

Callers

nothing calls this directly

Calls 6

dBodyCreateFunction · 0.85
dMassSetSphereFunction · 0.85
dMassAdjustFunction · 0.85
dBodySetMassFunction · 0.85
dBodySetGravityModeFunction · 0.85
AddBodyMethod · 0.80

Tested by

no test coverage detected