init
This commit is contained in:
23
addons/godot-xr-tools/objects/snap_zone.tscn
Normal file
23
addons/godot-xr-tools/objects/snap_zone.tscn
Normal file
@@ -0,0 +1,23 @@
|
||||
[gd_scene load_steps=3 format=3 uid="uid://ce7vysyvondf8"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://cquqe4f1m1sw6" 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"]
|
||||
Reference in New Issue
Block a user