immersive-home/addons/godot-xr-tools/objects/snap_zone.tscn

24 lines
735 B
Plaintext
Raw Normal View History

2023-10-16 20:10:20 +03:00
[gd_scene load_steps=3 format=3 uid="uid://ce7vysyvondf8"]
[ext_resource type="Script" path="res://addons/godot-xr-tools/objects/snap_zone.gd" id="1"]
[sub_resource type="SphereShape3D" id="1"]
resource_local_to_scene = true
radius = 0.1
[node name="SnapZone" type="Area3D"]
collision_layer = 4
collision_mask = 65540
script = ExtResource("1")
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
shape = SubResource("1")
[node name="AudioStreamPlayer3D" type="AudioStreamPlayer3D" parent="."]
unit_size = 3.0
max_db = 1.0
max_distance = 100.0
[connection signal="body_entered" from="." to="." method="_on_snap_zone_body_entered"]
[connection signal="body_exited" from="." to="." method="_on_snap_zone_body_exited"]