From 80d258231600659d0b1b7007322502d2edf1c76f Mon Sep 17 00:00:00 2001 From: Quaternions Date: Thu, 31 Aug 2023 00:55:53 -0700 Subject: [PATCH] this looks nicer --- src/main.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 =