From c1941205387d107fa13f8b7f59251308ba3ecf01 Mon Sep 17 00:00:00 2001 From: Joe Ardent Date: Fri, 17 Feb 2023 17:30:53 -0800 Subject: [PATCH] fix steering and braking --- src/action/systems.rs | 45 +++++++++++++++++++++---------------------- src/bike/wheels.rs | 1 + 2 files changed, 23 insertions(+), 23 deletions(-) diff --git a/src/action/systems.rs b/src/action/systems.rs index b41ea03..648f824 100644 --- a/src/action/systems.rs +++ b/src/action/systems.rs @@ -2,13 +2,14 @@ use std::f32::consts::PI; #[cfg(feature = "inspector")] use std::time::Instant; -use bevy::prelude::{ - Commands, Entity, Quat, Query, Res, ResMut, Time, Transform, Vec3, With, Without, +use bevy::{ + ecs::entity, + prelude::{Commands, Entity, Quat, Query, Res, ResMut, Time, Transform, Vec3, With, Without}, }; use bevy_rapier3d::{ prelude::{ - CollisionGroups, ExternalForce, Group, MultibodyJoint, QueryFilter, RapierConfiguration, - RapierContext, ReadMassProperties, RevoluteJoint, Velocity, + CollisionGroups, ExternalForce, GenericJoint, Group, MultibodyJoint, QueryFilter, + RapierConfiguration, RapierContext, ReadMassProperties, RevoluteJoint, Velocity, }, rapier::prelude::JointAxis, }; @@ -43,7 +44,6 @@ pub(super) fn falling_cat( mut bike_query: Query<(&Transform, &mut ExternalForce, &mut CatControllerState)>, time: Res