From f7c1698602c735a4cf1d5cf50c63711088ae1062 Mon Sep 17 00:00:00 2001 From: Joe Ardent Date: Fri, 20 Jan 2023 23:05:43 -0800 Subject: [PATCH] fix camera placements --- src/camera.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/camera.rs b/src/camera.rs index f511b4a..537c476 100644 --- a/src/camera.rs +++ b/src/camera.rs @@ -53,7 +53,7 @@ fn follow_cyberbike( match *cam_type { CyberCameras::Hero => { let look_at = bike_xform.translation + (bike_xform.forward() * 200.0); - let cam_pos = bike_xform.translation + (bike_xform.back() * 2.7) + (up * 2.4); + let cam_pos = bike_xform.translation + (bike_xform.back() * 1.05) + (up * 1.08); cam_xform.translation = cam_pos; cam_xform.look_at(look_at, up); @@ -65,9 +65,9 @@ fn follow_cyberbike( } CyberCameras::Debug => { let pos = bike_xform.translation - + (bike_xform.forward() * 10.0) - + (bike_xform.left() * 30.0) - + (bike_xform.up() * 7.0); + + (bike_xform.forward() * 5.0) + + (bike_xform.left() * 10.0) + + (bike_xform.up() * 5.0); cam_xform.translation = pos; cam_xform.look_at(bike_xform.translation, up); }