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

Method setTorque

ogsr_engine/xrGame/PHElement.cpp:1076–1086  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1074 VERIFY(dBodyStateValide(m_body));
1075}
1076void CPHElement::setTorque(const Fvector& torque)
1077{
1078 if (!isActive() || m_flags.test(flFixed))
1079 return;
1080 if (!dBodyIsEnabled(m_body))
1081 dBodyEnable(m_body);
1082 m_shell->EnableObject(0);
1083 dBodySetTorque(m_body, torque.x, torque.y, torque.z);
1084 BodyCutForce(m_body, m_l_limit, m_w_limit);
1085 VERIFY(dBodyStateValide(m_body));
1086}
1087
1088void CPHElement::applyForce(const Fvector& dir, float val) // aux
1089{

Callers

nothing calls this directly

Calls 7

dBodyIsEnabledFunction · 0.85
dBodyEnableFunction · 0.85
dBodySetTorqueFunction · 0.85
BodyCutForceFunction · 0.85
dBodyStateValideFunction · 0.85
testMethod · 0.45
EnableObjectMethod · 0.45

Tested by

no test coverage detected