mirror of
https://github.com/izzy2lost/wipeout-rewrite.git
synced 2026-07-06 00:20:05 -07:00
Fix close to ground physics being frame rate dependent: use proper 30fps frame time
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user