normalize rear offset
This commit is contained in:
parent
52f8c91232
commit
6031eeab5c
1 changed files with 1 additions and 1 deletions
|
@ -152,7 +152,7 @@ fn spawn_wheels(
|
||||||
FixedJoint::new(front_hub, body).with_local_anchor_2(*xform.forward() + rake_vec),
|
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);
|
let rear_hub = helper(&mut commands, &mut meshes, &mut materials, rear_pos);
|
||||||
commands.entity(rear_hub).insert(RearHub);
|
commands.entity(rear_hub).insert(RearHub);
|
||||||
commands.spawn((
|
commands.spawn((
|
||||||
|
|
Loading…
Reference in a new issue