RC_Holder.tscn 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. [gd_scene load_steps=3 format=3 uid="uid://c4j0mypomkaet"]
  2. [ext_resource type="Script" path="res://components/RC_Holder.gd" id="1_k5e4m"]
  3. [sub_resource type="CylinderMesh" id="CylinderMesh_137p2"]
  4. top_radius = 0.02
  5. bottom_radius = 0.3
  6. height = 1.0
  7. radial_segments = 16
  8. rings = 2
  9. [node name="RC_Holder" type="Marker3D"]
  10. script = ExtResource("1_k5e4m")
  11. [node name="RayCastFront" type="RayCast3D" parent="."]
  12. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0.98)
  13. target_position = Vector3(0, 0, 0.25)
  14. collision_mask = 7
  15. collide_with_areas = true
  16. [node name="RayCastDownRamp" type="RayCast3D" parent="."]
  17. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0.98)
  18. target_position = Vector3(0, -0.9, 1.1)
  19. collision_mask = 7
  20. collide_with_areas = true
  21. [node name="RayCastFrontPull" type="RayCast3D" parent="."]
  22. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0.98)
  23. target_position = Vector3(0, 0, 0.25)
  24. collision_mask = 144
  25. hit_from_inside = true
  26. collide_with_areas = true
  27. [node name="RayCastBack" type="RayCast3D" parent="."]
  28. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -0.98)
  29. target_position = Vector3(0, 0, -0.3)
  30. collision_mask = 7
  31. collide_with_areas = true
  32. [node name="RayCastGround" type="RayCast3D" parent="."]
  33. target_position = Vector3(0, -1.1, 0)
  34. collision_mask = 7
  35. [node name="RayCastTop" type="RayCast3D" parent="."]
  36. target_position = Vector3(0, 1.1, 0)
  37. collision_mask = 39
  38. [node name="frontdebug" type="MeshInstance3D" parent="."]
  39. transform = Transform3D(1, 0, 0, 0, -4.37114e-08, -1, 0, 1, -4.37114e-08, 0, 0.021429, 1.10202)
  40. visible = false
  41. mesh = SubResource("CylinderMesh_137p2")