Jeep.tscn 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. [gd_scene load_steps=6 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, 3.09562)
  7. [sub_resource type="BoxMesh" id="BoxMesh_f6lpk"]
  8. size = Vector3(0.3, 0.3, 0.3)
  9. [node name="Jeep" type="VehicleBody3D" groups=["vehicle"]]
  10. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.623038, 0)
  11. collision_layer = 8
  12. collision_mask = 11
  13. mass = 400.0
  14. script = ExtResource("1_fjw46")
  15. [node name="OrangeJeep_noWheel" parent="." instance=ExtResource("1_qgclq")]
  16. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, -1, 0, 0, 0)
  17. [node name="CollisionShape3D" type="CollisionShape3D" parent="."]
  18. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.925237, 0.00334018)
  19. shape = SubResource("BoxShape3D_1maan")
  20. [node name="FrontRightWheel" type="VehicleWheel3D" parent="."]
  21. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.6, 0.2, 1)
  22. use_as_steering = true
  23. wheel_roll_influence = 0.4
  24. wheel_radius = 0.3
  25. wheel_friction_slip = 1.0
  26. suspension_stiffness = 50.0
  27. [node name="OrangeJeep_wheel" parent="FrontRightWheel" instance=ExtResource("2_f6y5a")]
  28. transform = Transform3D(-1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0)
  29. [node name="MeshInstance3D" type="MeshInstance3D" parent="FrontRightWheel"]
  30. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.165207, 0, 0)
  31. mesh = SubResource("BoxMesh_f6lpk")
  32. [node name="FrontLeftWheel" type="VehicleWheel3D" parent="."]
  33. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.6, 0.2, 1)
  34. use_as_steering = true
  35. wheel_roll_influence = 0.4
  36. wheel_radius = 0.3
  37. wheel_friction_slip = 1.0
  38. suspension_stiffness = 50.0
  39. [node name="OrangeJeep_wheel" parent="FrontLeftWheel" instance=ExtResource("2_f6y5a")]
  40. [node name="MeshInstance3D" type="MeshInstance3D" parent="FrontLeftWheel"]
  41. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.154773, 0, 0)
  42. mesh = SubResource("BoxMesh_f6lpk")
  43. [node name="RearLeftWheel" type="VehicleWheel3D" parent="."]
  44. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.6, 0.2, -1.01869)
  45. use_as_traction = true
  46. wheel_roll_influence = 0.4
  47. wheel_radius = 0.3
  48. wheel_friction_slip = 1.0
  49. suspension_stiffness = 50.0
  50. [node name="OrangeJeep_wheel" parent="RearLeftWheel" instance=ExtResource("2_f6y5a")]
  51. [node name="MeshInstance3D" type="MeshInstance3D" parent="RearLeftWheel"]
  52. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.173029, 0, 0)
  53. mesh = SubResource("BoxMesh_f6lpk")
  54. [node name="RearRightWheel" type="VehicleWheel3D" parent="."]
  55. transform = Transform3D(-1, 0, 0, 0, 1, 0, 0, 0, 1, -0.6, 0.2, -1.019)
  56. wheel_roll_influence = 0.4
  57. wheel_radius = 0.3
  58. wheel_friction_slip = 1.0
  59. suspension_stiffness = 50.0
  60. [node name="OrangeJeep_wheel" parent="RearRightWheel" instance=ExtResource("2_f6y5a")]
  61. [node name="MeshInstance3D" type="MeshInstance3D" parent="RearRightWheel"]
  62. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.183984, 0, 0)
  63. mesh = SubResource("BoxMesh_f6lpk")