Car stutters and shakes while moving

I’ve setup a suspension for my car with spring and cylindrical constraints. When I make the car move, it stutters/shakes back and forth. The client is the network owner.

3D view of constraints:

Cylindrical constraint properties:

Spring constraint properties:

Gif of it happening:
https://i.imgur.com/iHjQU7c.mp4

Do you guys have any suggestions on how to fix this?
Side note: What properties can I adjust to minimize the car violently rolling when it turns. I still want the car to be able to climb on top of things, but I’m not sure how to correctly adjust the spring’s properties to get what I want

Edit: I’ve made a few discoveries:

  • It only shakes when I’m in the vehicle
  • The shaking is only visible on the client

This leads me to believe it may not have to do with the constraints at all, because it’s only visible on the client, and only when I’m in the car? But I don’t know. From the server view of studio, it looks perfect.

2 Likes

maybe you try remove spring of the car by duplicate to know the different of the same car.if the both of the car still shake that mean some thing that make the car so lagg or something that the car have a problem with a system. if the car still have a problem with the system maybe you check the script and attachment.

1 Like

It was due to a faulty camera script-the car wasn’t shaking at all.

3 Likes

The first thing I thought when I saw your post was that you should consider using invisible spheres for your wheels. Your car will actually start to wobble at high speeds if you use cylinder wheels. Just set the cylinders to CanCollide false and weld some invisible spheres to them.

3 Likes

They are invisible spheres. They have a simple cylinder mesh in them for the time being until I can find someone talented to make wheels for me.

2 Likes

Okay, good. Wouldn’t want your wobble to come back on you! :stuck_out_tongue:

2 Likes

Thanks! Do you have any suggestions on how to fix the 10-degree roll when it turns? I want the car to still be able to climb on top of stuff and have a real suspension, but not roll like a monster truck when it turns. I fear that if I make the mass part heavier, the springs will have trouble lifting the car up thus negating the point of having springs anyway.

1 Like

Lower the center of gravity. The top is trying to fly outward more than the bottom, indicating a high center of mass and causing your rolling problem.

My cars have an unrealistically low center of mass, controlled by an invisible, non-collidable part. The actual car body is Massless.

1 Like

I have it setup the same way. I have a part that extends horizontally to the edges of the car called “main” which all of the parts are welded to. It is the only non-mass-less part. How can I lower the center of gravity?

Make your car heavier. The character sitting in the car has mass too.

Is there some kind of weight property for this part that I’m missing?

Yes, use CustomPhysicalProperties. You can up the density on the base, and especially up the density on the wheels. With some tweaking to the suspension, this can make for some pretty nice handling.

Thanks for your help. It’s already looking better!

1 Like

Fun fact: By lowering the center of gravity below the vehicle, with little to no effort, I made a bike.

And it leans into turns by default too! It’s not the best, probably needs a script for balancing if you want it to be less wobbly, but it’s definitely a start.

2 Likes

Well hey, that’s an easy way to mimic a motorbike for sure! I might just try that when I get to it

2 Likes