2023-06-11 12:54:09 -04:00
|
|
|
[gd_scene load_steps=4 format=3 uid="uid://m3lrwoup4i4r"]
|
2023-06-10 17:14:55 -04:00
|
|
|
|
|
|
|
[ext_resource type="Script" path="res://buildings/building_block.cs" id="1_3ht4p"]
|
|
|
|
[ext_resource type="PackedScene" uid="uid://cdakee12nn8un" path="res://assets/meshes/highlights_grass.tscn" id="2_m6bs4"]
|
|
|
|
|
2023-06-11 12:54:09 -04:00
|
|
|
[sub_resource type="BoxShape3D" id="BoxShape3D_gr51o"]
|
|
|
|
size = Vector3(1.8, 2, 1.8)
|
|
|
|
|
|
|
|
[node name="grass_block" type="Node3D" node_paths=PackedStringArray("_ground_ray", "_collision_ray")]
|
2023-06-10 17:14:55 -04:00
|
|
|
script = ExtResource("1_3ht4p")
|
2023-06-11 12:54:09 -04:00
|
|
|
_ground_ray = NodePath("Area3D/GroundCheck")
|
|
|
|
_collision_ray = NodePath("Area3D/AreaCast")
|
2023-06-10 17:14:55 -04:00
|
|
|
|
|
|
|
[node name="highlights-grass" parent="." instance=ExtResource("2_m6bs4")]
|
2023-06-11 12:54:09 -04:00
|
|
|
visible = false
|
|
|
|
|
|
|
|
[node name="Area3D" type="Area3D" parent="."]
|
|
|
|
collision_layer = 2
|
|
|
|
collision_mask = 0
|
|
|
|
monitoring = false
|
|
|
|
|
|
|
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="Area3D"]
|
|
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0)
|
|
|
|
shape = SubResource("BoxShape3D_gr51o")
|
|
|
|
|
|
|
|
[node name="GroundCheck" type="RayCast3D" parent="Area3D"]
|
|
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.693845, 0)
|
2023-06-10 17:14:55 -04:00
|
|
|
|
2023-06-11 12:54:09 -04:00
|
|
|
[node name="AreaCast" type="RayCast3D" parent="Area3D"]
|
|
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 2.23187, 0)
|
|
|
|
collision_mask = 2
|
|
|
|
hit_from_inside = true
|
|
|
|
collide_with_areas = true
|
|
|
|
collide_with_bodies = false
|