Files
Billiards/scenes/individual_parts/table/ball_detector.tscn

23 lines
4.8 KiB
Plaintext

[gd_scene load_steps=3 format=3 uid="uid://bvcrjsid0ovw0"]
[ext_resource type="Script" uid="uid://dhlnn74on8qfa" path="res://scenes/individual_parts/table/ball_detector.gd" id="1_xepxh"]
[sub_resource type="ConvexPolygonShape3D" id="ConvexPolygonShape3D_4pdss"]
points = PackedVector3Array(0, -0.028574998, -0.0026290044, -0.010449901, -0.024457691, -0.013073323, 0, -0.026275795, -0.013867697, 0.01044431, -0.024457691, -0.013073323, 0.011238679, -0.026275795, -0.0026290044, 0.01044431, -0.024457691, 0.007820912, 0, -0.026275795, 0.008615281, -0.010449901, -0.024457691, 0.007820912, -0.011244273, -0.026275795, -0.0026290044, -0.019036947, -0.019036943, -0.012223009, -0.01650279, -0.016502786, -0.019126218, -0.009599589, -0.019036943, -0.021660378, 0, -0.020206124, -0.02282956, 0.009593993, -0.019036943, -0.021660378, 0.019031353, -0.019036943, -0.012223009, 0.016497195, -0.016502786, -0.019126218, 0.020200532, -0.020206124, -0.0026290044, 0.019031353, -0.019036943, 0.0069705956, 0.016497195, -0.016502786, 0.013873804, 0.009593993, -0.019036943, 0.016407963, 0, -0.020206124, 0.017577145, -0.009599589, -0.019036943, 0.016407963, -0.01650279, -0.016502786, 0.013873804, -0.019036947, -0.019036943, 0.0069705956, -0.020206127, -0.020206124, -0.0026290044, -0.024457693, -0.0104498975, -0.013073323, -0.026275797, -0.011244269, -0.0026290044, -0.019036947, -0.009599583, -0.021660378, -0.010449901, -0.0104498975, -0.027081132, 0, -0.011244269, -0.028899238, 0.01044431, -0.0104498975, -0.027081132, 0.024452098, -0.0104498975, -0.013073323, 0.026270203, -0.011244269, -0.0026290044, 0.019031353, -0.009599583, -0.021660378, 0.024452098, -0.0104498975, 0.007820912, 0.019031353, -0.009599583, 0.016407963, 0.01044431, -0.0104498975, 0.021828718, 0, -0.011244269, 0.023646824, -0.010449901, -0.0104498975, 0.021828718, -0.024457693, -0.0104498975, 0.007820912, -0.019036947, -0.009599583, 0.016407963, -0.028575, -5.5879354e-06, -0.0026290044, -0.026275797, -5.5879354e-06, -0.013867697, -0.020206127, -5.5879354e-06, -0.02282956, -0.011244273, -5.5879354e-06, -0.028899238, 0, -5.5879354e-06, -0.031198442, 0.011238679, -5.5879354e-06, -0.028899238, 0.028575, -5.5879354e-06, -0.0026290044, 0.026270203, -5.5879354e-06, -0.013867697, 0.020200532, -5.5879354e-06, -0.02282956, 0.026270203, -5.5879354e-06, 0.008615281, 0.020200532, -5.5879354e-06, 0.017577145, 0.011238679, -5.5879354e-06, 0.023646824, -5.5935234e-06, -5.5879354e-06, 0.025951624, -0.011244273, -5.5879354e-06, 0.023646824, -0.026275797, -5.5879354e-06, 0.008615281, -0.020206127, -5.5879354e-06, 0.017577145, -0.024457693, 0.010444315, 0.007820912, -0.026275797, 0.011238689, -0.0026290044, -0.024457693, 0.010444315, -0.013073323, -0.019036947, 0.009594003, -0.021660378, -0.010449901, 0.010444315, -0.027081132, 0, 0.011238689, -0.028899238, 0.01044431, 0.010444315, -0.027081132, 0.019031353, 0.009594003, -0.021660378, 0.026270203, 0.011238689, -0.0026290044, 0.024452098, 0.010444315, 0.007820912, 0.024452098, 0.010444315, -0.013073323, 0.019031353, 0.009594003, 0.016407963, 0.01044431, 0.010444315, 0.021828718, -5.5935234e-06, 0.011238689, 0.023646824, -0.010449901, 0.010444315, 0.021828718, -0.019036947, 0.009594003, 0.016407963, -0.01650279, 0.016497204, 0.013873804, -0.019036947, 0.019031363, 0.0069705956, -0.020206127, 0.020200545, -0.0026290044, -0.019036947, 0.019031363, -0.012223009, -0.01650279, 0.016497204, -0.019126218, -0.009599589, 0.019031363, -0.021660378, -5.5935234e-06, 0.020200545, -0.02282956, 0.009593993, 0.019031363, -0.021660378, 0.016497195, 0.016497204, -0.019126218, 0.019031353, 0.019031363, -0.012223009, 0.020200532, 0.020200545, -0.0026290044, 0.019031353, 0.019031363, 0.0069705956, 0.016497195, 0.016497204, 0.013873804, 0.009593993, 0.019031363, 0.016407963, -5.5935234e-06, 0.020200545, 0.017577145, -0.009599589, 0.019031363, 0.016407963, -0.010449901, 0.02445211, 0.007820912, -0.011244273, 0.026270213, -0.0026290044, -0.010449901, 0.02445211, -0.013073323, -5.5935234e-06, 0.026270213, -0.013867697, 0.01044431, 0.02445211, -0.013073323, 0.011238679, 0.026270213, -0.0026290044, 0.01044431, 0.02445211, 0.007820912, -5.5935234e-06, 0.026270213, 0.008615281, -5.5935234e-06, 0.028569417, -0.0026290044)
[node name="ball_detector" type="Area3D"]
script = ExtResource("1_xepxh")
[node name="shape" type="CollisionShape3D" parent="."]
transform = Transform3D(2, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0, 0)
shape = SubResource("ConvexPolygonShape3D_4pdss")
[node name="minor_body" type="Area3D" parent="."]
[node name="shape" type="CollisionShape3D" parent="minor_body"]
transform = Transform3D(2, 0, 0, 0, 2, 0, 0, 0, 2, 0, -0.0783481, 0)
shape = SubResource("ConvexPolygonShape3D_4pdss")
[connection signal="body_entered" from="." to="." method="major_body_entered"]
[connection signal="body_entered" from="minor_body" to="." method="miner_body_entered"]