biplan.tscn 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  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"]
  19. collision_layer = 8
  20. collision_mask = 27
  21. mass = 500.0
  22. contact_monitor = true
  23. max_contacts_reported = 1
  24. angular_damp = 2.0
  25. script = ExtResource("1_vi3fj")
  26. [node name="TheWindWaker_noWheel" parent="." instance=ExtResource("2_mr41j")]
  27. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, -1, 0, 0, 0)
  28. [node name="LeftWheelLink" type="CollisionShape3D" parent="."]
  29. transform = Transform3D(0.705006, -0.709202, 0, 0.709202, 0.705006, 0, 0, 0, 1, 0.639446, -0.0314799, 0.351246)
  30. shape = SubResource("CapsuleShape3D_4fsfr")
  31. [node name="LeftWheel" type="VehicleWheel3D" parent="."]
  32. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.85905, -0.352406, 0.377702)
  33. wheel_radius = 0.245
  34. wheel_rest_length = 0.074
  35. suspension_stiffness = 75.0
  36. suspension_max_force = 12000.0
  37. damping_compression = 0.5
  38. damping_relaxation = 0.7
  39. [node name="TheWindWaker_sideWheel" parent="LeftWheel" instance=ExtResource("3_8s6eu")]
  40. [node name="RightWheelLink" type="CollisionShape3D" parent="."]
  41. transform = Transform3D(0.704634, 0.709571, 0, -0.709571, 0.704634, 0, 0, 0, 1, -0.639, -0.031, 0.351)
  42. shape = SubResource("CapsuleShape3D_4fsfr")
  43. [node name="RightWheel" type="VehicleWheel3D" parent="."]
  44. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.859, -0.352, 0.378)
  45. wheel_radius = 0.245
  46. wheel_rest_length = 0.074
  47. suspension_stiffness = 75.0
  48. suspension_max_force = 12000.0
  49. damping_compression = 0.3
  50. damping_relaxation = 0.5
  51. [node name="TheWindWaker_sideWheel" parent="RightWheel" instance=ExtResource("3_8s6eu")]
  52. transform = Transform3D(-1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0)
  53. [node name="RearWheel" type="VehicleWheel3D" parent="."]
  54. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.00717106, -2.87896)
  55. use_as_steering = true
  56. wheel_radius = 0.19
  57. wheel_rest_length = 0.057
  58. suspension_stiffness = 75.0
  59. suspension_max_force = 12000.0
  60. [node name="TheWindWaker_rearWheel" parent="RearWheel" instance=ExtResource("4_5u4vt")]
  61. [node name="Body" type="CollisionShape3D" parent="."]
  62. transform = Transform3D(1, 0, 0, 0, -4.37114e-08, -1, 0, 1, -4.37114e-08, 0, 0.507829, -0.522253)
  63. shape = SubResource("CapsuleShape3D_d0fig")
  64. [node name="TopWing" type="CollisionShape3D" parent="."]
  65. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.5507, -0.84682)
  66. shape = SubResource("BoxShape3D_6m175")
  67. [node name="BottomWing" type="CollisionShape3D" parent="."]
  68. transform = Transform3D(1, 0, 0, 0, 0.980604, -0.195998, 0, 0.195998, 0.980604, 0, 0.107529, -0.828761)
  69. shape = SubResource("BoxShape3D_6m175")
  70. [node name="DrivingSeat" type="Marker3D" parent="."]
  71. transform = Transform3D(-1, 0, -8.74228e-08, 0, 1, 0, 8.74228e-08, 0, -1, 2.38419e-07, 0.462769, -0.53054)
  72. [node name="RightDoor" type="Marker3D" parent="."]
  73. transform = Transform3D(-0.534795, 0, -0.844982, 0, 1, 0, 0.844982, 0, -0.534795, -1.07596, 0.210416, -0.615756)
  74. [node name="LeftDoor" type="Marker3D" parent="."]
  75. transform = Transform3D(-0.534352, 0, 0.845262, 0, 1, 0, -0.845262, 0, -0.534352, 1.076, 0.21, -0.616)
  76. [node name="VerticalFoil" type="CollisionShape3D" parent="."]
  77. transform = Transform3D(1, 0, 0, 0, 0.823354, -0.567528, 0, 0.567528, 0.823354, -2.38419e-07, 0.989526, -3.4046)
  78. shape = SubResource("BoxShape3D_ws8bj")
  79. [node name="HorizontalFoil" type="CollisionShape3D" parent="."]
  80. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.827551, -3.54696)
  81. shape = SubResource("BoxShape3D_ipw27")