normalize rear offset

This commit is contained in:
Joe Ardent 2024-07-24 15:12:35 -07:00
parent 52f8c91232
commit 6031eeab5c

View file

@ -152,7 +152,7 @@ fn spawn_wheels(
FixedJoint::new(front_hub, body).with_local_anchor_2(*xform.forward() + rake_vec),
));
let rear_pos = xform.translation + Vec3::new(0.0, -1.0, 0.57);
let rear_pos = xform.translation + Vec3::new(0.0, -1.0, 0.57).normalize();
let rear_hub = helper(&mut commands, &mut meshes, &mut materials, rear_pos);
commands.entity(rear_hub).insert(RearHub);
commands.spawn((