• Vehicle Steering Angle
    7 replies, posted
Got a module working and made some lua stuff for it so i can get the value of buttons from my xbox controller. What i'm seeking now is a way to set a vehicles wheel/steering angle. So that I can make a more realistic driving system with controllers. Also if you know how to do with the acceleration would be amazing. I'm pretty lost at this and have been searching for quite a while now.
Sorry for bumbing, but needed.
Bumping wasn't really needed. It's just that there is probably nobody messing with the gamepad at this moment. It's such an unpopular thing that even wiki has some joystick/pad releated funcs/enums descripted as: "Enumerations used by noone knows what." - [url]http://wiki.garrysmod.com/page/Enums/JOYSTICK[/url]
Yea I guess you're right, though my question was whether you could set the steering axis or not, not just for a controller really.
[url]https://support.steampowered.com/kb_article.php?ref=6292-PQMG-6828[/url] "joy_response_move_vehicle" = "6" client "joy_vehicle_turn_lowend" = "0.7" client "joy_vehicle_turn_lowmap" = "0.4"
Thank you robotboy that helped me quite a lot tbh. Though i'm still having a problem. I wanna change so that acceleration(movement forward) is on the Z axis. Though everytime that I try, it seems to just ignore whatever I do. joy_advaxisz 1 That should be they way to do it, but doesn't seem to work that well.. (I did unbind the keys bound the the Z axis)
Z axis on X360 controller is (Xbox 360 Controller: left (negative) and right (positive) trigger buttons) I assume you want the up/down of analog stick? It's all described in the article I posted.
No I mean the triggers, they're usally designed as a single axis where the left is negative and the right trigger is positive .
Sorry, you need to Log In to post a reply to this thread.