From 610f14131889eaa2667fc61b8be293971f79a3d3 Mon Sep 17 00:00:00 2001 From: Joe Ardent Date: Tue, 23 Jul 2024 18:15:51 -0700 Subject: [PATCH] dafuq --- src/bike.rs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/bike.rs b/src/bike.rs index 7b2e649..77c32bd 100644 --- a/src/bike.rs +++ b/src/bike.rs @@ -37,7 +37,7 @@ fn spawn_bike( .with_children(|builder| { let color = Color::srgb(0.7, 0.05, 0.7); let mut rotation = Transform::default(); // Transform::from_rotation(Quat::from_rotation_y(FRAC_PI_2)); - rotation.rotate_y(FRAC_PI_2); + rotation.rotate_x(FRAC_PI_2); let pbr_bundle = PbrBundle { mesh: meshes.add(Capsule3d::new(0.5, 1.45)), transform: rotation, @@ -96,6 +96,14 @@ fn helper( transform: Transform::from_rotation(rot), ..Default::default() }); + parent.spawn(( + CyberWheel, + RigidBody::Dynamic, + collider.clone(), + ColliderDensity(0.05), + CollisionLayers::from_bits(2, 2), + ExternalTorque::ZERO.with_persistence(false), + )); }) .id();