Having done a quick search, it seems like most drivable vehicle code is outdated or no longer available, so I'm asking if anyone has any ideas for such movement behavior?
A normal actor, when having it's forward velocity affected by Thrust() or A_ChangeVelocity(), reaches top speed very quickly. A vehicle, by contrast, should slowly accelerate until hitting maximum velocity. The issue here is that the maximum velocity is directly based on the thrust velocity added each tick when accelerating.
Desired behavior:
acceleration = 0.5
maximum velocity (top speed) = 20
So when 0.05 is added to the actor's forward velocity each tick when accelerating, it takes ~40 ticks to rach maximum velocity (things like friction notwithstanding).
Is there a way to have this more gradual acceleration while retaining a relatively high maxmimum velocity?