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

Method ApplyOpenTorque

ogsr_engine/xrGame/CarDoors.cpp:288–295  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

286 dJointSetHingeParam(joint->GetDJoint(), dParamVel, aa_vel * pos_open);
287}
288void CCar::SDoor::ApplyOpenTorque()
289{
290 if (!joint->bActive)
291 return;
292 joint->PSecond_element()->Enable();
293 dJointSetHingeParam(joint->GetDJoint(), dParamFMax, torque);
294 dJointSetHingeParam(joint->GetDJoint(), dParamVel, a_vel * pos_open);
295}
296
297void CCar::SDoor::ApplyCloseTorque()
298{

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