biplan.tscn 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. [gd_scene load_steps=8 format=3 uid="uid://ceqqr0vn633o4"]
  2. [ext_resource type="Script" path="res://component/entity/vehicles/biplan/biplan.gd" id="1_vi3fj"]
  3. [ext_resource type="PackedScene" uid="uid://bcysn7mbjre1r" path="res://component/entity/vehicles/biplan/TheWindWaker_noWheel.glb" id="2_mr41j"]
  4. [ext_resource type="PackedScene" uid="uid://bhutb1ntqf2vt" path="res://component/entity/vehicles/biplan/wheels/TheWindWaker_sideWheel.glb" id="3_8s6eu"]
  5. [ext_resource type="PackedScene" uid="uid://lcp33gkhc60y" path="res://component/entity/vehicles/biplan/wheels/TheWindWaker_rearWheel.glb" id="4_5u4vt"]
  6. [sub_resource type="CapsuleShape3D" id="CapsuleShape3D_4fsfr"]
  7. radius = 0.0571188
  8. height = 0.857268
  9. [sub_resource type="CapsuleShape3D" id="CapsuleShape3D_d0fig"]
  10. radius = 0.514
  11. height = 4.27973
  12. [sub_resource type="BoxShape3D" id="BoxShape3D_6m175"]
  13. size = Vector3(7.995, 0.12, 0.5)
  14. [node name="Biplan" type="VehicleBody3D" groups=["vehicle"]]
  15. collision_layer = 8
  16. collision_mask = 27
  17. mass = 500.0
  18. script = ExtResource("1_vi3fj")
  19. [node name="TheWindWaker_noWheel" parent="." instance=ExtResource("2_mr41j")]
  20. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, -1, 0, 0, 0)
  21. [node name="LeftWheelLink" type="CollisionShape3D" parent="."]
  22. transform = Transform3D(0.705006, -0.709202, 0, 0.709202, 0.705006, 0, 0, 0, 1, 0.639446, -0.0314799, 0.351246)
  23. shape = SubResource("CapsuleShape3D_4fsfr")
  24. [node name="LeftWheel" type="VehicleWheel3D" parent="."]
  25. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.85905, -0.352406, 0.377702)
  26. wheel_radius = 0.245
  27. wheel_rest_length = 0.074
  28. suspension_stiffness = 75.0
  29. suspension_max_force = 12000.0
  30. damping_compression = 0.5
  31. damping_relaxation = 0.7
  32. [node name="TheWindWaker_sideWheel" parent="LeftWheel" instance=ExtResource("3_8s6eu")]
  33. [node name="RightWheelLink" type="CollisionShape3D" parent="."]
  34. transform = Transform3D(0.704634, 0.709571, 0, -0.709571, 0.704634, 0, 0, 0, 1, -0.639, -0.031, 0.351)
  35. shape = SubResource("CapsuleShape3D_4fsfr")
  36. [node name="RightWheel" type="VehicleWheel3D" parent="."]
  37. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.859, -0.352, 0.378)
  38. wheel_radius = 0.245
  39. wheel_rest_length = 0.074
  40. suspension_stiffness = 75.0
  41. suspension_max_force = 12000.0
  42. damping_compression = 0.3
  43. damping_relaxation = 0.5
  44. [node name="TheWindWaker_sideWheel" parent="RightWheel" instance=ExtResource("3_8s6eu")]
  45. transform = Transform3D(-1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0)
  46. [node name="RearWheel" type="VehicleWheel3D" parent="."]
  47. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.00717106, -2.87896)
  48. use_as_steering = true
  49. wheel_radius = 0.19
  50. wheel_rest_length = 0.057
  51. suspension_stiffness = 75.0
  52. suspension_max_force = 12000.0
  53. [node name="TheWindWaker_rearWheel" parent="RearWheel" instance=ExtResource("4_5u4vt")]
  54. [node name="Body" type="CollisionShape3D" parent="."]
  55. transform = Transform3D(1, 0, 0, 0, -4.37114e-08, -1, 0, 1, -4.37114e-08, 0, 0.507829, -0.522253)
  56. shape = SubResource("CapsuleShape3D_d0fig")
  57. [node name="BottomWing" type="CollisionShape3D" parent="."]
  58. transform = Transform3D(1, 0, 0, 0, 0.980604, -0.195998, 0, 0.195998, 0.980604, 0, 0.107529, -0.828761)
  59. shape = SubResource("BoxShape3D_6m175")
  60. [node name="DrivingSeat" type="Node3D" parent="." groups=["seat"]]
  61. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 2.38419e-07, 0.849324, -0.53054)