move collision plane up 2 units

This commit is contained in:
Quaternions 2023-09-05 17:45:04 -07:00
parent 3f4c3c4710
commit 18825ecedb

View File

@ -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;
}