Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Force Feedback bug
07-15-2012, 04:06 PM,
#1
Force Feedback bug
feedback is never reset to zero before the iteration loop.
In fact it is not even intialised before first use.
Is this intended?

Leo

Code:
void CARDYNAMICS::updateAction(btCollisionWorld * collisionWorld, btScalar dt)
{
...
    int repeats = 10;
    btScalar dt_internal = dt / repeats;
    for (int i = 0; i < repeats; ++i)
    {
        Tick(dt_internal, force, torque);

        feedback += 0.5 * (tire[FRONT_LEFT].GetFeedback() + tire[FRONT_RIGHT].GetFeedback());
    }
    feedback /= (repeats + 1);
...
}
Reply


Messages In This Thread
Force Feedback bug - by LBodnar - 07-15-2012, 04:06 PM
[No subject] - by NaN - 07-15-2012, 04:53 PM
[No subject] - by LBodnar - 07-15-2012, 06:28 PM
[No subject] - by NaN - 07-16-2012, 01:54 AM
[No subject] - by LBodnar - 07-16-2012, 05:15 AM
[No subject] - by NaN - 07-16-2012, 05:24 AM
[No subject] - by LBodnar - 07-16-2012, 05:33 AM
[No subject] - by NaN - 07-16-2012, 05:55 AM
[No subject] - by NaN - 07-16-2012, 06:32 AM
[No subject] - by LBodnar - 07-16-2012, 07:20 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)