biplan.tscn 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. [gd_scene load_steps=11 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://dhw0ntwvoxk7c" path="res://component/entity/primitives/arrow/arrow.tscn" id="2_xec4p"]
  5. [ext_resource type="PackedScene" uid="uid://bhutb1ntqf2vt" path="res://component/entity/vehicles/biplan/wheels/TheWindWaker_sideWheel.glb" id="3_8s6eu"]
  6. [ext_resource type="PackedScene" uid="uid://lcp33gkhc60y" path="res://component/entity/vehicles/biplan/wheels/TheWindWaker_rearWheel.glb" id="4_5u4vt"]
  7. [sub_resource type="CapsuleShape3D" id="CapsuleShape3D_4fsfr"]
  8. radius = 0.0571188
  9. height = 0.857268
  10. [sub_resource type="CapsuleShape3D" id="CapsuleShape3D_d0fig"]
  11. radius = 0.514
  12. height = 4.27973
  13. [sub_resource type="BoxShape3D" id="BoxShape3D_6m175"]
  14. size = Vector3(7.995, 0.12, 0.5)
  15. [sub_resource type="BoxShape3D" id="BoxShape3D_ws8bj"]
  16. size = Vector3(0.19, 0.70166, 1)
  17. [sub_resource type="BoxShape3D" id="BoxShape3D_ipw27"]
  18. size = Vector3(1.6, 0.118, 0.506224)
  19. [node name="Biplan" type="VehicleBody3D" groups=["vehicle"]]
  20. collision_layer = 8
  21. collision_mask = 27
  22. mass = 500.0
  23. contact_monitor = true
  24. max_contacts_reported = 1
  25. angular_damp = 30.0
  26. script = ExtResource("1_vi3fj")
  27. [node name="ArrowForceThrust" parent="." instance=ExtResource("2_xec4p")]
  28. editor_description = "Debug the thrust force"
  29. [node name="ArrowForceWing" parent="." instance=ExtResource("2_xec4p")]
  30. editor_description = "Debug the thrust force"
  31. visible = false
  32. [node name="ArrowForceLift" parent="." instance=ExtResource("2_xec4p")]
  33. editor_description = "Debug the thrust force"
  34. [node name="ArrowForceFoil" parent="." instance=ExtResource("2_xec4p")]
  35. editor_description = "Debug the thrust force"
  36. [node name="TheWindWaker_noWheel" parent="." instance=ExtResource("2_mr41j")]
  37. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, -1, 0, 0, 0)
  38. [node name="LeftWheelLink" type="CollisionShape3D" parent="."]
  39. transform = Transform3D(0.705006, -0.709202, 0, 0.709202, 0.705006, 0, 0, 0, 1, 0.639446, -0.0314799, 0.351246)
  40. shape = SubResource("CapsuleShape3D_4fsfr")
  41. [node name="LeftWheel" type="VehicleWheel3D" parent="."]
  42. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.85905, -0.352406, 0.377702)
  43. wheel_radius = 0.245
  44. wheel_rest_length = 0.074
  45. wheel_friction_slip = 0.005
  46. suspension_stiffness = 75.0
  47. suspension_max_force = 12000.0
  48. damping_compression = 0.5
  49. damping_relaxation = 0.7
  50. [node name="TheWindWaker_sideWheel" parent="LeftWheel" instance=ExtResource("3_8s6eu")]
  51. [node name="RightWheelLink" type="CollisionShape3D" parent="."]
  52. transform = Transform3D(0.704634, 0.709571, 0, -0.709571, 0.704634, 0, 0, 0, 1, -0.639, -0.031, 0.351)
  53. shape = SubResource("CapsuleShape3D_4fsfr")
  54. [node name="RightWheel" type="VehicleWheel3D" parent="."]
  55. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.859, -0.352, 0.378)
  56. wheel_radius = 0.245
  57. wheel_rest_length = 0.074
  58. wheel_friction_slip = 0.005
  59. suspension_stiffness = 75.0
  60. suspension_max_force = 12000.0
  61. damping_compression = 0.3
  62. damping_relaxation = 0.5
  63. [node name="TheWindWaker_sideWheel" parent="RightWheel" instance=ExtResource("3_8s6eu")]
  64. transform = Transform3D(-1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0)
  65. [node name="RearWheel" type="VehicleWheel3D" parent="."]
  66. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.00717106, -2.87896)
  67. use_as_steering = true
  68. wheel_radius = 0.19
  69. wheel_rest_length = 0.057
  70. wheel_friction_slip = 0.005
  71. suspension_stiffness = 75.0
  72. suspension_max_force = 12000.0
  73. [node name="TheWindWaker_rearWheel" parent="RearWheel" instance=ExtResource("4_5u4vt")]
  74. [node name="Body" type="CollisionShape3D" parent="."]
  75. transform = Transform3D(1, 0, 0, 0, -4.37114e-08, -1, 0, 1, -4.37114e-08, 0, 0.507829, -0.522253)
  76. shape = SubResource("CapsuleShape3D_d0fig")
  77. [node name="TopWing" type="CollisionShape3D" parent="."]
  78. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.5507, -0.84682)
  79. shape = SubResource("BoxShape3D_6m175")
  80. [node name="BottomWing" type="CollisionShape3D" parent="."]
  81. transform = Transform3D(1, 0, 0, 0, 0.980604, -0.195998, 0, 0.195998, 0.980604, 0, 0.107529, -0.828761)
  82. shape = SubResource("BoxShape3D_6m175")
  83. [node name="DrivingSeat" type="Node3D" parent="." groups=["seat"]]
  84. transform = Transform3D(-1, 0, -8.74228e-08, 0, 1, 0, 8.74228e-08, 0, -1, 2.38419e-07, 0.462769, -0.53054)
  85. [node name="VerticalFoil" type="CollisionShape3D" parent="."]
  86. transform = Transform3D(1, 0, 0, 0, 0.823354, -0.567528, 0, 0.567528, 0.823354, -2.38419e-07, 0.989526, -3.4046)
  87. shape = SubResource("BoxShape3D_ws8bj")
  88. [node name="HorizontalFoil" type="CollisionShape3D" parent="."]
  89. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.827551, -3.54696)
  90. shape = SubResource("BoxShape3D_ipw27")