doing change position of rccar into forward when forward key pressd how to swap into change position through velocity when velocity depends of how long forward key pressd (need to remember velocity value, how long forward key pressd)
and how to propagate velocity into smooth braking (backgroff)
connection with input interface, probably i need timer and ask program to remember time between startin and release of the key \ and it requird to use quadratic velocity dependin\ of the time
use keydown and keyup events, set a boolean “accelerating” to true on keydown and false on keyup, in your animation loop, lerp your current “accelerationValue” towards a maximum value if “accelerating” is true and towards 0 if false, you can use some sort of interpolation such as the default lerp which would work well if using a “gears” lookup table for min and max speeds of each gear
rotation became not smooth then I go into these z positions
I configurd camera with arr of radial with 124 segments
and do change of 1 segment once key pressd