aboutsummaryrefslogtreecommitdiff
path: root/examples3d/vehicle_controller3.rs
diff options
context:
space:
mode:
authorSébastien Crozet <sebcrozet@dimforge.com>2024-01-27 16:49:53 +0100
committerSébastien Crozet <sebastien@crozet.re>2024-01-27 17:13:08 +0100
commitda92e5c2837b27433286cf0dd9d887fd44dda254 (patch)
tree00428ce290288f5c64e53dee13d88ffdde4df0ca /examples3d/vehicle_controller3.rs
parentaef873f20e7a1ee66b9d4c066884fa794048587b (diff)
downloadrapier-da92e5c2837b27433286cf0dd9d887fd44dda254.tar.gz
rapier-da92e5c2837b27433286cf0dd9d887fd44dda254.tar.bz2
rapier-da92e5c2837b27433286cf0dd9d887fd44dda254.zip
Fix clippy and enable clippy on CI
Diffstat (limited to 'examples3d/vehicle_controller3.rs')
-rw-r--r--examples3d/vehicle_controller3.rs8
1 files changed, 5 insertions, 3 deletions
diff --git a/examples3d/vehicle_controller3.rs b/examples3d/vehicle_controller3.rs
index 1228c82..846d9fe 100644
--- a/examples3d/vehicle_controller3.rs
+++ b/examples3d/vehicle_controller3.rs
@@ -32,9 +32,11 @@ pub fn init_world(testbed: &mut Testbed) {
let collider = ColliderBuilder::cuboid(hw * 2.0, hh, hw).density(100.0);
colliders.insert_with_parent(collider, vehicle_handle, &mut bodies);
- let mut tuning = WheelTuning::default();
- tuning.suspension_stiffness = 100.0;
- tuning.suspension_damping = 10.0;
+ let tuning = WheelTuning {
+ suspension_stiffness: 100.0,
+ suspension_damping: 10.0,
+ ..WheelTuning::default()
+ };
let mut vehicle = DynamicRayCastVehicleController::new(vehicle_handle);
let wheel_positions = [
point![hw * 1.5, -hh, hw],