-
What do you want to achieve?
A wagon that you can move around with. -
What is the issue?
There is no way that I know of to make the handling good, its just atrocious no matter what. -
What solutions have you tried so far?
I’ve tried changing values in my script.
Details:
The wagon itself is on 4 wheels that rotate freely via hinge and the wagon is connected to the wagon tongue via ball socket and attached to the wagon tongue are 2 wheels with hinges that are set to motors which I use to move the wagon, but this approach is atrocious for the steering.
(The front gray wheels are temporary)
(I forgot that I was recording audio, sorry)
Wagon Control Script
local motor1, motor2 = script.Parent.Parent.Tongue.Hold.HingeConstraint, script.Parent.Parent.Tongue.Hold.HingeConstraint2
local function updateSpeed()
if script.Parent.Steer == 1 then
motor1.AngularVelocity = script.Parent.Throttle * 5 * 100
motor2.AngularVelocity = script.Parent.Throttle * 5
elseif script.Parent.Steer == -1 then
motor2.AngularVelocity = script.Parent.Throttle * 5 * 100
motor1.AngularVelocity = script.Parent.Throttle * 5
else
motor1.AngularVelocity = script.Parent.Throttle * 5
motor2.AngularVelocity = script.Parent.Throttle * 5
end
end
script.Parent:GetPropertyChangedSignal("Throttle"):Connect(updateSpeed)
script.Parent:GetPropertyChangedSignal("Steer"):Connect(updateSpeed)