mirror of
https://github.com/phoboslab/wipeout-rewrite
synced 2024-12-25 09:59:02 +01:00
Fix close to ground physics being frame rate dependent: use proper 30fps frame time
This commit is contained in:
parent
6431599c40
commit
6451b70356
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue