From 6451b7035646b991365f5052dbf0c8a01e4c52cf Mon Sep 17 00:00:00 2001 From: Dominic Szablewski Date: Sun, 24 Sep 2023 15:20:04 +0200 Subject: [PATCH] Fix close to ground physics being frame rate dependent: use proper 30fps frame time --- src/wipeout/ship_player.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wipeout/ship_player.c b/src/wipeout/ship_player.c index 8126748..e808ac8 100644 --- a/src/wipeout/ship_player.c +++ b/src/wipeout/ship_player.c @@ -350,7 +350,7 @@ void ship_player_update_race(ship_t *self) { self->velocity = vec3_sub(self->velocity, face->normal); } else if (height < 30) { - self->velocity = vec3_add(self->velocity, vec3_mulf(face->normal, 4096.0 * system_tick())); + self->velocity = vec3_add(self->velocity, vec3_mulf(face->normal, 4096.0 * 30 * system_tick())); } if (height < 50) {