From 9c5024dcd23cf28ad578abad6e8746e5b91a2d81 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miloslav=20=C4=8C=C3=AD=C5=BE?= Date: Sat, 22 Jun 2019 04:04:16 +0200 Subject: [PATCH] COntinue city --- programs/city.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/programs/city.c b/programs/city.c index 71b91c9..4de8e89 100644 --- a/programs/city.c +++ b/programs/city.c @@ -228,8 +228,12 @@ int main() { clock_t frameStartT = clock(); + models[1].transform.rotation.y += models[1].transform.rotation.z; // overturn the car for the rendering + draw(); + models[1].transform.rotation.y -= models[1].transform.rotation.z; // turn the car back for the physics + fps++; SDL_UpdateTexture(textureSDL,NULL,pixels,S3L_RESOLUTION_X * sizeof(uint32_t));