diff --git a/src/bike.rs b/src/bike.rs index ab39015..018791b 100644 --- a/src/bike.rs +++ b/src/bike.rs @@ -78,7 +78,13 @@ fn spawn_bike( MeshMaterial3d(materials.add(color)), ); builder.spawn(pbr_bundle); - spawn_wheels(builder, meshes, materials, xform, builder.parent_entity()); + spawn_wheels( + builder, + meshes, + materials, + Transform::default(), + builder.parent_entity(), + ); }); //spawn_wheels(commands, meshes, materials, xform, bike); diff --git a/src/physics.rs b/src/physics.rs index d3438e2..88e2d0b 100644 --- a/src/physics.rs +++ b/src/physics.rs @@ -181,6 +181,9 @@ impl Plugin for CyberPhysicsPlugin { .register_type::<CyberLean>() .add_plugins((PhysicsPlugins::default(), PhysicsDebugPlugin::default())) .insert_resource(SubstepCount(12)) + .add_systems(Startup, |mut gravity: ResMut<Gravity>| { + gravity.0 *= 0.01; + }) .add_systems(Update, (apply_lean, calculate_lean)); } }