Jeep.tscn 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. [gd_scene load_steps=5 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. [node name="Jeep" type="VehicleBody3D" groups=["vehicle"]]
  8. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -1.25362, 0)
  9. collision_layer = 8
  10. collision_mask = 11
  11. mass = 400.0
  12. script = ExtResource("1_fjw46")
  13. [node name="OrangeJeep_noWheel" parent="." instance=ExtResource("1_qgclq")]
  14. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, -1, 0, 0, 0)
  15. [node name="CollisionShape3D" type="CollisionShape3D" parent="."]
  16. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.925237, 0.00334018)
  17. shape = SubResource("BoxShape3D_1maan")
  18. [node name="FrontRightWheel" type="VehicleWheel3D" parent="."]
  19. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.6, 0.2, 1)
  20. use_as_steering = true
  21. wheel_roll_influence = 0.4
  22. wheel_radius = 0.3
  23. suspension_stiffness = 50.0
  24. [node name="OrangeJeep_wheel" parent="FrontRightWheel" instance=ExtResource("2_f6y5a")]
  25. transform = Transform3D(-1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0)
  26. [node name="FrontLeftWheel" type="VehicleWheel3D" parent="."]
  27. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.6, 0.2, 1)
  28. use_as_steering = true
  29. wheel_roll_influence = 0.4
  30. wheel_radius = 0.3
  31. suspension_stiffness = 50.0
  32. [node name="OrangeJeep_wheel" parent="FrontLeftWheel" instance=ExtResource("2_f6y5a")]
  33. [node name="RearLeftWheel" type="VehicleWheel3D" parent="."]
  34. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.6, 0.2, -1.01869)
  35. use_as_traction = true
  36. wheel_roll_influence = 0.4
  37. wheel_radius = 0.3
  38. suspension_stiffness = 50.0
  39. [node name="OrangeJeep_wheel" parent="RearLeftWheel" instance=ExtResource("2_f6y5a")]
  40. [node name="RearRightWheel" type="VehicleWheel3D" parent="."]
  41. transform = Transform3D(-1, 0, 0, 0, 1, 0, 0, 0, 1, -0.6, 0.2, -1.019)
  42. use_as_traction = true
  43. wheel_roll_influence = 0.4
  44. wheel_radius = 0.3
  45. suspension_stiffness = 50.0
  46. [node name="OrangeJeep_wheel" parent="RearRightWheel" instance=ExtResource("2_f6y5a")]