Added an invisible sphere behind the bug marker icon, which makes it much easier to click on markers in the editor.

This commit is contained in:
Jamie Greunbaum 2024-06-06 00:04:24 -04:00
parent 41cc9305cf
commit f73debc9b2

View File

@ -1,4 +1,4 @@
[gd_scene load_steps=12 format=3 uid="uid://crr6cjploetps"]
[gd_scene load_steps=14 format=3 uid="uid://crr6cjploetps"]
[ext_resource type="Script" path="res://addons/Bugbot/Scenes/bug_marker.gd" id="1_1adfi"]
[ext_resource type="ArrayMesh" uid="uid://dtvea38mlpfla" path="res://addons/Bugbot/Meshes/arrow.res" id="1_65xos"]
@ -14,6 +14,17 @@
custom_aabb = AABB(-0.25, -0.25, -0.25, 0.5, 0.5, 0.5)
size = Vector2(0.25, 0.25)
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_gepln"]
blend_mode = 3
cull_mode = 1
no_depth_test = true
shading_mode = 0
[sub_resource type="SphereMesh" id="SphereMesh_yeh7j"]
material = SubResource("StandardMaterial3D_gepln")
radius = 0.125
height = 0.25
[sub_resource type="SphereShape3D" id="SphereShape3D_t2p88"]
radius = 0.125398
@ -35,6 +46,9 @@ cast_shadow = 0
mesh = SubResource("QuadMesh_dd1nc")
surface_material_override/0 = ExtResource("8_lbbxq")
[node name="SelectionArea" type="MeshInstance3D" parent="Billboard"]
mesh = SubResource("SphereMesh_yeh7j")
[node name="Info" type="Area3D" parent="Billboard" groups=["BugMarkerInfo"]]
collision_layer = 4294967295
collision_mask = 0