Hey, for the last couple of weeks I’ve been working on a constraint based car chassis based on @Sleitnick’s car rigging tutorials, it’s far from finished but I want to add a feature that I saw in Driving Simulator but don’t know how to recreate it :
Currently my chassis can climb hills but it needs high speed and it is very slow, what I want to do is when the car is on a hill it behaves as if it is on the ground as you can see in the video below.
Here is the function to make the car moves.
local function throttle(throttle)
local torque = seat.Torque
local speed = seat.MaxSpeed * throttle
cylRL.MotorMaxTorque = torque
cylRR.MotorMaxTorque = torque
cylFL.MotorMaxTorque = torque
cylFR.MotorMaxTorque = torque
cylRL.AngularVelocity = speed
cylRR.AngularVelocity = -speed
cylFL.AngularVelocity = speed
cylFR.AngularVelocity = -speed
end
Any help is appreciated, thank you!