Jesus, the cyber bike is fucking massive.

This commit is contained in:
Joe Ardent 2022-02-27 16:18:26 -08:00
parent 5b4b526aaf
commit 181110c309

View file

@ -91,13 +91,13 @@ fn setup_bike_collider(bike: Entity, xform: &Transform, commands: &mut Commands)
bbody.position = isometry.into(); bbody.position = isometry.into();
// collider // collider
let shape = ColliderShape::capsule( let shape = ColliderShape::capsule(
Vec3::new(0.0, 0.0, -5.25).into(), Vec3::new(0.0, 0.0, -2.7).into(),
Vec3::new(0.0, 0.0, 5.25).into(), Vec3::new(0.0, 0.0, 2.0).into(),
5.2, 1.0,
); );
let bcollide = ColliderBundle { let bcollide = ColliderBundle {
shape: shape.into(), shape: shape.into(),
mass_properties: ColliderMassProps::Density(0.6).into(), mass_properties: ColliderMassProps::Density(0.04).into(),
material: ColliderMaterial { material: ColliderMaterial {
friction: 0.0, friction: 0.0,
restitution: 0.0, restitution: 0.0,