this looks nicer

This commit is contained in:
Quaternions 2023-08-31 00:55:53 -07:00
parent 3019e663d6
commit 80d2582316

View File

@ -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 =