From f5b127d0c03fb6a5df73eb798061002b6333be85 Mon Sep 17 00:00:00 2001 From: Quaternions Date: Thu, 7 Sep 2023 16:28:38 -0700 Subject: [PATCH] tweak heights --- src/main.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main.rs b/src/main.rs index f80207f..06905ce 100644 --- a/src/main.rs +++ b/src/main.rs @@ -340,7 +340,7 @@ impl strafe_client::framework::Example for Skybox { }); modeldatas.push(ModelData { transform: glam::Mat4::from_translation( - glam::Vec3::new(cf.position.x,cf.position.y-13f32,cf.position.z) + glam::Vec3::new(cf.position.x,cf.position.y-12f32,cf.position.z) ) * glam::Mat4::from_mat3( glam::Mat3::from_cols( @@ -763,8 +763,8 @@ impl strafe_client::framework::Example for Skybox { } self.camera.vel+=self.camera.gravity*dt; self.camera.pos+=self.camera.vel*dt; - if self.camera.pos.y<0.0{ - self.camera.pos.y=0.0; + if self.camera.pos.y<3.0{ + self.camera.pos.y=3.0; self.camera.vel.y=0.0; self.camera.grounded=true; }