diff --git a/src/udp.rs b/src/udp.rs index d05b5c9..3245f48 100644 --- a/src/udp.rs +++ b/src/udp.rs @@ -664,7 +664,7 @@ fn calc_car_wheel_update( angular_velocity *= -1.; } - if target_car.state.is_on_ground { + if target_car.state.is_on_ground || target_car.state.wheels_with_contact.into_iter().any(|b| b) { // determine if the velocity is in the same direction as the car's forward vector let forward = car_transform.rotation.mul_vec3(Vec3::X); let forward_dot = forward.dot(car_vel);