Made romhack camera's collision response less fancy, just zoom in when we have to

This commit is contained in:
MysterD 2022-05-25 19:30:38 -07:00
parent 6c2d431e65
commit 5e4c47a3c4
1 changed files with 1 additions and 8 deletions

View File

@ -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;