fix camera placements
This commit is contained in:
parent
065af95aa0
commit
f7c1698602
1 changed files with 4 additions and 4 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue