minor cleanups and tweak

This commit is contained in:
Joe Ardent 2023-02-19 15:26:59 -08:00
parent d78e93b76a
commit b6443e8cbe
3 changed files with 4 additions and 6 deletions

View File

@ -33,13 +33,13 @@ impl Default for WheelConfig {
front_forward: 0.8, front_forward: 0.8,
rear_back: 1.1, rear_back: 1.1,
y: -0.1, y: -0.1,
limits: [-0.7, 0.1], limits: [-0.5, 0.1],
stiffness: 90.0, stiffness: 50.0,
damping: 8.0, damping: 8.0,
radius: 0.3, radius: 0.3,
friction: 1.2, friction: 1.2,
restitution: 0.8, restitution: 0.8,
density: 0.9, density: 0.6,
} }
} }
} }

View File

@ -96,7 +96,7 @@ pub fn spawn_tires(
let axel_parent_entity = if let Some(steering) = steering { let axel_parent_entity = if let Some(steering) = steering {
let neck_builder = let neck_builder =
RevoluteJointBuilder::new(Vec3::Y).local_anchor1(Vec3::new(0.0, 0.0, 0.1)); RevoluteJointBuilder::new(Vec3::Y).local_anchor1(Vec3::new(0.0, 0.0, 0.1)); // this adds another 0.1m of trail
let neck_joint = MultibodyJoint::new(fork_rb_entity, neck_builder); let neck_joint = MultibodyJoint::new(fork_rb_entity, neck_builder);
let neck = commands let neck = commands
.spawn(RigidBody::Dynamic) .spawn(RigidBody::Dynamic)

View File

@ -12,8 +12,6 @@ use crate::bike::CyberBikeBody;
struct UpText; struct UpText;
fn setup_ui(mut commands: Commands, asset_server: Res<AssetServer>) { fn setup_ui(mut commands: Commands, asset_server: Res<AssetServer>) {
//commands.spawn(UiCameraBundle::default());
commands commands
.spawn(TextBundle { .spawn(TextBundle {
style: Style { style: Style {