billard/scenes/ball.tscn

20 lines
752 B
Plaintext

[gd_scene load_steps=4 format=3 uid="uid://r1vdoioeyb53"]
[ext_resource type="ArrayMesh" uid="uid://bk3hh360blgwq" path="res://assets/ball.res" id="1_7s4qf"]
[ext_resource type="Script" uid="uid://cq2m3ftgtcof5" path="res://scripts/ball.gd" id="1_cxlvu"]
[sub_resource type="SphereShape3D" id="SphereShape3D_7s4qf"]
radius = 0.027
[node name="Ball" type="RigidBody3D"]
script = ExtResource("1_cxlvu")
[node name="Mesh" type="MeshInstance3D" parent="."]
mesh = ExtResource("1_7s4qf")
[node name="CollisionShape" type="CollisionShape3D" parent="."]
shape = SubResource("SphereShape3D_7s4qf")
[connection signal="mouse_entered" from="." to="." method="_on_mouse_entered"]
[connection signal="mouse_exited" from="." to="." method="_on_mouse_exited"]