For a while… I was working on a chassis similar to jailbreak’s chassis (And I am still working on it to this day), So today… I started working on a wheel system for the chassis. But… when my suspension height is more than 0… this happens:
Can someone please tell me how I can keep this from happening?
Yeah, i set to 0, and i can see that your block is not doing a collision, and something like floating in the ground, that’s what im telling you, to remove that issue you must set the CanCollide of the Wheel to true. Going to mention that you are not saying what is your issue here.
I am not aware of how Jailbreaks chassis system works, but I assume you are attempting to rotate the wheel suspensionHeight studs above the Thruster? In which case does this solve your problem?
local suspensionHeight = 2
local weld = script.Parent.Thruster.WheelWeld
game:GetService("RunService").Heartbeat:Connect(function(dt)
local velocity = math.floor(script.Parent.Thruster.Velocity:Dot(script.Parent.Thruster.CFrame.RightVector) * dt + 0.5)
weld.C0 = weld.C0 * CFrame.Angles(math.rad(60)*dt, 0, 0) + Vector3.new(0, suspensionHeight-weld.C0.Y, 0)
end)
You’re offsetting it by suspensionHeight on the Y axis every frame, you should store the original C0 in a variable, Also in your case, rotation should be applied before offsetting like this