Game Development Community

WheeledVehicle problem, pls help

by Richard Holmes · in Torque Game Engine · 08/18/2008 (7:05 am) · 4 replies

I am using a wheeled vehicle. I set its steering in default.bind.cs. It seems the game doesn't return the WheeledVehicleTire's to the center state, even if $mvYawLeftSpeed and $mvYawRightSpeed are 0.
What can i do about it? I tried everything...

Thanks

#1
08/18/2008 (7:17 am)
That is the way $mvYawLeftSpeed and $mvYawRightSpeed are used.
They tell the program how far to adjust the steering from its current steering position.

When you set them to 0 you are telling the program to adjust them by 0.
They are not used as an absolute position. I.E. 0 = full right .5 = center and 1 = full left.
#2
08/18/2008 (7:37 am)
This resource should help you
#3
08/19/2008 (12:43 am)
Thanks Bill, it makes sense $mvYawLeftSpeed, $mvYawRightSpeed are adjustments to the steer. But is there a variable that gets/sets ,using script, the steering wheels' angle?
#4
08/19/2008 (10:58 am)
Are you referring to a steering wheel input device? You would need to bind the appropriate axis to modify the appropriate mv variable. Last I checked there was a resource for adding wheel input device support, but maybe thats been added now..?