فهرست منبع

:wrench: Make the jeep a little more bouncy

DricomDragon 1 سال پیش
والد
کامیت
8aa92b8da0
2فایلهای تغییر یافته به همراه13 افزوده شده و 1 حذف شده
  1. 12 0
      first3d/component/entity/vehicles/jeep/Jeep.tscn
  2. 1 1
      first3d/run/levels/infinite_level.tscn

+ 12 - 0
first3d/component/entity/vehicles/jeep/Jeep.tscn

@@ -30,7 +30,10 @@ use_as_steering = true
 wheel_roll_influence = 0.4
 wheel_radius = 0.3
 wheel_friction_slip = 1.0
+suspension_travel = 0.6
 suspension_stiffness = 50.0
+damping_compression = 0.3
+damping_relaxation = 0.5
 
 [node name="OrangeJeep_wheel" parent="FrontRightWheel" instance=ExtResource("2_f6y5a")]
 transform = Transform3D(-1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0)
@@ -45,7 +48,10 @@ use_as_steering = true
 wheel_roll_influence = 0.4
 wheel_radius = 0.3
 wheel_friction_slip = 1.0
+suspension_travel = 0.6
 suspension_stiffness = 50.0
+damping_compression = 0.3
+damping_relaxation = 0.5
 
 [node name="OrangeJeep_wheel" parent="FrontLeftWheel" instance=ExtResource("2_f6y5a")]
 
@@ -59,7 +65,10 @@ use_as_traction = true
 wheel_roll_influence = 0.4
 wheel_radius = 0.3
 wheel_friction_slip = 1.0
+suspension_travel = 0.6
 suspension_stiffness = 50.0
+damping_compression = 0.3
+damping_relaxation = 0.5
 
 [node name="OrangeJeep_wheel" parent="RearLeftWheel" instance=ExtResource("2_f6y5a")]
 
@@ -72,7 +81,10 @@ transform = Transform3D(-1, 0, 0, 0, 1, 0, 0, 0, 1, -0.6, 0.2, -1.019)
 wheel_roll_influence = 0.4
 wheel_radius = 0.3
 wheel_friction_slip = 1.0
+suspension_travel = 0.6
 suspension_stiffness = 50.0
+damping_compression = 0.3
+damping_relaxation = 0.5
 
 [node name="OrangeJeep_wheel" parent="RearRightWheel" instance=ExtResource("2_f6y5a")]
 

+ 1 - 1
first3d/run/levels/infinite_level.tscn

@@ -73,7 +73,7 @@ transform = Transform3D(0.477312, 0.527326, -0.702923, -0.741391, 0.671074, 0, 0
 transform = Transform3D(-0.589079, -0.650805, -0.478999, -0.741391, 0.671074, 1.34747e-08, 0.321443, 0.355125, -0.877816, -10.5959, 3.94108, -17.5095)
 
 [node name="Jeep1" parent="." instance=ExtResource("6_nnvc5")]
-transform = Transform3D(1, 0, 0, 0, 0.956386, -0.292105, 0, 0.292105, 0.956386, -16.454, 1.16515, -7.30216)
+transform = Transform3D(-0.0560131, 0.291646, 0.954885, 0, 0.956386, -0.292105, -0.99843, -0.0163617, -0.0535702, -16.454, 0.747562, 8.03092)
 
 [node name="Jeep2" parent="." instance=ExtResource("6_nnvc5")]
 transform = Transform3D(1, 0, 0, 0, 0.956386, -0.292105, 0, 0.292105, 0.956386, -13.4204, 0.313514, -7.30216)