Hello, I am trying to make a simple train. I am using Floating Pawn Movement for controling train movement.
Every tick I “Add Movement Input” in actor forward vector with scalar value of 1 and then set acceleration to “Floating Pawn Movement component”. Also adjust actor rotation to spline (rails), but not relevant.
My issue is How to Brake and reverse?
If I set “Acceleration” to negative number it still move forwards, as positive number.
If I set “Acceleration” to 0 - train will no longer accelerate, but keep his current speed and don’t slow down.
If I try in node “Add movement input” input negative scalar value (-1) then train imeaditly change direction with current velocity without any slowdown.
Deceleration parameter in Floating pawn movement doesnt seems to do anything.
How to make any actor using Floating pawn movement to slow down, then stop, and eventualy reverese?