Hi there! I am making a car chassis, and I changed the gravity on the car so it can go nicely through ramps. So I did it, using a BodyForce
. However, whenever I try to steer, the car just trips over, I also tried using a BodyGyro to align it to surfaces but it does not seem to align it to rocks, etc. Just to let you know, the car is rigged with CylindricalConstraints
and SpringConstraints
, here is a video of the car:
https://streamable.com/6wjsvb
Thank you so much for reading, help is appreciated.
Typically if a car flips when turning the Density of the Parts/Meshes is higher up so the center of gravity (the pivot point where it tries to rotate around) is higher as well. If your wheels have high Friction this can lead to a car flipping over like that. It looks pretty realistic as far as how I’d expect the car to flip in real life.
It doesn’t seem that your BodyGyro | Documentation - Roblox Creator Hub is doing much to keep the car level. Maybe try increasing the MaxTorque a bit more and tune the P and D values to keep it upright, but not completely level all the time.
Try and increase the density in CustomPhysicalProporties!
MaxTorque is infinite on the X, and Z-axis, I don’t want the car to rotate on Y-axis since that wouldn’t let you steer. How would I align the bodygyro properly? I have no idea. Thank you for responding
Tried that, it just makes the car heavy which I don’t want.
It doesn’t look like your BodyGyro is working since if you aligned the Part correctly the gyro would keep it absolutely level all the time.
I did hear in a post recently that BodyGyros with their MaxForces set to inf are causing issues, but if you make the MaxForce just less than inf it works again.
Try making the wheels have a Density that’s very heavy, and make all the other Parts Massless. This will lower the center of gravity of the car.
There’s no BodyGyro
in the car when I was recording the video.
This really isn’t a bug, but this can be fixed by making everything in the car massless, and have one part that isn’t massless that is in the exact center of the car, weld everything to it, then move that part a bit lower from the center of the car. This will give the car a low center of gravity, and make the car harder to flip / allow players to flip their vehicle upright if they tip over.
Yup. That’s how it works, everything in the car is massless, and is in the exact center but a bit down. I still don’t know why it’s happening
You could try moving the part down even more, or try giving the wheels less friction (if they have any).
Wheels have friction and friction weight set to max.
Try lowering that. The wheels might have so much friction that when they steer the car, they are making it roll really hard at high speeds because they have so much grip.
Alright, I will do it. Thank you so much for replying. I really appreciate it. I’ll let you know if it works or not.
Seems like lowering the mass part fixed that. TYSM.