Come collision stuff and stuff aand stuff hahahah
This commit is contained in:
@@ -1,13 +1,34 @@
|
||||
[gd_scene load_steps=3 format=3 uid="uid://m3lrwoup4i4r"]
|
||||
[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"]
|
||||
|
||||
[node name="grass_block" type="Node3D" node_paths=PackedStringArray("_ray")]
|
||||
[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")
|
||||
_ray = NodePath("RayCast3D")
|
||||
_compatible_tile = 1
|
||||
_ground_ray = NodePath("Area3D/GroundCheck")
|
||||
_collision_ray = NodePath("Area3D/AreaCast")
|
||||
|
||||
[node name="highlights-grass" parent="." instance=ExtResource("2_m6bs4")]
|
||||
visible = false
|
||||
|
||||
[node name="RayCast3D" type="RayCast3D" parent="."]
|
||||
[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
|
||||
|
||||
Reference in New Issue
Block a user