Mutually_Assured_Destruction/buildings/grass_block.tscn
2023-06-11 12:54:09 -04:00

35 lines
1.3 KiB
Plaintext

[gd_scene load_steps=4 format=3 uid="uid://m3lrwoup4i4r"]
[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"]
[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")]
script = ExtResource("1_3ht4p")
_ground_ray = NodePath("Area3D/GroundCheck")
_collision_ray = NodePath("Area3D/AreaCast")
[node name="highlights-grass" parent="." instance=ExtResource("2_m6bs4")]
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)
[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