lower friction on the body collider

This commit is contained in:
Joe Ardent 2023-02-22 10:23:47 -08:00
parent 630594ee97
commit c1e20ba3fe
2 changed files with 9 additions and 4 deletions

View File

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

View File

@ -30,7 +30,7 @@ pub(super) fn spawn_cyberbike(
};
let friction = Friction {
coefficient: 0.3,
coefficient: 0.01,
..Default::default()
};