Tree collisions and highlights
This commit is contained in:
parent
57602adddb
commit
7255cbdf64
17 changed files with 231 additions and 2251 deletions
25
Entities/Tree/Tree.tscn
Normal file
25
Entities/Tree/Tree.tscn
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
[gd_scene load_steps=5 format=3 uid="uid://c27fogucecn0r"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://lcedx3lau6v5" path="res://Entities/Tree/scripts/tree.gd" id="1_702jv"]
|
||||
[ext_resource type="PackedScene" uid="uid://bwhpbjdyl577e" path="res://Entities/Tree/assets/tree.glb" id="1_s6kdm"]
|
||||
|
||||
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_s6kdm"]
|
||||
radius = 0.2
|
||||
height = 0.5
|
||||
|
||||
[sub_resource type="SphereShape3D" id="SphereShape3D_702jv"]
|
||||
|
||||
[node name="Tree" type="Node3D"]
|
||||
script = ExtResource("1_702jv")
|
||||
|
||||
[node name="TreeModel" parent="." instance=ExtResource("1_s6kdm")]
|
||||
|
||||
[node name="TreeCollision" type="StaticBody3D" parent="TreeModel" groups=["tree"]]
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="TreeModel/TreeCollision"]
|
||||
shape = SubResource("CapsuleShape3D_s6kdm")
|
||||
|
||||
[node name="InteractRange" type="Area3D" parent="."]
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="InteractRange"]
|
||||
shape = SubResource("SphereShape3D_702jv")
|
||||
Loading…
Add table
Add a link
Reference in a new issue