Car using raycasts

How could I go about making a simple car chassis using raycasts and not Roblox engine physics?

No matter what, Roblox’s phyiscs engine will always take place. You can just use raycasting to counteract it by providing the same force backwards to the engine. Then, just simply code freely with your raycasting.

I know Jailbreak use raycasting for their suspension.

I personally have no experience with successful full on raycast physics. They always turn out super glichy and shaky. That’s why I prefer body mover vehicles, like the ones in Jailbreak(the default jeep chassis, but heavily modified)
Here’s one I made a while ago.
You can hold Shift to “Drift” too. Well, drifting in these kinds of chassis is literally turning, but MORE
test_body_mover_boy.rbxm (16.7 KB)

1 Like

That is true, jailbreak uses the classic jeep as their chassis and modify it to improve it by removing deprecated methods and in general make it better.

if you want to ignore roblox’s gravity you got two options

  1. the easy solution: make the gravity of the workspace 0
  2. the not so easy but still easy solution: add a BodyForce (yes the depercqted body mover, this is so much easier to use for this) to the model, then calculate the mass of the model (assembly mass of some root part, or add the masses of every part). finally, every frame set the BodyForce’s force to be the mass times the gravity on the Y axis. this will cancel out the gravity and allow you to have full control over how it moves around

Hm I like this, this would be great for making planes and spaceships which I plan on doing at some point.