Animated Driver patch

Andrew Sumner <[email protected]> Fri, 12 Sep 2008 13:22:03 +1000
Newsgroups gmane.games.torcs.devel
Message-ID <817522051E65D511A2740001028074C404209E88@EX1>
This is a simplistic, yet effective, method of adding an "animated driver"
to TORCS.  As you
change the car's steering, the visible "driver" actually turns the steering
wheel and can lean
into the turn.

There were two ways of implementing this.  One was to have TORCS adjust the
vertices of
the driver & steering wheel models - the other is to define a series of
separate driver/wheel
models that TORCS chooses between according to the steer values.  The former
would look
smoother, but its complexity is way beyond my ability to develop - in fact I
don't really know
that its possible.  Therefore my patch implements the multi-model approach.

The patch can be downloaded from:-

http://locus.webng.com/files/driverpatch.zip

A new section has been added to the car XML to define the models & the
steering trigger
values.  If the section doesn't exist then the new functionality isn't
activated, hence all existing
cars will work unchanged.  To demonstrate the patch, I quickly threw
together an example:-

http://locus.webng.com/files/ac-cobra.zip

The fordgt2.wav file in the above zip will need to be copied to your
data/sounds folder.  The
car itself is in the Historic category - make sure you choose the "AC Cobra
427 (1966)" 
rather than the "AC Cobra 427" that accompanies TORCS.  Some images to
illustrate the
patch/car in action:-

http://locus.webng.com/images/steering1.jpg
http://locus.webng.com/images/steering2.jpg

I hope you all like the patch - for cars with an open cockpit (and I'm
making a bunch of them
at the moment) it really does improve the look & feel of the game.
Suggestions and comments
welcomed :)

cheers
Andrew

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/

_______________________________________________
Torcs-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/torcs-devel