From f79ee2392f475e2900dffcee0e81736e81b8be6e Mon Sep 17 00:00:00 2001 From: jnmartin84 Date: Sun, 13 Apr 2025 08:45:53 -0400 Subject: [PATCH] remove erroneous division by 64 in `magnitude` calculation for nose collision this makes ship nose swing back out toward center of track again (noticeably) --- src/wipeout/ship.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wipeout/ship.c b/src/wipeout/ship.c index cc3a611..6ab107b 100644 --- a/src/wipeout/ship.c +++ b/src/wipeout/ship.c @@ -668,7 +668,7 @@ void ship_resolve_nose_collision(ship_t *self, track_face_t *face, float directi self->velocity = vec3_sub(self->velocity, vec3_mulf(self->velocity, 0.5)); self->velocity = vec3_add(self->velocity, vec3_mulf(face->normal, 4096)); // div by 4096? - float magnitude = ((self->speed * 0.0625) + 400) * M_PI / (4096.0 * 64.0); + float magnitude = ((self->speed * 0.0625) + 400) * M_PI / 4096.0; if (direction > 0) { self->angular_velocity.y += magnitude; }