From 503a6fcfe1fe8a63ec832657d32423a14e87e293 Mon Sep 17 00:00:00 2001 From: MysterD Date: Wed, 25 May 2022 19:30:38 -0700 Subject: [PATCH] Made romhack camera's collision response less fancy, just zoom in when we have to --- src/game/camera.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/game/camera.c b/src/game/camera.c index dd187f28..4ce409ec 100644 --- a/src/game/camera.c +++ b/src/game/camera.c @@ -11829,15 +11829,8 @@ void rom_hack_cam_walk(Vec3f pos, Vec3f dir, f32 dist) { pos[0] = hitpos[0]; pos[1] = hitpos[1]; pos[2] = hitpos[2]; - vec3f_mul(dirNorm, 100); + vec3f_mul(dirNorm, 5); vec3f_sub(pos, dirNorm); - - // figure out remaining length - f32 moveDist = vec3f_dist(prevPos, pos); - dist = dist * 0.7 - moveDist; - if (dist > 10 && vec3f_length(dir) > 0 && moveDist > 1) { - rom_hack_cam_walk(pos, dir, dist); - } } static s16 sRomHackOffset = 0;