I have game work https://renv0.github.io/control-car/ (left mouse button to control). Сar shakes while driving straight ahead. I think the main problem is in this part of the code:
if(player.angle3 < 0){//left turn
player.angle2 = player.angle2 - 2;
}
if(player.angle3 > 0){//right turn
player.angle2 = player.angle2 + 2;
}
the full code, and description for it, is in the index file, in https://renv0.github.io/control-car/ . Perhaps there are already ready-made solutions for a similar problem. I think someone has done something like this before.