From 3d2d413946fae277aaf9b4ee7f0d526e7f7e22e1 Mon Sep 17 00:00:00 2001 From: Joe Ardent Date: Sat, 18 Feb 2023 20:35:05 -0800 Subject: [PATCH] add 0.1 meters of trail to front wheel. --- src/bike/wheels.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/bike/wheels.rs b/src/bike/wheels.rs index 6a6dd1b..fc06c4b 100644 --- a/src/bike/wheels.rs +++ b/src/bike/wheels.rs @@ -96,7 +96,8 @@ pub fn spawn_tires( .id(); let axel_parent_entity = if let Some(steering) = steering { - let neck_builder = RevoluteJointBuilder::new(Vec3::Y); + let neck_builder = + RevoluteJointBuilder::new(Vec3::Y).local_anchor1(Vec3::new(0.0, 0.0, 0.1)); let neck_joint = MultibodyJoint::new(fork_rb_entity, neck_builder); let neck = commands .spawn(RigidBody::Dynamic)