Jeep.tscn 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. [gd_scene load_steps=7 format=3 uid="uid://cj5dmtqadl5nf"]
  2. [ext_resource type="Script" path="res://component/entity/vehicles/jeep/jeep.gd" id="1_fjw46"]
  3. [ext_resource type="PackedScene" uid="uid://dlaj4npd144qd" path="res://component/entity/vehicles/jeep/OrangeJeep_noWheel.glb" id="1_qgclq"]
  4. [ext_resource type="PackedScene" uid="uid://cg6eyxgui8y2s" path="res://component/entity/vehicles/jeep/OrangeJeep_wheel.glb" id="2_f6y5a"]
  5. [sub_resource type="BoxShape3D" id="BoxShape3D_1maan"]
  6. size = Vector3(1, 0.769157, 2.98936)
  7. [sub_resource type="BoxShape3D" id="BoxShape3D_skl11"]
  8. size = Vector3(0.28984, 1.56027, 0.993305)
  9. [sub_resource type="BoxMesh" id="BoxMesh_f6lpk"]
  10. size = Vector3(0.3, 0.3, 0.3)
  11. [node name="Jeep" type="VehicleBody3D" groups=["vehicle"]]
  12. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.623038, 0)
  13. collision_layer = 8
  14. collision_mask = 11
  15. mass = 400.0
  16. center_of_mass_mode = 1
  17. center_of_mass = Vector3(0, 0.06, 0)
  18. script = ExtResource("1_fjw46")
  19. max_engine_force = 1842.0
  20. [node name="OrangeJeep_noWheel" parent="." instance=ExtResource("1_qgclq")]
  21. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, -1, 0, 0, 0)
  22. [node name="MainShape" type="CollisionShape3D" parent="."]
  23. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.925237, -0.00412709)
  24. shape = SubResource("BoxShape3D_1maan")
  25. [node name="FrontAxis" type="CollisionShape3D" parent="."]
  26. transform = Transform3D(-4.37114e-08, -1, 0, 1, -4.37114e-08, 0, 0, 0, 1, 0, 0.641172, 1.10312)
  27. shape = SubResource("BoxShape3D_skl11")
  28. [node name="RearAxis" type="CollisionShape3D" parent="."]
  29. transform = Transform3D(-4.37114e-08, -1, 0, 1, -4.37114e-08, 0, 0, 0, 1, 0, 0.641172, -1.08224)
  30. shape = SubResource("BoxShape3D_skl11")
  31. [node name="FrontRightWheel" type="VehicleWheel3D" parent="."]
  32. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.6, 0.332104, 1)
  33. use_as_steering = true
  34. wheel_radius = 0.3
  35. suspension_travel = 0.6
  36. suspension_stiffness = 50.0
  37. damping_compression = 0.3
  38. damping_relaxation = 0.5
  39. [node name="OrangeJeep_wheel" parent="FrontRightWheel" instance=ExtResource("2_f6y5a")]
  40. transform = Transform3D(-1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0)
  41. [node name="MeshInstance3D" type="MeshInstance3D" parent="FrontRightWheel"]
  42. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.165207, 0, 0)
  43. mesh = SubResource("BoxMesh_f6lpk")
  44. [node name="FrontLeftWheel" type="VehicleWheel3D" parent="."]
  45. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.6, 0.332104, 1)
  46. use_as_steering = true
  47. wheel_radius = 0.3
  48. suspension_travel = 0.6
  49. suspension_stiffness = 50.0
  50. damping_compression = 0.3
  51. damping_relaxation = 0.5
  52. [node name="OrangeJeep_wheel" parent="FrontLeftWheel" instance=ExtResource("2_f6y5a")]
  53. [node name="MeshInstance3D" type="MeshInstance3D" parent="FrontLeftWheel"]
  54. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.154773, 0, 0)
  55. mesh = SubResource("BoxMesh_f6lpk")
  56. [node name="RearLeftWheel" type="VehicleWheel3D" parent="."]
  57. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.6, 0.332104, -1.01869)
  58. use_as_traction = true
  59. wheel_radius = 0.3
  60. suspension_travel = 0.6
  61. suspension_stiffness = 50.0
  62. damping_compression = 0.3
  63. damping_relaxation = 0.5
  64. [node name="OrangeJeep_wheel" parent="RearLeftWheel" instance=ExtResource("2_f6y5a")]
  65. [node name="MeshInstance3D" type="MeshInstance3D" parent="RearLeftWheel"]
  66. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.173029, 0, 0)
  67. mesh = SubResource("BoxMesh_f6lpk")
  68. [node name="RearRightWheel" type="VehicleWheel3D" parent="."]
  69. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.6, 0.332104, -1.019)
  70. use_as_traction = true
  71. wheel_radius = 0.3
  72. suspension_travel = 0.6
  73. suspension_stiffness = 50.0
  74. damping_compression = 0.3
  75. damping_relaxation = 0.5
  76. [node name="OrangeJeep_wheel" parent="RearRightWheel" instance=ExtResource("2_f6y5a")]
  77. transform = Transform3D(-1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0)
  78. [node name="MeshInstance3D" type="MeshInstance3D" parent="RearRightWheel"]
  79. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.165207, 0, 0)
  80. mesh = SubResource("BoxMesh_f6lpk")
  81. [node name="RearSeat" type="Node3D" parent="." groups=["seat"]]
  82. unique_name_in_owner = true
  83. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.969, -0.597)