Infinity Physical Car Moving
About
The simple prototype of the physical behavior of a car.
The player's vehicle receives data for calculating movement from engine (engine power in HP, car Mass, Braking coefficient, surface resistance) and, based on them, performs physical calculations to move on the track.
Information is displayed: the speed of the car and the distance traveled. When crashing into another car, a "Lose" window is displayed. When you press the pause button, the game stops and the corresponding window is displayed.
To ensure the infinity of the road, parts of the route are generated and all objects are moved to the zero position when certain coordinates are reached (the tiles of the route and the maximum distance are filled through a separate component in engine).
For the interest of the movement, other car models were used as bots. For them, the behavior and the spawn system on the track are described.
Controls configured for gamepad and keyboard.