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

Method ApplyCloseTorque

ogsr_engine/xrGame/CarDoors.cpp:297–304  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

295}
296
297void CCar::SDoor::ApplyCloseTorque()
298{
299 if (!joint->bActive)
300 return;
301 joint->PSecond_element()->Enable();
302 dJointSetHingeParam(joint->GetDJoint(), dParamFMax, torque);
303 dJointSetHingeParam(joint->GetDJoint(), dParamVel, -a_vel * pos_open);
304}
305
306void CCar::SDoor::NeutralTorque(float atorque)
307{

Callers

nothing calls this directly

Calls 4

dJointSetHingeParamFunction · 0.85
PSecond_elementMethod · 0.80
GetDJointMethod · 0.80
EnableMethod · 0.45

Tested by

no test coverage detected