diff --git a/src/main.rs b/src/main.rs index 467d7cb..6e3d333 100644 --- a/src/main.rs +++ b/src/main.rs @@ -209,8 +209,8 @@ impl strafe_client::framework::Example for Skybox { let camera = Camera { time: Instant::now(), - pos: glam::Vec3 { x: 5.0, y: 5.0, z: 5.0 }, - vel: glam::Vec3 { x: 0.0, y: 0.0, z: 0.0 }, + pos: glam::Vec3::new(5.0,0.0,5.0), + vel: glam::Vec3::new(0.0,0.0,0.0), gravity: glam::Vec3 { x: 0.0, y: -100.0, z: 0.0 }, screen_size: (config.width, config.height), offset: glam::Vec3::new(0.0,4.5,0.0), @@ -527,7 +527,7 @@ impl strafe_client::framework::Example for Skybox { } if self.camera.grounded&&(self.camera.controls&CONTROL_JUMP)!=0 { self.camera.grounded=false; - self.camera.vel+=glam::Vec3 { x: 0.0, y: 50.0, z: 0.0 }; + self.camera.vel+=glam::Vec3::new(0.0,50.0,0.0); } let mut encoder =