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

Method ApplyTorque

ogsr_engine/xrGame/CarDoors.cpp:280–287  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

278}
279
280void CCar::SDoor::ApplyTorque(float atorque, float aa_vel)
281{
282 if (!joint || !joint->bActive)
283 return;
284 joint->PSecond_element()->Enable();
285 dJointSetHingeParam(joint->GetDJoint(), dParamFMax, atorque);
286 dJointSetHingeParam(joint->GetDJoint(), dParamVel, aa_vel * pos_open);
287}
288void CCar::SDoor::ApplyOpenTorque()
289{
290 if (!joint->bActive)

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