The following warnings occurred: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Warning [2] Undefined array key "lockoutexpiry" - Line: 94 - File: global.php PHP 8.1.31 (Linux)
|
![]() |
Code question for CARDYNAMICS::ApplyWheelForces - Printable Version +- Forums (https://www.vdrift.net/Forum) +-- Forum: Community (https://www.vdrift.net/Forum/forumdisplay.php?fid=3) +--- Forum: Bugs (https://www.vdrift.net/Forum/forumdisplay.php?fid=7) +--- Thread: Code question for CARDYNAMICS::ApplyWheelForces (/showthread.php?tid=1540) |
Code question for CARDYNAMICS::ApplyWheelForces - LBodnar - 07-31-2011 Code: //calculate brake torque What does AngularVelocity / dt * Inertia term represent? Consider half-braked wheel at constant high speed. In such condition brake force should equal friction force. But Velocity / dt * Inertia will be non-zero, increase with speed and depend on iteration time step. Why is it there? - NaN - 07-31-2011 Not the most readable piece: Code: btScalar dw = 0 - wheel[i].GetAngularVelocity(); - LBodnar - 07-31-2011 NaN Wrote: dw / dt should be angular accelaration, so how come dw = - Velocity? - NaN - 07-31-2011 Lock up torque, as torque required to lock a free rotating wheel, reduce its angular velocity to zero. |