Re: Force feedback integration : need help about physics

Christos Dimitrakakis <[email protected]>
Newsgroups gmane.games.torcs.devel
Message-ID <[email protected]>
Annick et Jean-Philippe wrote:
> Hi, all.
> 
> Currently working on force feedback integration in Torcs,
> I am very close to the moment when I'm able to inject some effects
> into my wheel.
> 

Since we already use the Pacejka formula, adding the aligning force is
trivial.  I hope that it works correctly.

I guess I can export a couple of variables in some structure..
How about
struct SteeringFeedback {
	float align; // magnitude of the horizontal force
	float bump; // magnitude of the vertical force
	float bump_frequency; // in case the force updates are too slow
};

Now, there bumps may be a bit tricky.  The simulation's dt is currently
0.002 if I remember correctly.  I think that the control feedback is set
to 0.01, though I could be wrong.  In that case, you wouldn't need a
bump_frequency, just a magnitude for the vertical forces and then how
that is handled would depend on the actual feedback wheel used.

Are there any other forces that you'd feel on the wheel?

I think I'll add the structure in interfaces/car.h and
add it to the tPrivCar structure.

How's that?

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.