Suspension shaking over and OVER

Hello, I’ve been with this issue for over 3 months.

It’s still shaking a lot.

Red = Constraints parts;
green = wheels;
yellow = weight

Here is the code that I use to calculate stiffness/damping

for i,v in pairs(game.ReplicatedStorage.Models.Vehicles.VehiclesCivilians:GetChildren()) do
	local mass = 0
	for a,b in pairs(v:GetDescendants()) do
		if (b:IsA("BasePart")) then
			if (b.Massless == false) then
				mass += b:GetMass()
			end
		end
	end
	mass = mass * workspace.Gravity;
	print(mass,mass * 0.04)
	for a,b in pairs(v:GetDescendants()) do
		if (b:IsA("SpringConstraint")) then
			b.Stiffness = mass
			b.Damping = mass * 0.04
		end
	end
end
1 Like

Video reproducing bug:

1 Like

Why use a script?
With my suspension vehicles I just go into Test mode and play with the SpringConstraint’s values until the vehicle rides the way I want it to, then set the values after I hit Stop in Test mode.

With suspension vehicles I usually set the wheels’ Density to 2, and the main body Part (your ‘weight’) I set the Density to whatever works best in Test mode.
Any other chassis parts I make Massless = true so they don’t affect the handling of the car.

I just saw your video. It looks like the wheels are rubbing against something in the car. Go to Studio>File>Studio Settings>Physics>Are Contact Points Shown and click the box to turn it on.
You’ll see red spheres show up when 2 Parts are colliding with each other.

1 Like

not really, because I am using physics service and disable the collissions for all parts of the car to all parts of car

1 Like


Here is the result :smile_cat:
What it can be?

1 Like

The steering input left and right?

1 Like

I don’t know what you mean, but yes.

1 Like

Are your wheels MeshParts?
MeshPart wheels aren’t typically round, so they bounce like that.
Try Welding an actual CanCollide Cylinder or Ball Part to your CanCollide off Mesh wheel.
Also, when I put my Hinges on my wheels I put the Attachments right at the center (0,0,0) of the Cylinder or Ball so that the hinge won’t ‘bend’ or wobble under a side load.

1 Like

That is exactly what I’m doing!

This ^

I will try this!

1 Like

@Scottifly
With every possible attachment on the middle, here is the result, not better neither worse.

Do you want a repro file?

1 Like

@Scottifly
So I found an error when the Wheels are Orientated to left or right, it works fine, so it’s clearly a collision issue!
But I don’t know what’s making this false collision on/off

Rotates wheels: Doesn’t flicker
Non rotated wheels: Flickers

@sleitnick could you help me here pls

1 Like


So, only thing that could help me, is turning the wheels shape to ball, hope this helps someone eventually.

2 Likes

Glad you figured out a work around, but were you following his tutorial?

It looks like you have too many cylindrical constraints on each wheel should be one for each, you have two:

image

maybe this is allowing the wheel to move in ways it shouldn’t

1 Like