Crazyman32 also has a video showing his Ackermann steering here
is there a way to make it so you can disable exiting the vehicle with the space bar like in vehicle sim and blackhawk rescue mission?
I think you can just disable the jump. Or set it’s humanoid jump power to 0.
How would the player get out if the car by pressing a button. For instance, they press F and they get out
I don’t know, but you can search here or in the developer hub about “UserInputService”.
In your client controller, hook up an event to UserInputService to listen for key presses. Be sure to disconnect it when the controller is stopped! Alternatively, you could check for key presses within the Update loop (but doing it via event is better).
If F is pressed, simply make the character jump. You can do this by setting the Humanoid’s Jump
property to true
.
All I have to say to this incredible tutorial, is wow. Awesome work and I like your other videos, I have learned some stuff from you and from others, but you’re incredible.
Anyway, I’ll try as soon as I have time to do this and see how it can work and learn some more stuff from there. I have to say thanks for all the people that you wrote this tutorial for.
Keep going the hard work. - @Lil_SharkyBoy
Ah, ok. Thanks, i have been looking for a good car tutorial for a while and this is by far the best.
Just a heads-up, I’m not sure if this is mentioned in the video, but in Roblox spheres work better than cylinders for wheels because the sharp edge of a cylinder can cause the wheel to oscillate rapidly from side to side at high speeds.
For people making cars in Roblox: If it is possible to use something like an invisible sphere as a bounding box for your wheel (in some cases it is, in some cases it isn’t), you should do it.
This is a great point!
If anyone else has any other improvements that could be made, please let me know. I might make a follow-up video on how to improve on the car. Spherical wheels would be good & a justifiable change.
Additionally, do you use servos for steering? Still haven’t checked out the video, but on the topic of improvements, servos are pretty bad in general and rigid forces are almost always better. For example, AngularLimitsEnabled on a CylindricalConstraint, and setting both UpperAngle and LowerAngle to the same value.
It sets the attachment orientation via scripting. I’ve found that to be way better. The video shows how to smooth it out so it doesn’t jerk the wheels around when you steer.
That’s actually something I thought you might be doing, but didn’t mention in the post.
It’s effectively the same as using angular limits on a CylindricalConstraint. Works just as well, I definitely approve. For me, a property I can easily reset to 0 is easier to work with than an attachment that I modify.
Do you do it linearly, exponentially, or do you do it fancily and use a P(I)D controller? :3
I think my standard chassis system does it exponentially, but also allows you to specify a point for the wheels to target. See:
It’s something like… every frame it gets x percent closer to reaching its target. Or the error gets x percent smaller. I don’t remember.
In your BoundingBoxTouched
function, you’re parenting the wrong script:
Client.Parent = GetPlayer.Backpack
You should parent the OccupiedClientScript
instead:
OccupiedClientScript.Parent = GetPlayer.Backpack
Does anyone have a tutorial on ackerman steering? i have not found any
This is what I’ve used for mine:
I wrote down my math/code for it a while back:
off topic but can you do a tutorial on how you made your plane that you posted on twitter/youtube
Maybe later in the future. I’m using that for an actual game so it contains some trade secrets
A little off topic, but what makes ackerman steering better than “Same Angle Steering”?