diff --git a/src/bike.rs b/src/bike.rs index 25df0d3..d785bf5 100644 --- a/src/bike.rs +++ b/src/bike.rs @@ -76,7 +76,7 @@ fn spawn_cyberbike( let mut xform = Transform::from_translation(Vec3::X * altitude) .with_rotation(Quat::from_axis_angle(Vec3::Z, -89.0f32.to_radians())); - //.with_rotation(Quat::from_axis_angle(Vec3::X, -90.0f32.to_radians())); + //.with_rotation(Quat::from_axis_angle(Vec3::X, 140.0f32.to_radians())); let right = xform.right() * 350.0; xform.translation += right; @@ -253,7 +253,7 @@ fn spawn_tires( }; let tire_spundle = SpatialBundle { - transform: wheel_pos_in_world, + transform: Transform::IDENTITY, ..Default::default() }; @@ -270,7 +270,16 @@ fn spawn_tires( wheels_collision_group, )) .with_children(|wheel| { - wheel.spawn(tire_spundle).insert(pbr_bundle.clone()); + wheel.spawn(tire_spundle).insert(pbr_bundle.clone()).insert( + TransformInterpolation { + start: None, + end: None, + }, + ); + }) + .insert(TransformInterpolation { + start: None, + end: None, }) .insert(CyberWheel); }