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));