From 93d1db607a35e955e3bb4b9a30bfa4117a331ee8 Mon Sep 17 00:00:00 2001 From: Joe Ardent Date: Tue, 8 Feb 2022 22:27:41 -0800 Subject: [PATCH] Tweak the settings. --- src/action.rs | 10 +++++----- src/geometry.rs | 8 ++++---- src/main.rs | 4 ++-- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/src/action.rs b/src/action.rs index f05a345..dca0479 100644 --- a/src/action.rs +++ b/src/action.rs @@ -34,8 +34,8 @@ fn setup_colliders( let pcollide = ColliderBundle { shape: ColliderShape::ball(PLANET_RADIUS).into(), material: ColliderMaterial { - friction: 0.0, - restitution: 0.3, + friction: 0.1, + restitution: 0.05, ..Default::default() } .into(), @@ -48,8 +48,8 @@ fn setup_colliders( let (bike, xform) = bike_query.single(); let mut bbody = RigidBodyBundle::default(); - bbody.damping.angular_damping = 0.8; - bbody.damping.linear_damping = 0.5; + bbody.damping.angular_damping = 0.7; + bbody.damping.linear_damping = 0.4; let isometry = Isometry::from_parts(xform.translation.into(), xform.rotation.into()); bbody.position = isometry.into(); // collider @@ -63,7 +63,7 @@ fn setup_colliders( mass_properties: ColliderMassProps::Density(0.3).into(), material: ColliderMaterial { friction: 0.0, - restitution: 0.3, + restitution: 0.05, ..Default::default() } .into(), diff --git a/src/geometry.rs b/src/geometry.rs index b67a688..4c63f66 100644 --- a/src/geometry.rs +++ b/src/geometry.rs @@ -17,7 +17,7 @@ fn spawn_giant_sphere( mut materials: ResMut>, ) { let mut color = Color::DARK_GRAY; - color.set_a(0.0); + color.set_a(0.8); commands .spawn_bundle(PbrBundle { mesh: meshes.add(Mesh::from(shape::Icosphere { @@ -26,9 +26,9 @@ fn spawn_giant_sphere( })), material: materials.add(StandardMaterial { base_color: color, - metallic: 0.6, - perceptual_roughness: 0.4, - alpha_mode: AlphaMode::Mask(0.5), + metallic: 0.65, + perceptual_roughness: 0.3, + alpha_mode: AlphaMode::Blend, ..Default::default() }), diff --git a/src/main.rs b/src/main.rs index 5b92e07..aef7561 100644 --- a/src/main.rs +++ b/src/main.rs @@ -11,8 +11,8 @@ use cyber_rider::{ }; const MOVEMENT_SETTINGS: MovementSettings = MovementSettings { - sensitivity: 4.0, // default: 1.0 - accel: 15.0, // default: 40.0 + sensitivity: 50.0, // default: 1.0 + accel: 12.0, // default: 40.0 }; fn main() {