forked from StrafesNET/strafe-client
move collision plane up 2 units
This commit is contained in:
parent
3f4c3c4710
commit
18825ecedb
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user