fix camera placements

This commit is contained in:
Joe Ardent 2023-01-20 23:05:43 -08:00
parent 065af95aa0
commit f7c1698602

View file

@ -53,7 +53,7 @@ fn follow_cyberbike(
match *cam_type { match *cam_type {
CyberCameras::Hero => { CyberCameras::Hero => {
let look_at = bike_xform.translation + (bike_xform.forward() * 200.0); 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.translation = cam_pos;
cam_xform.look_at(look_at, up); cam_xform.look_at(look_at, up);
@ -65,9 +65,9 @@ fn follow_cyberbike(
} }
CyberCameras::Debug => { CyberCameras::Debug => {
let pos = bike_xform.translation let pos = bike_xform.translation
+ (bike_xform.forward() * 10.0) + (bike_xform.forward() * 5.0)
+ (bike_xform.left() * 30.0) + (bike_xform.left() * 10.0)
+ (bike_xform.up() * 7.0); + (bike_xform.up() * 5.0);
cam_xform.translation = pos; cam_xform.translation = pos;
cam_xform.look_at(bike_xform.translation, up); cam_xform.look_at(bike_xform.translation, up);
} }