Anyone know a way for me to create a custom car chassis?

Here’s the thing.
I am not too advanced with scripting which is the fun part. My current problem is that I am trying to figure out how to make a custom car chassis system with drifting of course. However, I don’t know where to start.

You could say “use YouTube tutorials” or something but I have bad experience following lengthy tutorials and it’s starting to get a little annoying. No, I will not be using A-Chassis or Tank Chassis. I just want a simple car chassis I can make and configure freely and rig on different cars with minimum issues.

If anyone has a solution, or thinks they have a solution, I suggest putting it down and maybe it could be helpful. :grinning:

Thanks.

5 Likes

Soo, scripting is a easiest part, the hardest thing is to make a constraints and move them soo they will work, you should use springs and hinges, then if you’ll have it done, use car vechicle seat events and properties like throtle and steer to determine direction of moving or turning, with that, drifting is something like when you have pressed shift, remote will send info to change physical propertiess or something to achieve this effect

2 Likes

so where do I start first? rigging the car with constraints and stuff?

And how exactly is it possible to script the vehicle for it’s functionalities?

1 Like

rigging? no it’s more complicated, you have to build constraints to get physical propertiess, hinges and springs ect. Vechicle seat have property signals like throotle and steer, changing them can be connected to function

1 Like

For the scripting part, do I just connect every single thing I build for the rig? Or like what do I do?

1 Like

yea, connect event from vechicle seat with hinges, set them to motor to achieve rotation effect

1 Like

There are some basic car chassis models available in the toolbox that already have rigs and scripts for the wheels and driving. That might be a good starting point to build your vehicles on. Search for car chassis.

Would you mind giving me an example of how it would look like? It’s sorta hard to understand from the explanation.

I am quite skeptical about free models but maybe I try to search for some!

Raycast for bouncy bounce :+1::+1::+1::+1:

Scripting a decent car is a relatively complex issue. There’s not really a great starting point as there are a plethora of concepts you have to understand to make a great final product. To start you would need an understanding of everything from Newton’s laws of motion; to forces like friction or gravity, to concepts like Ackermann steering. Then you need to combine that knowledge with that of the Roblox game engine.

There’s different approaches to many aspects such as the choice between a constraint-based or ray casting approach: Constraints provide a structured approach but will require a bit of fine tuning for realistic behavior. Ray casting offers more flexibility, but with potentially more setup, and requires a lot better understanding of collision detection. Then you have to consider controls for different devices: WASD for desktop players, Thumbstick for console players, then touch dragging and on-screen buttons for mobile players.

tl;dr This isn’t a simple problem, and there isn’t a simple solution.

Here are some resources to learn from:
1hr tutorial by Suphi (5uphi)

Part 1 of a multi-part series by sleitnick, see recommended or search for the other 2-4 parts

I must admit though, there are much better tutorials for video game cars by Unity creators - however they are using C# instead of lua so you can’t just copy their code.