fix: move camera back to origin
This commit is contained in:
parent
5ea8392068
commit
6e2d70d376
@ -41,7 +41,7 @@ fn setup_level(
|
||||
sensitivity: Vec2::new(0.0007, 0.0007),
|
||||
},
|
||||
Camera3d::default(),
|
||||
Transform::from_xyz(0.0, 1.75, 2.0),
|
||||
Transform::from_xyz(0.0, 1.75, 0.0),
|
||||
));
|
||||
|
||||
// spawn the ground plane
|
||||
@ -92,7 +92,7 @@ fn do_shoot_on_left_click(
|
||||
let camera_transform = camera_query.into_inner();
|
||||
|
||||
let bullet_fired_event = BulletFiredEvent {
|
||||
position: camera_transform.translation() + Dir3::NEG_X * 2.0,
|
||||
position: camera_transform.translation(),
|
||||
direction: camera_transform.forward(),
|
||||
speed: 200.0,
|
||||
radius: 0.008,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user