diff --git a/src/action/systems.rs b/src/action/systems.rs index f119bf5..09aea8f 100644 --- a/src/action/systems.rs +++ b/src/action/systems.rs @@ -17,7 +17,12 @@ use crate::{ }; fn yaw_to_angle(yaw: f32) -> f32 { - yaw.powi(3) * FRAC_PI_4 + let v = yaw.powi(5) * FRAC_PI_4; + if v.is_normal() { + v + } else { + 0.0 + } } fn rotate_point(pt: &Vec3, rot: &Quat) -> Vec3 { @@ -200,8 +205,8 @@ pub(super) fn tunnel_out( } tunneling.frames -= 1; force.force = tunneling.dir * settings.gravity * 1.5 * mprops.0.mass; - //#[cfg(feature = "inspector")] - //dbg!(&tunneling); + #[cfg(feature = "inspector")] + dbg!(&tunneling); } } diff --git a/src/bike/body.rs b/src/bike/body.rs index d841c14..572ae6f 100644 --- a/src/bike/body.rs +++ b/src/bike/body.rs @@ -30,7 +30,7 @@ pub(super) fn spawn_cyberbike( }; let friction = Friction { - coefficient: 0.3, + coefficient: 0.01, ..Default::default() };