Slowly but surely I worked on the calculations today. At least got the game to compile and for a brief moment the code seemed to somewhat work. However this was only when moving in a straight line. Once I set the steering angle the thing blew up. It overshoots some values and then the collision code chokes in the amount of tiles that needs to be checked. It’s just back to the problems I had before with these realistic vehicle dynamic systems. The values only work when everything is exactly right. A lot of protection needs to be build in. But at the same time I have not many other ways to get more advanced physics in the game. As the problem with the drag calculation I came up with showed.

Last modified: June 4, 2023