1
0
Fork 0
mirror of https://git.coom.tech/drummyfish/small3dlib.git synced 2024-11-23 20:59:58 +01:00

COntinue city

This commit is contained in:
Miloslav Číž 2019-06-22 04:04:16 +02:00
parent b8c97ca36a
commit 9c5024dcd2

View file

@ -228,8 +228,12 @@ int main()
{ {
clock_t frameStartT = clock(); clock_t frameStartT = clock();
models[1].transform.rotation.y += models[1].transform.rotation.z; // overturn the car for the rendering
draw(); draw();
models[1].transform.rotation.y -= models[1].transform.rotation.z; // turn the car back for the physics
fps++; fps++;
SDL_UpdateTexture(textureSDL,NULL,pixels,S3L_RESOLUTION_X * sizeof(uint32_t)); SDL_UpdateTexture(textureSDL,NULL,pixels,S3L_RESOLUTION_X * sizeof(uint32_t));