nature-sim/Entities/Tree/Tree.tscn
2025-06-26 18:28:33 +01:00

25 lines
965 B
Text

[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")