From 6431599c40fc396a608e19c56bcda360c48e961b Mon Sep 17 00:00:00 2001 From: Dominic Szablewski Date: Sun, 24 Sep 2023 14:05:48 +0200 Subject: [PATCH] Fix close to ground physics being frame rate dependent; close #83 --- 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 412c9b5..8126748 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, face->normal); + self->velocity = vec3_add(self->velocity, vec3_mulf(face->normal, 4096.0 * system_tick())); } if (height < 50) {