As you can see in the title. I’ve a problem with vehicle steering. Wheels are steering sticky, looks laggy and not steering well like the following video.
https://gyazo.com/fc2273fbf625dff4ab5a0740dc9c8494
I’m using BodyGyro to steer the wheels by following scripts:
while true do
for i, wheel in pairs(self.object.Wheels:GetChildren()) do
if wheel:IsA("BasePart") then
local angularVelocity = self.angularVelocities[wheel]
angularVelocity.AngularVelocity = wheel.CFrame.RightVector * self.seat.MaxSpeed * -self.seat.Throttle
--angularVelocity.MaxTorque = self.seat.MaxSpeed / self.seat.AssemblyLinearVelocity.Magnitude
angularVelocity.MaxTorque = 500
-- Left : -1, Middle : 0, Right : 1
if string.find(wheel.Name, "F") then
local angle = self.seat.CFrame * CFrame.Angles(0, -math.rad(self.seat.Steer * self.steeringAngle), 0)
self.steers[wheel].CFrame = angle
end
end
end
fastWait(1/100)
end
I think it is problem with the structure to use bodygyro. but I don’t know how to do. Please tell me how to fix it.