pedestals light up

This commit is contained in:
Clevertop 2024-08-10 22:24:26 +10:00
parent 4a564dc3f5
commit 220ca2886f
5 changed files with 44 additions and 5 deletions

View file

@ -4,10 +4,12 @@ class_name Pedestal
@export var placed_command : Node3D
@export var has_command : bool = false
@export var slot : Node3D
@export var mesh :MeshInstance3D
# Called when the node enters the scene tree for the first time.
func _ready():
pass # Replace with function body.

View file

@ -10,10 +10,11 @@ size = Vector3(0.8, 1, 0.8)
[sub_resource type="ConcavePolygonShape3D" id="ConcavePolygonShape3D_8evcs"]
data = PackedVector3Array(-0.4, 0.5, 0.4, 0.4, 0.5, 0.4, -0.4, -0.5, 0.4, 0.4, 0.5, 0.4, 0.4, -0.5, 0.4, -0.4, -0.5, 0.4, 0.4, 0.5, -0.4, -0.4, 0.5, -0.4, 0.4, -0.5, -0.4, -0.4, 0.5, -0.4, -0.4, -0.5, -0.4, 0.4, -0.5, -0.4, 0.4, 0.5, 0.4, 0.4, 0.5, -0.4, 0.4, -0.5, 0.4, 0.4, 0.5, -0.4, 0.4, -0.5, -0.4, 0.4, -0.5, 0.4, -0.4, 0.5, -0.4, -0.4, 0.5, 0.4, -0.4, -0.5, -0.4, -0.4, 0.5, 0.4, -0.4, -0.5, 0.4, -0.4, -0.5, -0.4, 0.4, 0.5, 0.4, -0.4, 0.5, 0.4, 0.4, 0.5, -0.4, -0.4, 0.5, 0.4, -0.4, 0.5, -0.4, 0.4, 0.5, -0.4, -0.4, -0.5, 0.4, 0.4, -0.5, 0.4, -0.4, -0.5, -0.4, 0.4, -0.5, 0.4, 0.4, -0.5, -0.4, -0.4, -0.5, -0.4)
[node name="CommandPedestal" type="StaticBody3D" node_paths=PackedStringArray("slot")]
[node name="CommandPedestal" type="StaticBody3D" node_paths=PackedStringArray("slot", "mesh")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.5, 0)
script = ExtResource("1_02nqv")
slot = NodePath("slot")
mesh = NodePath("MeshInstance3D")
[node name="MeshInstance3D" type="MeshInstance3D" parent="."]
mesh = SubResource("BoxMesh_hrk6g")