浏览代码

:beetle: Fix reverse rotating rear right wheel

DricomDragon 1 年之前
父节点
当前提交
b53ae562a0
共有 1 个文件被更改,包括 4 次插入2 次删除
  1. 4 2
      first3d/component/entity/vehicles/jeep/Jeep.tscn

+ 4 - 2
first3d/component/entity/vehicles/jeep/Jeep.tscn

@@ -77,7 +77,8 @@ transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.173029, 0, 0)
 mesh = SubResource("BoxMesh_f6lpk")
 
 [node name="RearRightWheel" type="VehicleWheel3D" parent="."]
-transform = Transform3D(-1, 0, 0, 0, 1, 0, 0, 0, 1, -0.6, 0.2, -1.019)
+transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.6, 0.2, -1.019)
+use_as_traction = true
 wheel_roll_influence = 0.4
 wheel_radius = 0.3
 wheel_friction_slip = 1.0
@@ -87,7 +88,8 @@ damping_compression = 0.3
 damping_relaxation = 0.5
 
 [node name="OrangeJeep_wheel" parent="RearRightWheel" instance=ExtResource("2_f6y5a")]
+transform = Transform3D(-1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0)
 
 [node name="MeshInstance3D" type="MeshInstance3D" parent="RearRightWheel"]
-transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.183984, 0, 0)
+transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.165207, 0, 0)
 mesh = SubResource("BoxMesh_f6lpk")