[FIXED] SpringConstraint doesn't work with custom wheel

I’m currently making my own vehicle system with wheels that are MeshParts but the SpringConstraints doesn’t seem to work as shown here :


As you can see, the vehicle is jumping up and down and i don’t know why

I’ve tried : Changing the Damping, Stiffness and FreeLength of the springs, Changing the mass of the player, the car itself and the wheels and changing the CollisionFidelities.

Also, the SpringConstraints are made through a script :

local springconstraint = Instance.new("SpringConstraint")
	springconstraint.Attachment0 = atspring
	springconstraint.Attachment1 = atwheel
	springconstraint.Parent = model.Wheel
	springconstraint.Damping = 200
	springconstraint.FreeLength = 3
	springconstraint.Stiffness = 100
	springconstraint.Visible = true
1 Like

Does this happen when the vehicle moves?

Yes, it does. I do not know what the solution is, maybe put the MeshPart in a part?

Even in a perfect circle, mesh wheels will have collision problems when rolling at high speeds.
Try using cylinders/spheres as a hitbox for the wheels.

Thanks for helping ! After putting the cylinder and re-scripting the constraints, it doesn’t jump anymore!

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.