remove erroneous division by 64 in magnitude calculation for nose collision

this makes ship nose swing back out toward center of track again (noticeably)
This commit is contained in:
jnmartin84
2025-04-13 08:45:53 -04:00
parent 305bc93d35
commit f79ee2392f
+1 -1
View File
@@ -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;
}