-
What do you want to achieve?
A vehicle that can:
- Climb slopes that are 20 degrees
- Keeps a speed of 21 when climbing slopes (up to 20 degrees)
-
What is the issue?
My current vehicle can’t climb any slopes at all. -
What solutions have you tried so far?
I’ve tried looking around on the dev forum where I found similar topics, but most didn’t have an answer or their answer didn’t work for me. I’ve also tried solving this issue myself by:
- Changing torque to inf
- Changing the friction on the wheels
- Changing the density of the wagon parts
- Changing the massless variable on the wagon parts
- Changing the friction on the ramps
- Combinations of the above
local motor1, motor2 = script.Parent.Parent.Tongue.Hold.HingeConstraint, script.Parent.Parent.Tongue.Hold.HingeConstraint2
local speed = 5
local reverseSpeed = speed / 2
local function update()
local newSpeed = script.Parent.Throttle * if script.Parent.Throttle == 1 then speed elseif script.Parent.Throttle == -1 then reverseSpeed else 0
motor1.AngularVelocity = newSpeed
motor2.AngularVelocity = newSpeed
end
script.Parent:GetPropertyChangedSignal("Throttle"):Connect(update)
Front wheel physical properties:
Wagon wheel physical properties are the same currently.
Video of the issue (all the scripts and properties that were shown above are used in this video)