biplan.tscn 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. [gd_scene load_steps=10 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. [sub_resource type="BoxShape3D" id="BoxShape3D_ws8bj"]
  15. size = Vector3(0.19, 0.70166, 1)
  16. [sub_resource type="BoxShape3D" id="BoxShape3D_ipw27"]
  17. size = Vector3(1.6, 0.118, 0.506224)
  18. [node name="Biplan" type="VehicleBody3D" groups=["vehicle"]]
  19. collision_layer = 8
  20. collision_mask = 27
  21. mass = 500.0
  22. contact_monitor = true
  23. max_contacts_reported = 1
  24. script = ExtResource("1_vi3fj")
  25. [node name="TheWindWaker_noWheel" parent="." instance=ExtResource("2_mr41j")]
  26. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, -1, 0, 0, 0)
  27. [node name="LeftWheelLink" type="CollisionShape3D" parent="."]
  28. transform = Transform3D(0.705006, -0.709202, 0, 0.709202, 0.705006, 0, 0, 0, 1, 0.639446, -0.0314799, 0.351246)
  29. shape = SubResource("CapsuleShape3D_4fsfr")
  30. [node name="LeftWheel" type="VehicleWheel3D" parent="."]
  31. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.85905, -0.352406, 0.377702)
  32. wheel_radius = 0.245
  33. wheel_rest_length = 0.074
  34. suspension_stiffness = 75.0
  35. suspension_max_force = 12000.0
  36. damping_compression = 0.5
  37. damping_relaxation = 0.7
  38. [node name="TheWindWaker_sideWheel" parent="LeftWheel" instance=ExtResource("3_8s6eu")]
  39. [node name="RightWheelLink" type="CollisionShape3D" parent="."]
  40. transform = Transform3D(0.704634, 0.709571, 0, -0.709571, 0.704634, 0, 0, 0, 1, -0.639, -0.031, 0.351)
  41. shape = SubResource("CapsuleShape3D_4fsfr")
  42. [node name="RightWheel" type="VehicleWheel3D" parent="."]
  43. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.859, -0.352, 0.378)
  44. wheel_radius = 0.245
  45. wheel_rest_length = 0.074
  46. suspension_stiffness = 75.0
  47. suspension_max_force = 12000.0
  48. damping_compression = 0.3
  49. damping_relaxation = 0.5
  50. [node name="TheWindWaker_sideWheel" parent="RightWheel" instance=ExtResource("3_8s6eu")]
  51. transform = Transform3D(-1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0)
  52. [node name="RearWheel" type="VehicleWheel3D" parent="."]
  53. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.00717106, -2.87896)
  54. use_as_steering = true
  55. wheel_radius = 0.19
  56. wheel_rest_length = 0.057
  57. suspension_stiffness = 75.0
  58. suspension_max_force = 12000.0
  59. [node name="TheWindWaker_rearWheel" parent="RearWheel" instance=ExtResource("4_5u4vt")]
  60. [node name="Body" type="CollisionShape3D" parent="."]
  61. transform = Transform3D(1, 0, 0, 0, -4.37114e-08, -1, 0, 1, -4.37114e-08, 0, 0.507829, -0.522253)
  62. shape = SubResource("CapsuleShape3D_d0fig")
  63. [node name="TopWing" type="CollisionShape3D" parent="."]
  64. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.5507, -0.84682)
  65. shape = SubResource("BoxShape3D_6m175")
  66. [node name="BottomWing" type="CollisionShape3D" parent="."]
  67. transform = Transform3D(1, 0, 0, 0, 0.980604, -0.195998, 0, 0.195998, 0.980604, 0, 0.107529, -0.828761)
  68. shape = SubResource("BoxShape3D_6m175")
  69. [node name="DrivingSeat" type="Marker3D" parent="." groups=["vehicle:seat"]]
  70. transform = Transform3D(-1, 0, -8.74228e-08, 0, 1, 0, 8.74228e-08, 0, -1, 2.38419e-07, 0.462769, -0.53054)
  71. [node name="FrontRightDoor" type="Marker3D" parent="." groups=["vehicle:door"]]
  72. transform = Transform3D(0.84102, 0, -0.541004, 0, 1, 0, 0.541004, 0, 0.84102, -1.53016, 0.397801, 0.712034)
  73. [node name="VerticalFoil" type="CollisionShape3D" parent="."]
  74. transform = Transform3D(1, 0, 0, 0, 0.823354, -0.567528, 0, 0.567528, 0.823354, -2.38419e-07, 0.989526, -3.4046)
  75. shape = SubResource("BoxShape3D_ws8bj")
  76. [node name="HorizontalFoil" type="CollisionShape3D" parent="."]
  77. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.827551, -3.54696)
  78. shape = SubResource("BoxShape3D_ipw27")