i´ve used the “Vehicle Advanced”-Template and try to let the Vehicles roll downhill without using Throttle-Input. Just rolling, but if the tires stands completly still the Vehicle don´t roll further.
Which things have to changed that the car rolls?
Hi, you might wanna try setting the “Stop Treshold” in the wheeled vehicle movement component to 0 (by default it’s at 10, meaning if the vehicle is slower than 10cm per sec, than it will automatically brake).
[HR][/HR]
But even if you set it to 0 or negative, if the velocity of your vehicle is 0, then it will still automatically brake. To counteract this, when the velocity is 0 and based on slope, you could set a small throttle input, so that the vehicle won’t stop. But keep in mind that this would also mean that when the player wants to stand still on a slope, then he would have to use the handbrake.
First thing I would try is checking whether or not this “Set Throttle Input” is actually executed (so doing a print or setting it to a high value like 1,0), seems to me you’ve already done that.
Since “Set Throttle Input” will override the last value, next I would check all other usages of “Set Throttle Input”. So you would have it set at least one other time, namely for the player input. And the axis events will fire on tick, so it may be that you override the value you’re setting here with 0 somewhere else.