pathfinding rework for now
This commit is contained in:
35
PCs/PathEditTool/path_edit_tool.tscn
Normal file
35
PCs/PathEditTool/path_edit_tool.tscn
Normal file
@@ -0,0 +1,35 @@
|
||||
[gd_scene load_steps=4 format=3 uid="uid://dqt1ggtkpkuhs"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://ckm02cx0ai624" path="res://PCs/PathEditTool/path_edit_tool.gd" id="1_l8cck"]
|
||||
[ext_resource type="PackedScene" uid="uid://ddbbwx0yy16lh" path="res://Scenes/TowerBase/tower_base.tscn" id="2_pjtpe"]
|
||||
[ext_resource type="Texture2D" uid="uid://gh4yvnerf1f5" path="res://Assets/Textures/radial.png" id="3_fs118"]
|
||||
|
||||
[node name="PathEditTool" type="Node3D" node_paths=PackedStringArray("ray", "wall_preview", "progress_bar")]
|
||||
script = ExtResource("1_l8cck")
|
||||
ray = NodePath("RayCast3D")
|
||||
wall_preview = NodePath("WallPreview")
|
||||
progress_bar = NodePath("ProgressBar")
|
||||
|
||||
[node name="RayCast3D" type="RayCast3D" parent="."]
|
||||
target_position = Vector3(0, 0, -20)
|
||||
collision_mask = 25
|
||||
|
||||
[node name="WallPreview" parent="." instance=ExtResource("2_pjtpe")]
|
||||
|
||||
[node name="ProgressBar" type="TextureProgressBar" parent="."]
|
||||
anchors_preset = 8
|
||||
anchor_left = 0.5
|
||||
anchor_top = 0.5
|
||||
anchor_right = 0.5
|
||||
anchor_bottom = 0.5
|
||||
offset_left = -90.0
|
||||
offset_top = -90.0
|
||||
offset_right = 90.0
|
||||
offset_bottom = 90.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
scale = Vector2(0.5, 0.5)
|
||||
pivot_offset = Vector2(90, 90)
|
||||
step = 0.0
|
||||
fill_mode = 4
|
||||
texture_progress = ExtResource("3_fs118")
|
||||
Reference in New Issue
Block a user