From 18825ecedb4c3854de98c5f02358dec76eec79a9 Mon Sep 17 00:00:00 2001 From: Quaternions Date: Tue, 5 Sep 2023 17:45:04 -0700 Subject: [PATCH] move collision plane up 2 units --- src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index a592a6c..e113d0b 100644 --- a/src/main.rs +++ b/src/main.rs @@ -720,8 +720,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<2.0{ + self.camera.pos.y=2.0; self.camera.vel.y=0.0; self.camera.grounded=true; }