Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Code question for CARDYNAMICS::ApplyWheelForces
07-31-2011, 09:25 AM,
#2
 
Not the most readable piece:
Code:
btScalar dw = 0 - wheel[i].GetAngularVelocity();
btScalar lockup_torque = wheel[i].GetInertia() * dw / dt; // torque to lock a free rotating wheel
btScalar wheel_brake_torque  = lockup_torque - wheel_drive_torque + tire_friction_torque;
Reply


Messages In This Thread
[No subject] - by NaN - 07-31-2011, 09:25 AM
[No subject] - by LBodnar - 07-31-2011, 09:31 AM
[No subject] - by NaN - 07-31-2011, 09:37 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)