Bugbot/Scenes/bug_marker.tscn
Jamie Greunbaum 0ed55dd461 - Spit BugMarker and BugMarkerDummy into two different classes so they can be more easily differentiated.
- Added a collision area to the marker to act as an info box in the future.
2024-05-16 15:02:32 -04:00

35 lines
1.3 KiB
Plaintext

[gd_scene load_steps=6 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"]
[ext_resource type="Material" uid="uid://dkaq0ok73o5d4" path="res://addons/Bugbot/Materials/bug_marker_icon.material" id="3_px2dp"]
[sub_resource type="QuadMesh" id="QuadMesh_dd1nc"]
material = ExtResource("3_px2dp")
custom_aabb = AABB(-0.25, -0.25, -0.25, 0.5, 0.5, 0.5)
size = Vector2(0.25, 0.25)
[sub_resource type="SphereShape3D" id="SphereShape3D_t2p88"]
radius = 0.125398
[node name="BugMarker" type="Node3D"]
script = ExtResource("1_1adfi")
[node name="Arrow" type="MeshInstance3D" parent="."]
cast_shadow = 0
mesh = ExtResource("1_65xos")
[node name="Billboard" type="MeshInstance3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.4, 0)
cast_shadow = 0
mesh = SubResource("QuadMesh_dd1nc")
[node name="Info" type="Area3D" parent="Billboard" groups=["BugMarkerInfo"]]
collision_layer = 4294967295
collision_mask = 4294967295
monitoring = false
[node name="CollisionShape3D" type="CollisionShape3D" parent="Billboard/Info"]
shape = SubResource("SphereShape3D_t2p88")
debug_color = Color(1, 0, 0, 1)