We are trying to fix the suspension so this does not keep happening but we can’t figure out what the issue is. We do want the suspension to have some bounce but not a lot. Currently this is the set up we have for suspension.
print("function GetMass(model, getAll)
local Mass = 0
if model:IsA(“BasePart”) then
Mass = model:GetMass() * 196.2
else
for _, p in pairs(model:GetChildren()) do
if p:IsA(“BasePart”) then
Mass = Mass + (p:GetMass() * 196.2)
else
if getAll then
local m = GetMass(p, true)
Mass = Mass + m
end
end
end
end
return Mass
end
local MASS = GetMass(DriverSeat, false) + GetMass(Body, true) + GetMass(LFVM, false) + GetMass(LRVM, false) + GetMass(RFVM, false) + GetMass(RRVM, false)
local S1 = MakeConstraint(“SpringConstraint”, “SuspensionSpring”, lFWM, A2_1, A2_5)
S1.FreeLength = (LFWM.Size.Y * Settings.RideHeightMax) + ExtentedBy
S1.Damping = 2 * math.sqrt(Settings.Spring * (MASS / 4) )
S1.Stiffness = Settings.Spring
S1.MaxForce = MASS / 4
local S2 = MakeConstraint(“SpringConstraint”, “SuspensionSpring”, lRWM, A2_2, A2_6)
S2.FreeLength = (LRWM.Size.Y * Settings.RideHeightMax) + ExtentedBy
S2.Damping = 2 * math.sqrt(Settings.Spring * (MASS / 4) )
S2.Stiffness = Settings.Spring
S2.MaxForce = MASS / 4
local S3 = MakeConstraint(“SpringConstraint”, “SuspensionSpring”, rFWM, A2_3, A2_7)
S3.FreeLength = (RFWM.Size.Y * Settings.RideHeightMax) + ExtentedBy
S3.Damping = 2 * math.sqrt(Settings.Spring * (MASS / 4) )
S3.Stiffness = Settings.Spring
S3.MaxForce = MASS / 4
local S4 = MakeConstraint(“SpringConstraint”, “SuspensionSpring”, rRWM, A2_4, A2_8)
S4.FreeLength = (RRWM.Size.Y * Settings.RideHeightMax) + ExtentedBy
S4.Damping = 2 * math.sqrt(Settings.Spring * (MASS / 4) )
S4.Stiffness = Settings.Spring
S4.MaxForce = MASS / 4
Settings.Spring equates to 100K")
This is what happens right now with this current set up
https://i.gyazo.com/8a8668c46401fb278b1298818d832e90.gif