lower friction on the body collider
This commit is contained in:
parent
630594ee97
commit
c1e20ba3fe
2 changed files with 9 additions and 4 deletions
|
@ -17,7 +17,12 @@ use crate::{
|
||||||
};
|
};
|
||||||
|
|
||||||
fn yaw_to_angle(yaw: f32) -> f32 {
|
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 {
|
fn rotate_point(pt: &Vec3, rot: &Quat) -> Vec3 {
|
||||||
|
@ -200,8 +205,8 @@ pub(super) fn tunnel_out(
|
||||||
}
|
}
|
||||||
tunneling.frames -= 1;
|
tunneling.frames -= 1;
|
||||||
force.force = tunneling.dir * settings.gravity * 1.5 * mprops.0.mass;
|
force.force = tunneling.dir * settings.gravity * 1.5 * mprops.0.mass;
|
||||||
//#[cfg(feature = "inspector")]
|
#[cfg(feature = "inspector")]
|
||||||
//dbg!(&tunneling);
|
dbg!(&tunneling);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -30,7 +30,7 @@ pub(super) fn spawn_cyberbike(
|
||||||
};
|
};
|
||||||
|
|
||||||
let friction = Friction {
|
let friction = Friction {
|
||||||
coefficient: 0.3,
|
coefficient: 0.01,
|
||||||
..Default::default()
|
..Default::default()
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue