biplan.tscn 4.0 KB

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