Skip to content
Snippets Groups Projects
Select Git revision
  • 51d73838c824713a32bdd11b0c85cff3b34f113c
  • main default protected
  • godot4
3 results

Cursor.tscn

Blame
  • Forked from IVMI / Ivmi-Builder
    54 commits behind the upstream repository.
    Cursor.tscn 1.03 KiB
    [gd_scene load_steps=5 format=3 uid="uid://ctnft2vn3y0ir"]
    
    [ext_resource type="Script" path="res://addons/ivmi-builder/techniques/manipulation/Cursor.gd" id="1"]
    
    [sub_resource type="SphereMesh" id="1"]
    radius = 0.25
    height = 0.5
    
    [sub_resource type="StandardMaterial3D" id="2"]
    transparency = 1
    albedo_color = Color(1, 1, 1, 0.6)
    
    [sub_resource type="SphereShape3D" id="3"]
    radius = 0.25
    
    [node name="Cursor" type="Node3D"]
    script = ExtResource("1")
    
    [node name="MeshInstance3D" type="MeshInstance3D" parent="."]
    mesh = SubResource("1")
    material/0 = SubResource("2")
    
    [node name="Area3D" type="Area3D" parent="."]
    
    [node name="CollisionShape3D" type="CollisionShape3D" parent="Area3D"]
    shape = SubResource("3")
    
    [connection signal="area_entered" from="Area3D" to="." method="_on_Area_area_entered"]
    [connection signal="area_exited" from="Area3D" to="." method="_on_Area_area_exited"]
    [connection signal="body_entered" from="Area3D" to="." method="_on_Area_body_entered"]
    [connection signal="body_exited" from="Area3D" to="." method="_on_Area_body_exited"]