| 278 | } |
| 279 | |
| 280 | void 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 | } |
| 288 | void CCar::SDoor::ApplyOpenTorque() |
| 289 | { |
| 290 | if (!joint->bActive) |
nothing calls this directly
no test coverage detected