Forums
Rotating steering wheel - Printable Version

+- Forums (https://www.vdrift.net/Forum)
+-- Forum: Community (https://www.vdrift.net/Forum/forumdisplay.php?fid=3)
+--- Forum: Feature Requests (https://www.vdrift.net/Forum/forumdisplay.php?fid=6)
+--- Thread: Rotating steering wheel (/showthread.php?tid=1470)



Rotating steering wheel - asasinuxp - 03-24-2011

I added this code
Quote:[steering]
texture = volan.png
mesh = volan.joe
position = -0.38, 0.64, 0.1
rotation = 20, 0, 180 #in degrees
max-angle = 20

in the .car file,but I cannot make steering wheel to rotate.
And maybe someone can make the board needles.


- NaN - 03-24-2011

What vdrift version? I've tested your settings with vdrift trunk and XS.car. It works without any issues.


- asasinuxp - 03-24-2011

Version 3030,I've compiled the last version from trunk and doesn't want to load any car,with this error: ERROR: Couldn't get section "0.71, 0.55, 0.0" from "data/cars/DSN/DSN.car"
This is a screen from 3030,it turns wrong: [Image: K8KwD.png]


- NaN - 03-24-2011

Make sure I've got the latest vdrift-data, update/fix your local configs.


- asasinuxp - 03-24-2011

This is the car: http://www.megaupload.com/?d=YVP4XOU1


- NaN - 03-24-2011

Steering wheel rotation axis is z-axis. Means you need to adjust the mesh accordingly.

[wheel.fl.hinge]
wheel = -0.80, 1.55, -0.70
chassis = 0.71, 0.55, 0.0
...

particle-00 -> particle.00

Fixed DSN: http://www.megaupload.com/?d=74COYOBB


- fabske - 06-17-2011

Great idea! I wanted to post exactly the same question!

But in general: Does the steering wheel move in every car or does it need a special car? Where to enter the code you've posted? Can you please explain?
Will this feature come into vdrift officially?

THX alot!


- NaN - 06-17-2011

You need the latest vdrift/vdrift-data. All cars in trunk have the same default steering wheel atm.

The code goes into the car config file: "*.car":
http://vdrift.svn.sourceforge.net/viewvc/vdrift/vdrift-data/cars/XS/XS.car?revision=848&view=markup

Default steering wheel mesh orientation:
[Image: steer.jpg]