diff --git a/project.godot b/project.godot index f65766e..47aa938 100644 --- a/project.godot +++ b/project.godot @@ -11,8 +11,8 @@ config_version=5 [application] config/name="Babushka" -run/main_scene="res://scenes/2DTestingGround.tscn" -config/features=PackedStringArray("4.2", "Forward Plus") +run/main_scene="res://scenes/mockups/abandoned_street_3d.tscn" +config/features=PackedStringArray("4.3", "Forward Plus") config/icon="res://icon.svg" [autoload] @@ -73,39 +73,44 @@ project/assembly_name="Babushka" [editor_plugins] -enabled=PackedStringArray("res://addons/dialogic/plugin.cfg") +enabled=PackedStringArray("res://addons/anthonyec.camera_preview/plugin.cfg", "res://addons/dialogic/plugin.cfg") [input] move_left={ "deadzone": 0.5, -"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":65,"key_label":0,"unicode":97,"echo":false,"script":null) +"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":65,"key_label":0,"unicode":97,"location":0,"echo":false,"script":null) ] } move_right={ "deadzone": 0.5, -"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":68,"key_label":0,"unicode":100,"echo":false,"script":null) +"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":68,"key_label":0,"unicode":100,"location":0,"echo":false,"script":null) ] } move_up={ "deadzone": 0.5, -"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":87,"key_label":0,"unicode":119,"echo":false,"script":null) +"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":87,"key_label":0,"unicode":119,"location":0,"echo":false,"script":null) ] } move_down={ "deadzone": 0.5, -"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":83,"key_label":0,"unicode":115,"echo":false,"script":null) +"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":83,"key_label":0,"unicode":115,"location":0,"echo":false,"script":null) ] } dialogic_default_action={ "deadzone": 0.5, -"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":4194309,"physical_keycode":0,"key_label":0,"unicode":0,"echo":false,"script":null) +"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":4194309,"physical_keycode":0,"key_label":0,"unicode":0,"location":0,"echo":false,"script":null) , Object(InputEventMouseButton,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"button_mask":0,"position":Vector2(0, 0),"global_position":Vector2(0, 0),"factor":1.0,"button_index":1,"canceled":false,"pressed":true,"double_click":false,"script":null) -, Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":32,"physical_keycode":0,"key_label":0,"unicode":0,"echo":false,"script":null) -, Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":88,"physical_keycode":0,"key_label":0,"unicode":0,"echo":false,"script":null) +, Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":32,"physical_keycode":0,"key_label":0,"unicode":0,"location":0,"echo":false,"script":null) +, Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":88,"physical_keycode":0,"key_label":0,"unicode":0,"location":0,"echo":false,"script":null) , Object(InputEventJoypadButton,"resource_local_to_scene":false,"resource_name":"","device":0,"button_index":0,"pressure":0.0,"pressed":false,"script":null) ] } +click={ +"deadzone": 0.5, +"events": [Object(InputEventMouseButton,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"button_mask":0,"position":Vector2(0, 0),"global_position":Vector2(0, 0),"factor":1.0,"button_index":1,"canceled":false,"pressed":false,"double_click":false,"script":null) +] +} [internationalization] diff --git a/scenes/mockups/abandoned_street_3d.tscn b/scenes/mockups/abandoned_street_3d.tscn index 75b5948..5c2f157 100644 --- a/scenes/mockups/abandoned_street_3d.tscn +++ b/scenes/mockups/abandoned_street_3d.tscn @@ -1,4 +1,4 @@ -[gd_scene load_steps=29 format=3 uid="uid://c1j5u0cjdswvp"] +[gd_scene load_steps=32 format=3 uid="uid://c1j5u0cjdswvp"] [ext_resource type="Texture2D" uid="uid://cg1cxmqbo1pa" path="res://graphics/mockups/darktree1.png" id="1_u6vd6"] [ext_resource type="Texture2D" uid="uid://fcm6etmmj65d" path="res://graphics/mockups/darktree2.png" id="2_tcvf7"] @@ -26,25 +26,32 @@ [ext_resource type="Texture2D" uid="uid://dfynp0xqtpcke" path="res://graphics/testingground/chestnut1.png" id="24_ohuks"] [ext_resource type="Texture2D" uid="uid://63rgrra0tdef" path="res://graphics/testingground/chestnut2.png" id="25_j83yj"] [ext_resource type="Texture2D" uid="uid://cygt1j1m0vpqg" path="res://graphics/mockups/field_placeholder.png" id="26_7nyv4"] +[ext_resource type="PackedScene" uid="uid://dbd1niu3tp8y5" path="res://scenes/props/Player3D.tscn" id="27_mqdni"] [sub_resource type="PlaneMesh" id="PlaneMesh_8dxh5"] [sub_resource type="StandardMaterial3D" id="StandardMaterial3D_f4rkw"] albedo_color = Color(0.505882, 0.588235, 0.494118, 1) -[node name="Node3D" type="Node3D"] +[sub_resource type="BoxShape3D" id="BoxShape3D_neui6"] +size = Vector3(2.01563, 0.160522, 2.00824) + +[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_rdjax"] +height = 2.70765 -[node name="Camera3D" type="Camera3D" parent="."] -transform = Transform3D(1, 0, 0, 0, 0.766044, 0.642788, 0, -0.642788, 0.766044, 0.0327415, 0.426147, 0.642299) -current = true -fov = 58.9 -size = 0.85 +[node name="Node3D" type="Node3D"] [node name="MeshInstance3D" type="MeshInstance3D" parent="."] mesh = SubResource("PlaneMesh_8dxh5") -skeleton = NodePath("../Camera3D") +skeleton = NodePath("") surface_material_override/0 = SubResource("StandardMaterial3D_f4rkw") +[node name="StaticBody3D" type="StaticBody3D" parent="MeshInstance3D"] + +[node name="CollisionShape3D" type="CollisionShape3D" parent="MeshInstance3D/StaticBody3D"] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.000976563, -0.0739136, -0.00112915) +shape = SubResource("BoxShape3D_neui6") + [node name="background" type="Node3D" parent="."] [node name="tree" type="Sprite3D" parent="background"] @@ -53,318 +60,583 @@ billboard = 1 shaded = true texture = ExtResource("1_u6vd6") +[node name="StaticBody3D" type="StaticBody3D" parent="background/tree"] + +[node name="CollisionShape3D" type="CollisionShape3D" parent="background/tree/StaticBody3D"] +shape = SubResource("CapsuleShape3D_rdjax") + [node name="tree2" type="Sprite3D" parent="background"] transform = Transform3D(0.1, 0, 0, 0, 0.1, 0, 0, 0, 0.1, -0.164495, 0.119419, -0.829471) billboard = 1 shaded = true texture = ExtResource("2_tcvf7") +[node name="StaticBody3D" type="StaticBody3D" parent="background/tree2"] + +[node name="CollisionShape3D" type="CollisionShape3D" parent="background/tree2/StaticBody3D"] +shape = SubResource("CapsuleShape3D_rdjax") + [node name="tree3" type="Sprite3D" parent="background"] transform = Transform3D(0.1, 0, 0, 0, 0.1, 0, 0, 0, 0.1, 0.30683, 0.119096, -0.69378) billboard = 1 shaded = true texture = ExtResource("3_v2fdw") +[node name="StaticBody3D" type="StaticBody3D" parent="background/tree3"] + +[node name="CollisionShape3D" type="CollisionShape3D" parent="background/tree3/StaticBody3D"] +shape = SubResource("CapsuleShape3D_rdjax") + [node name="tree4" type="Sprite3D" parent="background"] transform = Transform3D(0.1, 0, 0, 0, 0.1, 0, 0, 0, 0.1, 0.466273, 0.120625, -0.798476) billboard = 1 shaded = true texture = ExtResource("4_yrcwc") +[node name="StaticBody3D" type="StaticBody3D" parent="background/tree4"] + +[node name="CollisionShape3D" type="CollisionShape3D" parent="background/tree4/StaticBody3D"] +shape = SubResource("CapsuleShape3D_rdjax") + [node name="tree5" type="Sprite3D" parent="background"] transform = Transform3D(0.1, 0, 0, 0, 0.1, 0, 0, 0, 0.1, 0.709182, 0.147986, -0.589548) billboard = 1 shaded = true texture = ExtResource("5_3ynl8") +[node name="StaticBody3D" type="StaticBody3D" parent="background/tree5"] + +[node name="CollisionShape3D" type="CollisionShape3D" parent="background/tree5/StaticBody3D"] +shape = SubResource("CapsuleShape3D_rdjax") + [node name="tree6" type="Sprite3D" parent="background"] transform = Transform3D(0.1, 0, 0, 0, 0.1, 0, 0, 0, 0.1, -0.494517, 0.108343, -0.589548) billboard = 1 shaded = true texture = ExtResource("6_ijjvr") +[node name="StaticBody3D" type="StaticBody3D" parent="background/tree6"] + +[node name="CollisionShape3D" type="CollisionShape3D" parent="background/tree6/StaticBody3D"] +shape = SubResource("CapsuleShape3D_rdjax") + [node name="tree7" type="Sprite3D" parent="background"] transform = Transform3D(0.1, 0, 0, 0, 0.1, 0, 0, 0, 0.1, -0.148489, 0.111307, -0.589548) billboard = 1 shaded = true texture = ExtResource("7_lwa45") +[node name="StaticBody3D" type="StaticBody3D" parent="background/tree7"] + +[node name="CollisionShape3D" type="CollisionShape3D" parent="background/tree7/StaticBody3D"] +shape = SubResource("CapsuleShape3D_rdjax") + [node name="tree8" type="Sprite3D" parent="background"] transform = Transform3D(0.1, 0, 0, 0, 0.1, 0, 0, 0, 0.1, -0.375699, 0.111307, -0.738924) billboard = 1 shaded = true texture = ExtResource("8_wu13e") +[node name="StaticBody3D" type="StaticBody3D" parent="background/tree8"] + +[node name="CollisionShape3D" type="CollisionShape3D" parent="background/tree8/StaticBody3D"] +shape = SubResource("CapsuleShape3D_rdjax") + [node name="tree9" type="Sprite3D" parent="background"] transform = Transform3D(0.1, 0, 0, 0, 0.1, 0, 0, 0, 0.1, -0.696664, 0.13729, -0.543319) billboard = 1 shaded = true texture = ExtResource("9_4i1d4") +[node name="StaticBody3D" type="StaticBody3D" parent="background/tree9"] + +[node name="CollisionShape3D" type="CollisionShape3D" parent="background/tree9/StaticBody3D"] +shape = SubResource("CapsuleShape3D_rdjax") + [node name="tree10" type="Sprite3D" parent="background"] transform = Transform3D(0.1, 0, 0, 0, 0.1, 0, 0, 0, 0.1, -0.287227, 0.119419, -0.721983) billboard = 1 shaded = true texture = ExtResource("1_u6vd6") +[node name="StaticBody3D" type="StaticBody3D" parent="background/tree10"] + +[node name="CollisionShape3D" type="CollisionShape3D" parent="background/tree10/StaticBody3D"] +shape = SubResource("CapsuleShape3D_rdjax") + [node name="tree11" type="Sprite3D" parent="background"] transform = Transform3D(0.1, 0, 0, 0, 0.1, 0, 0, 0, 0.1, -0.5543, 0.119419, -0.803662) billboard = 1 shaded = true texture = ExtResource("2_tcvf7") +[node name="StaticBody3D" type="StaticBody3D" parent="background/tree11"] + +[node name="CollisionShape3D" type="CollisionShape3D" parent="background/tree11/StaticBody3D"] +shape = SubResource("CapsuleShape3D_rdjax") + [node name="tree12" type="Sprite3D" parent="background"] transform = Transform3D(0.1, 0, 0, 0, 0.1, 0, 0, 0, 0.1, -0.0829748, 0.119096, -0.66797) billboard = 1 shaded = true texture = ExtResource("3_v2fdw") +[node name="StaticBody3D" type="StaticBody3D" parent="background/tree12"] + +[node name="CollisionShape3D" type="CollisionShape3D" parent="background/tree12/StaticBody3D"] +shape = SubResource("CapsuleShape3D_rdjax") + [node name="tree13" type="Sprite3D" parent="background"] transform = Transform3D(0.1, 0, 0, 0, 0.1, 0, 0, 0, 0.1, 0.0764678, 0.120625, -0.772666) billboard = 1 shaded = true texture = ExtResource("4_yrcwc") +[node name="StaticBody3D" type="StaticBody3D" parent="background/tree13"] + +[node name="CollisionShape3D" type="CollisionShape3D" parent="background/tree13/StaticBody3D"] +shape = SubResource("CapsuleShape3D_rdjax") + [node name="tree14" type="Sprite3D" parent="background"] transform = Transform3D(0.1, 0, 0, 0, 0.1, 0, 0, 0, 0.1, 0.319377, 0.147986, -0.563738) billboard = 1 shaded = true texture = ExtResource("5_3ynl8") +[node name="StaticBody3D" type="StaticBody3D" parent="background/tree14"] + +[node name="CollisionShape3D" type="CollisionShape3D" parent="background/tree14/StaticBody3D"] +shape = SubResource("CapsuleShape3D_rdjax") + [node name="tree15" type="Sprite3D" parent="background"] transform = Transform3D(0.1, 0, 0, 0, 0.1, 0, 0, 0, 0.1, -0.884322, 0.108343, -0.563738) billboard = 1 shaded = true texture = ExtResource("6_ijjvr") +[node name="StaticBody3D" type="StaticBody3D" parent="background/tree15"] + +[node name="CollisionShape3D" type="CollisionShape3D" parent="background/tree15/StaticBody3D"] +shape = SubResource("CapsuleShape3D_rdjax") + [node name="tree16" type="Sprite3D" parent="background"] transform = Transform3D(0.0999822, 0, -0.00188484, 0, 0.1, 0, 0.00188484, 0, 0.0999822, -0.538294, 0.111307, -0.520366) billboard = 1 shaded = true texture = ExtResource("7_lwa45") +[node name="StaticBody3D" type="StaticBody3D" parent="background/tree16"] + +[node name="CollisionShape3D" type="CollisionShape3D" parent="background/tree16/StaticBody3D"] +shape = SubResource("CapsuleShape3D_rdjax") + [node name="tree17" type="Sprite3D" parent="background"] transform = Transform3D(0.1, 0, 0, 0, 0.1, 0, 0, 0, 0.1, -0.765503, 0.111307, -0.713115) billboard = 1 shaded = true texture = ExtResource("8_wu13e") +[node name="StaticBody3D" type="StaticBody3D" parent="background/tree17"] + +[node name="CollisionShape3D" type="CollisionShape3D" parent="background/tree17/StaticBody3D"] +shape = SubResource("CapsuleShape3D_rdjax") + [node name="tree18" type="Sprite3D" parent="background"] transform = Transform3D(0.1, 0, 0, 0, 0.1, 0, 0, 0, 0.1, -0.231314, 0.13729, -0.840139) billboard = 1 shaded = true texture = ExtResource("9_4i1d4") +[node name="StaticBody3D" type="StaticBody3D" parent="background/tree18"] + +[node name="CollisionShape3D" type="CollisionShape3D" parent="background/tree18/StaticBody3D"] +shape = SubResource("CapsuleShape3D_rdjax") + [node name="tree19" type="Sprite3D" parent="background"] transform = Transform3D(0.1, 0, 0, 0, 0.1, 0, 0, 0, 0.1, 0.59089, 0.119419, -0.666389) billboard = 1 shaded = true texture = ExtResource("1_u6vd6") +[node name="StaticBody3D" type="StaticBody3D" parent="background/tree19"] + +[node name="CollisionShape3D" type="CollisionShape3D" parent="background/tree19/StaticBody3D"] +shape = SubResource("CapsuleShape3D_rdjax") + [node name="tree20" type="Sprite3D" parent="background"] transform = Transform3D(0.1, 0, 0, 0, 0.1, 0, 0, 0, 0.1, 0.323817, 0.119419, -0.748068) billboard = 1 shaded = true texture = ExtResource("2_tcvf7") +[node name="StaticBody3D" type="StaticBody3D" parent="background/tree20"] + +[node name="CollisionShape3D" type="CollisionShape3D" parent="background/tree20/StaticBody3D"] +shape = SubResource("CapsuleShape3D_rdjax") + [node name="tree21" type="Sprite3D" parent="background"] transform = Transform3D(0.1, 0, 0, 0, 0.1, 0, 0, 0, 0.1, 0.795143, 0.119096, -0.612376) billboard = 1 shaded = true texture = ExtResource("3_v2fdw") +[node name="StaticBody3D" type="StaticBody3D" parent="background/tree21"] + +[node name="CollisionShape3D" type="CollisionShape3D" parent="background/tree21/StaticBody3D"] +shape = SubResource("CapsuleShape3D_rdjax") + [node name="tree22" type="Sprite3D" parent="background"] transform = Transform3D(0.1, 0, 0, 0, 0.1, 0, 0, 0, 0.1, 0.899468, 0.120625, -0.509008) billboard = 1 shaded = true texture = ExtResource("4_yrcwc") +[node name="StaticBody3D" type="StaticBody3D" parent="background/tree22"] + +[node name="CollisionShape3D" type="CollisionShape3D" parent="background/tree22/StaticBody3D"] +shape = SubResource("CapsuleShape3D_rdjax") + [node name="tree23" type="Sprite3D" parent="background"] transform = Transform3D(0.1, 0, 0, 0, 0.1, 0, 0, 0, 0.1, 0.916255, 0.147986, -0.248355) billboard = 1 shaded = true texture = ExtResource("5_3ynl8") +[node name="StaticBody3D" type="StaticBody3D" parent="background/tree23"] + +[node name="CollisionShape3D" type="CollisionShape3D" parent="background/tree23/StaticBody3D"] +shape = SubResource("CapsuleShape3D_rdjax") + [node name="tree24" type="Sprite3D" parent="background"] transform = Transform3D(0.1, 0, 0, 0, 0.1, 0, 0, 0, 0.1, -0.785074, 0.108343, -0.418221) billboard = 1 shaded = true texture = ExtResource("6_ijjvr") +[node name="StaticBody3D" type="StaticBody3D" parent="background/tree24"] + +[node name="CollisionShape3D" type="CollisionShape3D" parent="background/tree24/StaticBody3D"] +shape = SubResource("CapsuleShape3D_rdjax") + [node name="tree42" type="Sprite3D" parent="background"] transform = Transform3D(0.0628262, 0, -0.0778002, 0, 0.1, 0, 0.0778002, 0, 0.0628262, 0.917235, 0.119419, -0.508767) billboard = 1 shaded = true texture = ExtResource("2_tcvf7") +[node name="StaticBody3D" type="StaticBody3D" parent="background/tree42"] + +[node name="CollisionShape3D" type="CollisionShape3D" parent="background/tree42/StaticBody3D"] +shape = SubResource("CapsuleShape3D_rdjax") + [node name="tree43" type="Sprite3D" parent="background"] transform = Transform3D(0.0628262, 0, -0.0778002, 0, 0.1, 0, 0.0778002, 0, 0.0628262, 0.523234, 0.108343, -0.61479) billboard = 1 shaded = true texture = ExtResource("6_ijjvr") +[node name="StaticBody3D" type="StaticBody3D" parent="background/tree43"] + +[node name="CollisionShape3D" type="CollisionShape3D" parent="background/tree43/StaticBody3D"] +shape = SubResource("CapsuleShape3D_rdjax") + [node name="tree44" type="Sprite3D" parent="background"] transform = Transform3D(0.0628262, 0, -0.0778002, 0, 0.1, 0, 0.0778002, 0, 0.0628262, 0.74063, 0.111307, -0.34558) billboard = 1 shaded = true texture = ExtResource("7_lwa45") +[node name="StaticBody3D" type="StaticBody3D" parent="background/tree44"] + +[node name="CollisionShape3D" type="CollisionShape3D" parent="background/tree44/StaticBody3D"] +shape = SubResource("CapsuleShape3D_rdjax") + [node name="tree45" type="Sprite3D" parent="background"] transform = Transform3D(0.0628262, 0, -0.0778002, 0, 0.1, 0, 0.0778002, 0, 0.0628262, 0.714098, 0.111307, -0.616197) billboard = 1 shaded = true texture = ExtResource("8_wu13e") +[node name="StaticBody3D" type="StaticBody3D" parent="background/tree45"] + +[node name="CollisionShape3D" type="CollisionShape3D" parent="background/tree45/StaticBody3D"] +shape = SubResource("CapsuleShape3D_rdjax") + [node name="tree46" type="Sprite3D" parent="background"] transform = Transform3D(0.0628262, 0, -0.0778002, 0, 0.1, 0, 0.0778002, 0, 0.0628262, 0.360267, 0.13729, -0.743018) billboard = 1 shaded = true texture = ExtResource("9_4i1d4") +[node name="StaticBody3D" type="StaticBody3D" parent="background/tree46"] + +[node name="CollisionShape3D" type="CollisionShape3D" parent="background/tree46/StaticBody3D"] +shape = SubResource("CapsuleShape3D_rdjax") + [node name="tree47" type="Sprite3D" parent="background"] transform = Transform3D(0.0628262, 0, -0.0778002, 0, 0.1, 0, 0.0778002, 0, 0.0628262, 0.756501, 0.119419, -0.536722) billboard = 1 shaded = true texture = ExtResource("1_u6vd6") +[node name="StaticBody3D" type="StaticBody3D" parent="background/tree47"] + +[node name="CollisionShape3D" type="CollisionShape3D" parent="background/tree47/StaticBody3D"] +shape = SubResource("CapsuleShape3D_rdjax") + [node name="tree48" type="Sprite3D" parent="background"] transform = Transform3D(0.0628262, 0, -0.0778002, 0, 0.1, 0, 0.0778002, 0, 0.0628262, 0.652256, 0.119419, -0.795821) billboard = 1 shaded = true texture = ExtResource("2_tcvf7") +[node name="StaticBody3D" type="StaticBody3D" parent="background/tree48"] + +[node name="CollisionShape3D" type="CollisionShape3D" parent="background/tree48/StaticBody3D"] +shape = SubResource("CapsuleShape3D_rdjax") + [node name="tree49" type="Sprite3D" parent="background"] transform = Transform3D(0.0628262, 0, -0.0778002, 0, 0.1, 0, 0.0778002, 0, 0.0628262, 0.258255, 0.108343, -0.901844) billboard = 1 shaded = true texture = ExtResource("6_ijjvr") +[node name="StaticBody3D" type="StaticBody3D" parent="background/tree49"] + +[node name="CollisionShape3D" type="CollisionShape3D" parent="background/tree49/StaticBody3D"] +shape = SubResource("CapsuleShape3D_rdjax") + [node name="tree50" type="Sprite3D" parent="background"] transform = Transform3D(0.0613486, 0, -0.0789706, 0, 0.1, 0, 0.0789706, 0, 0.0613486, 0.441907, 0.111307, -0.605384) billboard = 1 shaded = true texture = ExtResource("7_lwa45") +[node name="StaticBody3D" type="StaticBody3D" parent="background/tree50"] + +[node name="CollisionShape3D" type="CollisionShape3D" parent="background/tree50/StaticBody3D"] +shape = SubResource("CapsuleShape3D_rdjax") + [node name="tree51" type="Sprite3D" parent="background"] transform = Transform3D(0.0628262, 0, -0.0778002, 0, 0.1, 0, 0.0778002, 0, 0.0628262, 0.449119, 0.111307, -0.90325) billboard = 1 shaded = true texture = ExtResource("8_wu13e") +[node name="StaticBody3D" type="StaticBody3D" parent="background/tree51"] + +[node name="CollisionShape3D" type="CollisionShape3D" parent="background/tree51/StaticBody3D"] +shape = SubResource("CapsuleShape3D_rdjax") + [node name="tree52" type="Sprite3D" parent="background"] transform = Transform3D(0.0628262, 0, -0.0778002, 0, 0.1, 0, 0.0778002, 0, 0.0628262, 0.883555, 0.13729, -0.567455) billboard = 1 shaded = true texture = ExtResource("9_4i1d4") +[node name="StaticBody3D" type="StaticBody3D" parent="background/tree52"] + +[node name="CollisionShape3D" type="CollisionShape3D" parent="background/tree52/StaticBody3D"] +shape = SubResource("CapsuleShape3D_rdjax") + [node name="tree53" type="Sprite3D" parent="background"] transform = Transform3D(0.0628262, 0, -0.0778002, 0, 0.1, 0, 0.0778002, 0, 0.0628262, 0.207396, 0.108343, -0.733205) billboard = 1 shaded = true texture = ExtResource("6_ijjvr") +[node name="StaticBody3D" type="StaticBody3D" parent="background/tree53"] + +[node name="CollisionShape3D" type="CollisionShape3D" parent="background/tree53/StaticBody3D"] +shape = SubResource("CapsuleShape3D_rdjax") + [node name="tree25" type="Sprite3D" parent="background"] transform = Transform3D(0.1, 0, 0, 0, 0.1, 0, 0, 0, 0.1, 0.46999, 0.111307, -0.508144) billboard = 1 shaded = true texture = ExtResource("7_lwa45") +[node name="StaticBody3D" type="StaticBody3D" parent="background/tree25"] + +[node name="CollisionShape3D" type="CollisionShape3D" parent="background/tree25/StaticBody3D"] +shape = SubResource("CapsuleShape3D_rdjax") + [node name="tree26" type="Sprite3D" parent="background"] transform = Transform3D(0.1, 0, 0, 0, 0.1, 0, 0, 0, 0.1, 0.112614, 0.111307, -0.65752) billboard = 1 shaded = true texture = ExtResource("8_wu13e") +[node name="StaticBody3D" type="StaticBody3D" parent="background/tree26"] + +[node name="CollisionShape3D" type="CollisionShape3D" parent="background/tree26/StaticBody3D"] +shape = SubResource("CapsuleShape3D_rdjax") + [node name="tree27" type="Sprite3D" parent="background"] transform = Transform3D(0.1, 0, 0, 0, 0.1, 0, 0, 0, 0.1, 0.646804, 0.13729, -0.461916) billboard = 1 shaded = true texture = ExtResource("9_4i1d4") +[node name="StaticBody3D" type="StaticBody3D" parent="background/tree27"] + +[node name="CollisionShape3D" type="CollisionShape3D" parent="background/tree27/StaticBody3D"] +shape = SubResource("CapsuleShape3D_rdjax") + [node name="tree28" type="Sprite3D" parent="background"] transform = Transform3D(0.0559526, 0, 0.0828813, 0, 0.1, 0, -0.0828813, 0, 0.0559526, -0.900771, 0.119419, -0.592793) billboard = 1 shaded = true texture = ExtResource("1_u6vd6") +[node name="StaticBody3D" type="StaticBody3D" parent="background/tree28"] + +[node name="CollisionShape3D" type="CollisionShape3D" parent="background/tree28/StaticBody3D"] +shape = SubResource("CapsuleShape3D_rdjax") + [node name="tree29" type="Sprite3D" parent="background"] transform = Transform3D(0.0559526, 0, 0.0828813, 0, 0.1, 0, -0.0828813, 0, 0.0559526, -0.74172, 0.119096, -0.731858) billboard = 1 shaded = true texture = ExtResource("3_v2fdw") +[node name="StaticBody3D" type="StaticBody3D" parent="background/tree29"] + +[node name="CollisionShape3D" type="CollisionShape3D" parent="background/tree29/StaticBody3D"] +shape = SubResource("CapsuleShape3D_rdjax") + [node name="tree30" type="Sprite3D" parent="background"] transform = Transform3D(0.0559526, 0, 0.0828813, 0, 0.1, 0, -0.0828813, 0, 0.0559526, -0.739281, 0.120625, -0.922587) billboard = 1 shaded = true texture = ExtResource("4_yrcwc") +[node name="StaticBody3D" type="StaticBody3D" parent="background/tree30"] + +[node name="CollisionShape3D" type="CollisionShape3D" parent="background/tree30/StaticBody3D"] +shape = SubResource("CapsuleShape3D_rdjax") + [node name="tree31" type="Sprite3D" parent="background"] transform = Transform3D(0.0559526, 0, 0.0828813, 0, 0.1, 0, -0.0828813, 0, 0.0559526, -0.430205, 0.147986, -1.00701) billboard = 1 shaded = true texture = ExtResource("5_3ynl8") +[node name="StaticBody3D" type="StaticBody3D" parent="background/tree31"] + +[node name="CollisionShape3D" type="CollisionShape3D" parent="background/tree31/StaticBody3D"] +shape = SubResource("CapsuleShape3D_rdjax") + [node name="tree32" type="Sprite3D" parent="background"] transform = Transform3D(0.0559526, 0, 0.0828813, 0, 0.1, 0, -0.0828813, 0, 0.0559526, -0.935996, 0.120625, -0.58507) billboard = 1 shaded = true texture = ExtResource("4_yrcwc") +[node name="StaticBody3D" type="StaticBody3D" parent="background/tree32"] + +[node name="CollisionShape3D" type="CollisionShape3D" parent="background/tree32/StaticBody3D"] +shape = SubResource("CapsuleShape3D_rdjax") + [node name="tree33" type="Sprite3D" parent="background"] transform = Transform3D(0.0559526, 0, 0.0828813, 0, 0.1, 0, -0.0828813, 0, 0.0559526, -0.626919, 0.147986, -0.669496) billboard = 1 shaded = true texture = ExtResource("5_3ynl8") +[node name="StaticBody3D" type="StaticBody3D" parent="background/tree33"] + +[node name="CollisionShape3D" type="CollisionShape3D" parent="background/tree33/StaticBody3D"] +shape = SubResource("CapsuleShape3D_rdjax") + [node name="tree34" type="Sprite3D" parent="background"] transform = Transform3D(0.0559526, 0, 0.0828813, 0, 0.1, 0, -0.0828813, 0, 0.0559526, -0.560079, 0.119419, -0.951965) billboard = 1 shaded = true texture = ExtResource("1_u6vd6") +[node name="StaticBody3D" type="StaticBody3D" parent="background/tree34"] + +[node name="CollisionShape3D" type="CollisionShape3D" parent="background/tree34/StaticBody3D"] +shape = SubResource("CapsuleShape3D_rdjax") + [node name="tree35" type="Sprite3D" parent="background"] transform = Transform3D(0.0559526, 0, 0.0828813, 0, 0.1, 0, -0.0828813, 0, 0.0559526, -0.777209, 0.119419, -0.776313) billboard = 1 shaded = true texture = ExtResource("2_tcvf7") +[node name="StaticBody3D" type="StaticBody3D" parent="background/tree35"] + +[node name="CollisionShape3D" type="CollisionShape3D" parent="background/tree35/StaticBody3D"] +shape = SubResource("CapsuleShape3D_rdjax") + [node name="tree36" type="Sprite3D" parent="background"] transform = Transform3D(0.0559526, 0, 0.0828813, 0, 0.1, 0, -0.0828813, 0, 0.0559526, -0.401028, 0.119096, -1.09103) billboard = 1 shaded = true texture = ExtResource("3_v2fdw") +[node name="StaticBody3D" type="StaticBody3D" parent="background/tree36"] + +[node name="CollisionShape3D" type="CollisionShape3D" parent="background/tree36/StaticBody3D"] +shape = SubResource("CapsuleShape3D_rdjax") + [node name="tree37" type="Sprite3D" parent="background"] transform = Transform3D(0.0559526, 0, 0.0828813, 0, 0.1, 0, -0.0828813, 0, 0.0559526, -0.256982, 0.120625, -1.11966) billboard = 1 shaded = true texture = ExtResource("4_yrcwc") +[node name="StaticBody3D" type="StaticBody3D" parent="background/tree37"] + +[node name="CollisionShape3D" type="CollisionShape3D" parent="background/tree37/StaticBody3D"] +shape = SubResource("CapsuleShape3D_rdjax") + [node name="tree38" type="Sprite3D" parent="background"] transform = Transform3D(0.0559526, 0, 0.0828813, 0, 0.1, 0, -0.0828813, 0, 0.0559526, -0.0315572, 0.147986, -0.987731) billboard = 1 shaded = true texture = ExtResource("5_3ynl8") +[node name="StaticBody3D" type="StaticBody3D" parent="background/tree38"] + +[node name="CollisionShape3D" type="CollisionShape3D" parent="background/tree38/StaticBody3D"] +shape = SubResource("CapsuleShape3D_rdjax") + [node name="tree39" type="Sprite3D" parent="background"] transform = Transform3D(0.0559526, 0, 0.0828813, 0, 0.1, 0, -0.0828813, 0, 0.0559526, -0.49657, 0.111307, -0.763219) billboard = 1 shaded = true texture = ExtResource("7_lwa45") +[node name="StaticBody3D" type="StaticBody3D" parent="background/tree39"] + +[node name="CollisionShape3D" type="CollisionShape3D" parent="background/tree39/StaticBody3D"] +shape = SubResource("CapsuleShape3D_rdjax") + [node name="tree40" type="Sprite3D" parent="background"] transform = Transform3D(0.0559526, 0, 0.0828813, 0, 0.1, 0, -0.0828813, 0, 0.0559526, -0.820336, 0.111307, -0.550602) billboard = 1 shaded = true texture = ExtResource("8_wu13e") +[node name="StaticBody3D" type="StaticBody3D" parent="background/tree40"] + +[node name="CollisionShape3D" type="CollisionShape3D" parent="background/tree40/StaticBody3D"] +shape = SubResource("CapsuleShape3D_rdjax") + [node name="tree41" type="Sprite3D" parent="background"] transform = Transform3D(0.0559526, 0, 0.0828813, 0, 0.1, 0, -0.0828813, 0, 0.0559526, -0.359324, 0.13729, -0.883899) billboard = 1 shaded = true texture = ExtResource("9_4i1d4") +[node name="StaticBody3D" type="StaticBody3D" parent="background/tree41"] + +[node name="CollisionShape3D" type="CollisionShape3D" parent="background/tree41/StaticBody3D"] +shape = SubResource("CapsuleShape3D_rdjax") + [node name="foreground" type="Node3D" parent="."] transform = Transform3D(-0.999657, 0, -0.0261769, 0, 1, 0, 0.0261769, 0, -0.999657, 0, 0, 0) @@ -374,318 +646,583 @@ billboard = 1 shaded = true texture = ExtResource("1_u6vd6") +[node name="StaticBody3D" type="StaticBody3D" parent="foreground/tree"] + +[node name="CollisionShape3D" type="CollisionShape3D" parent="foreground/tree/StaticBody3D"] +shape = SubResource("CapsuleShape3D_rdjax") + [node name="tree2" type="Sprite3D" parent="foreground"] transform = Transform3D(0.1, 0, 0, 0, 0.1, 0, 0, 0, 0.1, -0.164495, 0.119419, -0.829471) billboard = 1 shaded = true texture = ExtResource("2_tcvf7") +[node name="StaticBody3D" type="StaticBody3D" parent="foreground/tree2"] + +[node name="CollisionShape3D" type="CollisionShape3D" parent="foreground/tree2/StaticBody3D"] +shape = SubResource("CapsuleShape3D_rdjax") + [node name="tree3" type="Sprite3D" parent="foreground"] transform = Transform3D(0.1, 0, 0, 0, 0.1, 0, 0, 0, 0.1, 0.30683, 0.119096, -0.69378) billboard = 1 shaded = true texture = ExtResource("3_v2fdw") +[node name="StaticBody3D" type="StaticBody3D" parent="foreground/tree3"] + +[node name="CollisionShape3D" type="CollisionShape3D" parent="foreground/tree3/StaticBody3D"] +shape = SubResource("CapsuleShape3D_rdjax") + [node name="tree4" type="Sprite3D" parent="foreground"] transform = Transform3D(0.1, 0, 0, 0, 0.1, 0, 0, 0, 0.1, 0.466273, 0.120625, -0.798476) billboard = 1 shaded = true texture = ExtResource("4_yrcwc") +[node name="StaticBody3D" type="StaticBody3D" parent="foreground/tree4"] + +[node name="CollisionShape3D" type="CollisionShape3D" parent="foreground/tree4/StaticBody3D"] +shape = SubResource("CapsuleShape3D_rdjax") + [node name="tree5" type="Sprite3D" parent="foreground"] transform = Transform3D(0.1, 0, 0, 0, 0.1, 0, 0, 0, 0.1, 0.709182, 0.147986, -0.589548) billboard = 1 shaded = true texture = ExtResource("5_3ynl8") +[node name="StaticBody3D" type="StaticBody3D" parent="foreground/tree5"] + +[node name="CollisionShape3D" type="CollisionShape3D" parent="foreground/tree5/StaticBody3D"] +shape = SubResource("CapsuleShape3D_rdjax") + [node name="tree6" type="Sprite3D" parent="foreground"] transform = Transform3D(0.1, 0, 0, 0, 0.1, 0, 0, 0, 0.1, -0.494517, 0.108343, -0.589548) billboard = 1 shaded = true texture = ExtResource("6_ijjvr") +[node name="StaticBody3D" type="StaticBody3D" parent="foreground/tree6"] + +[node name="CollisionShape3D" type="CollisionShape3D" parent="foreground/tree6/StaticBody3D"] +shape = SubResource("CapsuleShape3D_rdjax") + [node name="tree7" type="Sprite3D" parent="foreground"] transform = Transform3D(0.1, 0, 0, 0, 0.1, 0, 0, 0, 0.1, -0.148489, 0.111307, -0.589548) billboard = 1 shaded = true texture = ExtResource("7_lwa45") +[node name="StaticBody3D" type="StaticBody3D" parent="foreground/tree7"] + +[node name="CollisionShape3D" type="CollisionShape3D" parent="foreground/tree7/StaticBody3D"] +shape = SubResource("CapsuleShape3D_rdjax") + [node name="tree8" type="Sprite3D" parent="foreground"] transform = Transform3D(0.1, 0, 0, 0, 0.1, 0, 0, 0, 0.1, -0.375699, 0.111307, -0.738924) billboard = 1 shaded = true texture = ExtResource("8_wu13e") +[node name="StaticBody3D" type="StaticBody3D" parent="foreground/tree8"] + +[node name="CollisionShape3D" type="CollisionShape3D" parent="foreground/tree8/StaticBody3D"] +shape = SubResource("CapsuleShape3D_rdjax") + [node name="tree9" type="Sprite3D" parent="foreground"] transform = Transform3D(0.1, 0, 0, 0, 0.1, 0, 0, 0, 0.1, -0.696664, 0.13729, -0.543319) billboard = 1 shaded = true texture = ExtResource("9_4i1d4") +[node name="StaticBody3D" type="StaticBody3D" parent="foreground/tree9"] + +[node name="CollisionShape3D" type="CollisionShape3D" parent="foreground/tree9/StaticBody3D"] +shape = SubResource("CapsuleShape3D_rdjax") + [node name="tree10" type="Sprite3D" parent="foreground"] transform = Transform3D(0.1, 0, 0, 0, 0.1, 0, 0, 0, 0.1, -0.287227, 0.119419, -0.721983) billboard = 1 shaded = true texture = ExtResource("1_u6vd6") +[node name="StaticBody3D" type="StaticBody3D" parent="foreground/tree10"] + +[node name="CollisionShape3D" type="CollisionShape3D" parent="foreground/tree10/StaticBody3D"] +shape = SubResource("CapsuleShape3D_rdjax") + [node name="tree11" type="Sprite3D" parent="foreground"] transform = Transform3D(0.1, 0, 0, 0, 0.1, 0, 0, 0, 0.1, -0.5543, 0.119419, -0.803662) billboard = 1 shaded = true texture = ExtResource("2_tcvf7") +[node name="StaticBody3D" type="StaticBody3D" parent="foreground/tree11"] + +[node name="CollisionShape3D" type="CollisionShape3D" parent="foreground/tree11/StaticBody3D"] +shape = SubResource("CapsuleShape3D_rdjax") + [node name="tree12" type="Sprite3D" parent="foreground"] transform = Transform3D(0.1, 0, 0, 0, 0.1, 0, 0, 0, 0.1, -0.0829748, 0.119096, -0.66797) billboard = 1 shaded = true texture = ExtResource("3_v2fdw") +[node name="StaticBody3D" type="StaticBody3D" parent="foreground/tree12"] + +[node name="CollisionShape3D" type="CollisionShape3D" parent="foreground/tree12/StaticBody3D"] +shape = SubResource("CapsuleShape3D_rdjax") + [node name="tree13" type="Sprite3D" parent="foreground"] transform = Transform3D(0.1, 0, 0, 0, 0.1, 0, 0, 0, 0.1, 0.0764678, 0.120625, -0.772666) billboard = 1 shaded = true texture = ExtResource("4_yrcwc") +[node name="StaticBody3D" type="StaticBody3D" parent="foreground/tree13"] + +[node name="CollisionShape3D" type="CollisionShape3D" parent="foreground/tree13/StaticBody3D"] +shape = SubResource("CapsuleShape3D_rdjax") + [node name="tree14" type="Sprite3D" parent="foreground"] transform = Transform3D(0.1, 0, 0, 0, 0.1, 0, 0, 0, 0.1, 0.319377, 0.147986, -0.563738) billboard = 1 shaded = true texture = ExtResource("5_3ynl8") +[node name="StaticBody3D" type="StaticBody3D" parent="foreground/tree14"] + +[node name="CollisionShape3D" type="CollisionShape3D" parent="foreground/tree14/StaticBody3D"] +shape = SubResource("CapsuleShape3D_rdjax") + [node name="tree15" type="Sprite3D" parent="foreground"] transform = Transform3D(0.1, 0, 0, 0, 0.1, 0, 0, 0, 0.1, -0.884322, 0.108343, -0.563738) billboard = 1 shaded = true texture = ExtResource("6_ijjvr") +[node name="StaticBody3D" type="StaticBody3D" parent="foreground/tree15"] + +[node name="CollisionShape3D" type="CollisionShape3D" parent="foreground/tree15/StaticBody3D"] +shape = SubResource("CapsuleShape3D_rdjax") + [node name="tree16" type="Sprite3D" parent="foreground"] transform = Transform3D(0.0999822, 0, -0.00188484, 0, 0.1, 0, 0.00188484, 0, 0.0999822, -0.538294, 0.111307, -0.520366) billboard = 1 shaded = true texture = ExtResource("7_lwa45") +[node name="StaticBody3D" type="StaticBody3D" parent="foreground/tree16"] + +[node name="CollisionShape3D" type="CollisionShape3D" parent="foreground/tree16/StaticBody3D"] +shape = SubResource("CapsuleShape3D_rdjax") + [node name="tree17" type="Sprite3D" parent="foreground"] transform = Transform3D(0.1, 0, 0, 0, 0.1, 0, 0, 0, 0.1, -0.765503, 0.111307, -0.713115) billboard = 1 shaded = true texture = ExtResource("8_wu13e") +[node name="StaticBody3D" type="StaticBody3D" parent="foreground/tree17"] + +[node name="CollisionShape3D" type="CollisionShape3D" parent="foreground/tree17/StaticBody3D"] +shape = SubResource("CapsuleShape3D_rdjax") + [node name="tree18" type="Sprite3D" parent="foreground"] transform = Transform3D(0.1, 0, 0, 0, 0.1, 0, 0, 0, 0.1, -0.231314, 0.13729, -0.840139) billboard = 1 shaded = true texture = ExtResource("9_4i1d4") +[node name="StaticBody3D" type="StaticBody3D" parent="foreground/tree18"] + +[node name="CollisionShape3D" type="CollisionShape3D" parent="foreground/tree18/StaticBody3D"] +shape = SubResource("CapsuleShape3D_rdjax") + [node name="tree19" type="Sprite3D" parent="foreground"] transform = Transform3D(0.1, 0, 0, 0, 0.1, 0, 0, 0, 0.1, 0.59089, 0.119419, -0.666389) billboard = 1 shaded = true texture = ExtResource("1_u6vd6") +[node name="StaticBody3D" type="StaticBody3D" parent="foreground/tree19"] + +[node name="CollisionShape3D" type="CollisionShape3D" parent="foreground/tree19/StaticBody3D"] +shape = SubResource("CapsuleShape3D_rdjax") + [node name="tree20" type="Sprite3D" parent="foreground"] transform = Transform3D(0.1, 0, 0, 0, 0.1, 0, 0, 0, 0.1, 0.323817, 0.119419, -0.748068) billboard = 1 shaded = true texture = ExtResource("2_tcvf7") +[node name="StaticBody3D" type="StaticBody3D" parent="foreground/tree20"] + +[node name="CollisionShape3D" type="CollisionShape3D" parent="foreground/tree20/StaticBody3D"] +shape = SubResource("CapsuleShape3D_rdjax") + [node name="tree21" type="Sprite3D" parent="foreground"] transform = Transform3D(0.1, 0, 0, 0, 0.1, 0, 0, 0, 0.1, 0.795143, 0.119096, -0.612376) billboard = 1 shaded = true texture = ExtResource("3_v2fdw") +[node name="StaticBody3D" type="StaticBody3D" parent="foreground/tree21"] + +[node name="CollisionShape3D" type="CollisionShape3D" parent="foreground/tree21/StaticBody3D"] +shape = SubResource("CapsuleShape3D_rdjax") + [node name="tree22" type="Sprite3D" parent="foreground"] transform = Transform3D(0.1, 0, 0, 0, 0.1, 0, 0, 0, 0.1, 0.899468, 0.120625, -0.509008) billboard = 1 shaded = true texture = ExtResource("4_yrcwc") +[node name="StaticBody3D" type="StaticBody3D" parent="foreground/tree22"] + +[node name="CollisionShape3D" type="CollisionShape3D" parent="foreground/tree22/StaticBody3D"] +shape = SubResource("CapsuleShape3D_rdjax") + [node name="tree23" type="Sprite3D" parent="foreground"] transform = Transform3D(0.1, 0, 0, 0, 0.1, 0, 0, 0, 0.1, 0.916255, 0.147986, -0.248355) billboard = 1 shaded = true texture = ExtResource("5_3ynl8") +[node name="StaticBody3D" type="StaticBody3D" parent="foreground/tree23"] + +[node name="CollisionShape3D" type="CollisionShape3D" parent="foreground/tree23/StaticBody3D"] +shape = SubResource("CapsuleShape3D_rdjax") + [node name="tree24" type="Sprite3D" parent="foreground"] transform = Transform3D(0.1, 0, 0, 0, 0.1, 0, 0, 0, 0.1, -0.785074, 0.108343, -0.418221) billboard = 1 shaded = true texture = ExtResource("6_ijjvr") +[node name="StaticBody3D" type="StaticBody3D" parent="foreground/tree24"] + +[node name="CollisionShape3D" type="CollisionShape3D" parent="foreground/tree24/StaticBody3D"] +shape = SubResource("CapsuleShape3D_rdjax") + [node name="tree42" type="Sprite3D" parent="foreground"] transform = Transform3D(0.0628262, 0, -0.0778002, 0, 0.1, 0, 0.0778002, 0, 0.0628262, 0.917235, 0.119419, -0.508767) billboard = 1 shaded = true texture = ExtResource("2_tcvf7") +[node name="StaticBody3D" type="StaticBody3D" parent="foreground/tree42"] + +[node name="CollisionShape3D" type="CollisionShape3D" parent="foreground/tree42/StaticBody3D"] +shape = SubResource("CapsuleShape3D_rdjax") + [node name="tree43" type="Sprite3D" parent="foreground"] transform = Transform3D(0.0628262, 0, -0.0778002, 0, 0.1, 0, 0.0778002, 0, 0.0628262, 0.523234, 0.108343, -0.61479) billboard = 1 shaded = true texture = ExtResource("6_ijjvr") +[node name="StaticBody3D" type="StaticBody3D" parent="foreground/tree43"] + +[node name="CollisionShape3D" type="CollisionShape3D" parent="foreground/tree43/StaticBody3D"] +shape = SubResource("CapsuleShape3D_rdjax") + [node name="tree44" type="Sprite3D" parent="foreground"] transform = Transform3D(0.0628262, 0, -0.0778002, 0, 0.1, 0, 0.0778002, 0, 0.0628262, 0.74063, 0.111307, -0.34558) billboard = 1 shaded = true texture = ExtResource("7_lwa45") +[node name="StaticBody3D" type="StaticBody3D" parent="foreground/tree44"] + +[node name="CollisionShape3D" type="CollisionShape3D" parent="foreground/tree44/StaticBody3D"] +shape = SubResource("CapsuleShape3D_rdjax") + [node name="tree45" type="Sprite3D" parent="foreground"] transform = Transform3D(0.0628262, 0, -0.0778002, 0, 0.1, 0, 0.0778002, 0, 0.0628262, 0.714098, 0.111307, -0.616197) billboard = 1 shaded = true texture = ExtResource("8_wu13e") +[node name="StaticBody3D" type="StaticBody3D" parent="foreground/tree45"] + +[node name="CollisionShape3D" type="CollisionShape3D" parent="foreground/tree45/StaticBody3D"] +shape = SubResource("CapsuleShape3D_rdjax") + [node name="tree46" type="Sprite3D" parent="foreground"] transform = Transform3D(0.0628262, 0, -0.0778002, 0, 0.1, 0, 0.0778002, 0, 0.0628262, 0.360267, 0.13729, -0.743018) billboard = 1 shaded = true texture = ExtResource("9_4i1d4") +[node name="StaticBody3D" type="StaticBody3D" parent="foreground/tree46"] + +[node name="CollisionShape3D" type="CollisionShape3D" parent="foreground/tree46/StaticBody3D"] +shape = SubResource("CapsuleShape3D_rdjax") + [node name="tree47" type="Sprite3D" parent="foreground"] transform = Transform3D(0.0628262, 0, -0.0778002, 0, 0.1, 0, 0.0778002, 0, 0.0628262, 0.756501, 0.119419, -0.536722) billboard = 1 shaded = true texture = ExtResource("1_u6vd6") +[node name="StaticBody3D" type="StaticBody3D" parent="foreground/tree47"] + +[node name="CollisionShape3D" type="CollisionShape3D" parent="foreground/tree47/StaticBody3D"] +shape = SubResource("CapsuleShape3D_rdjax") + [node name="tree48" type="Sprite3D" parent="foreground"] transform = Transform3D(0.0628262, 0, -0.0778002, 0, 0.1, 0, 0.0778002, 0, 0.0628262, 0.652256, 0.119419, -0.795821) billboard = 1 shaded = true texture = ExtResource("2_tcvf7") +[node name="StaticBody3D" type="StaticBody3D" parent="foreground/tree48"] + +[node name="CollisionShape3D" type="CollisionShape3D" parent="foreground/tree48/StaticBody3D"] +shape = SubResource("CapsuleShape3D_rdjax") + [node name="tree49" type="Sprite3D" parent="foreground"] transform = Transform3D(0.0628262, 0, -0.0778002, 0, 0.1, 0, 0.0778002, 0, 0.0628262, 0.258255, 0.108343, -0.901844) billboard = 1 shaded = true texture = ExtResource("6_ijjvr") +[node name="StaticBody3D" type="StaticBody3D" parent="foreground/tree49"] + +[node name="CollisionShape3D" type="CollisionShape3D" parent="foreground/tree49/StaticBody3D"] +shape = SubResource("CapsuleShape3D_rdjax") + [node name="tree50" type="Sprite3D" parent="foreground"] transform = Transform3D(0.0613486, 0, -0.0789706, 0, 0.1, 0, 0.0789706, 0, 0.0613486, 0.441907, 0.111307, -0.605384) billboard = 1 shaded = true texture = ExtResource("7_lwa45") +[node name="StaticBody3D" type="StaticBody3D" parent="foreground/tree50"] + +[node name="CollisionShape3D" type="CollisionShape3D" parent="foreground/tree50/StaticBody3D"] +shape = SubResource("CapsuleShape3D_rdjax") + [node name="tree51" type="Sprite3D" parent="foreground"] transform = Transform3D(0.0628262, 0, -0.0778002, 0, 0.1, 0, 0.0778002, 0, 0.0628262, 0.449119, 0.111307, -0.90325) billboard = 1 shaded = true texture = ExtResource("8_wu13e") +[node name="StaticBody3D" type="StaticBody3D" parent="foreground/tree51"] + +[node name="CollisionShape3D" type="CollisionShape3D" parent="foreground/tree51/StaticBody3D"] +shape = SubResource("CapsuleShape3D_rdjax") + [node name="tree52" type="Sprite3D" parent="foreground"] transform = Transform3D(0.0628262, 0, -0.0778002, 0, 0.1, 0, 0.0778002, 0, 0.0628262, 0.883555, 0.13729, -0.567455) billboard = 1 shaded = true texture = ExtResource("9_4i1d4") +[node name="StaticBody3D" type="StaticBody3D" parent="foreground/tree52"] + +[node name="CollisionShape3D" type="CollisionShape3D" parent="foreground/tree52/StaticBody3D"] +shape = SubResource("CapsuleShape3D_rdjax") + [node name="tree53" type="Sprite3D" parent="foreground"] transform = Transform3D(0.0628262, 0, -0.0778002, 0, 0.1, 0, 0.0778002, 0, 0.0628262, 0.207396, 0.108343, -0.733205) billboard = 1 shaded = true texture = ExtResource("6_ijjvr") +[node name="StaticBody3D" type="StaticBody3D" parent="foreground/tree53"] + +[node name="CollisionShape3D" type="CollisionShape3D" parent="foreground/tree53/StaticBody3D"] +shape = SubResource("CapsuleShape3D_rdjax") + [node name="tree25" type="Sprite3D" parent="foreground"] transform = Transform3D(0.1, 0, 0, 0, 0.1, 0, 0, 0, 0.1, 0.46999, 0.111307, -0.508144) billboard = 1 shaded = true texture = ExtResource("7_lwa45") +[node name="StaticBody3D" type="StaticBody3D" parent="foreground/tree25"] + +[node name="CollisionShape3D" type="CollisionShape3D" parent="foreground/tree25/StaticBody3D"] +shape = SubResource("CapsuleShape3D_rdjax") + [node name="tree26" type="Sprite3D" parent="foreground"] transform = Transform3D(0.1, 0, 0, 0, 0.1, 0, 0, 0, 0.1, 0.112614, 0.111307, -0.65752) billboard = 1 shaded = true texture = ExtResource("8_wu13e") +[node name="StaticBody3D" type="StaticBody3D" parent="foreground/tree26"] + +[node name="CollisionShape3D" type="CollisionShape3D" parent="foreground/tree26/StaticBody3D"] +shape = SubResource("CapsuleShape3D_rdjax") + [node name="tree27" type="Sprite3D" parent="foreground"] transform = Transform3D(0.1, 0, 0, 0, 0.1, 0, 0, 0, 0.1, 0.646804, 0.13729, -0.461916) billboard = 1 shaded = true texture = ExtResource("9_4i1d4") +[node name="StaticBody3D" type="StaticBody3D" parent="foreground/tree27"] + +[node name="CollisionShape3D" type="CollisionShape3D" parent="foreground/tree27/StaticBody3D"] +shape = SubResource("CapsuleShape3D_rdjax") + [node name="tree28" type="Sprite3D" parent="foreground"] transform = Transform3D(0.0559526, 0, 0.0828813, 0, 0.1, 0, -0.0828813, 0, 0.0559526, -0.900771, 0.119419, -0.592793) billboard = 1 shaded = true texture = ExtResource("1_u6vd6") +[node name="StaticBody3D" type="StaticBody3D" parent="foreground/tree28"] + +[node name="CollisionShape3D" type="CollisionShape3D" parent="foreground/tree28/StaticBody3D"] +shape = SubResource("CapsuleShape3D_rdjax") + [node name="tree29" type="Sprite3D" parent="foreground"] transform = Transform3D(0.0559526, 0, 0.0828813, 0, 0.1, 0, -0.0828813, 0, 0.0559526, -0.74172, 0.119096, -0.731858) billboard = 1 shaded = true texture = ExtResource("3_v2fdw") +[node name="StaticBody3D" type="StaticBody3D" parent="foreground/tree29"] + +[node name="CollisionShape3D" type="CollisionShape3D" parent="foreground/tree29/StaticBody3D"] +shape = SubResource("CapsuleShape3D_rdjax") + [node name="tree30" type="Sprite3D" parent="foreground"] transform = Transform3D(0.0559526, 0, 0.0828813, 0, 0.1, 0, -0.0828813, 0, 0.0559526, -0.739281, 0.120625, -0.922587) billboard = 1 shaded = true texture = ExtResource("4_yrcwc") +[node name="StaticBody3D" type="StaticBody3D" parent="foreground/tree30"] + +[node name="CollisionShape3D" type="CollisionShape3D" parent="foreground/tree30/StaticBody3D"] +shape = SubResource("CapsuleShape3D_rdjax") + [node name="tree31" type="Sprite3D" parent="foreground"] transform = Transform3D(0.0559526, 0, 0.0828813, 0, 0.1, 0, -0.0828813, 0, 0.0559526, -0.430205, 0.147986, -1.00701) billboard = 1 shaded = true texture = ExtResource("5_3ynl8") +[node name="StaticBody3D" type="StaticBody3D" parent="foreground/tree31"] + +[node name="CollisionShape3D" type="CollisionShape3D" parent="foreground/tree31/StaticBody3D"] +shape = SubResource("CapsuleShape3D_rdjax") + [node name="tree32" type="Sprite3D" parent="foreground"] transform = Transform3D(0.0559526, 0, 0.0828813, 0, 0.1, 0, -0.0828813, 0, 0.0559526, -0.935996, 0.120625, -0.58507) billboard = 1 shaded = true texture = ExtResource("4_yrcwc") +[node name="StaticBody3D" type="StaticBody3D" parent="foreground/tree32"] + +[node name="CollisionShape3D" type="CollisionShape3D" parent="foreground/tree32/StaticBody3D"] +shape = SubResource("CapsuleShape3D_rdjax") + [node name="tree33" type="Sprite3D" parent="foreground"] transform = Transform3D(0.0559526, 0, 0.0828813, 0, 0.1, 0, -0.0828813, 0, 0.0559526, -0.626919, 0.147986, -0.669496) billboard = 1 shaded = true texture = ExtResource("5_3ynl8") +[node name="StaticBody3D" type="StaticBody3D" parent="foreground/tree33"] + +[node name="CollisionShape3D" type="CollisionShape3D" parent="foreground/tree33/StaticBody3D"] +shape = SubResource("CapsuleShape3D_rdjax") + [node name="tree34" type="Sprite3D" parent="foreground"] transform = Transform3D(0.0559526, 0, 0.0828813, 0, 0.1, 0, -0.0828813, 0, 0.0559526, -0.560079, 0.119419, -0.951965) billboard = 1 shaded = true texture = ExtResource("1_u6vd6") +[node name="StaticBody3D" type="StaticBody3D" parent="foreground/tree34"] + +[node name="CollisionShape3D" type="CollisionShape3D" parent="foreground/tree34/StaticBody3D"] +shape = SubResource("CapsuleShape3D_rdjax") + [node name="tree35" type="Sprite3D" parent="foreground"] transform = Transform3D(0.0559526, 0, 0.0828813, 0, 0.1, 0, -0.0828813, 0, 0.0559526, -0.777209, 0.119419, -0.776313) billboard = 1 shaded = true texture = ExtResource("2_tcvf7") +[node name="StaticBody3D" type="StaticBody3D" parent="foreground/tree35"] + +[node name="CollisionShape3D" type="CollisionShape3D" parent="foreground/tree35/StaticBody3D"] +shape = SubResource("CapsuleShape3D_rdjax") + [node name="tree36" type="Sprite3D" parent="foreground"] transform = Transform3D(0.0559526, 0, 0.0828813, 0, 0.1, 0, -0.0828813, 0, 0.0559526, -0.401028, 0.119096, -1.09103) billboard = 1 shaded = true texture = ExtResource("3_v2fdw") +[node name="StaticBody3D" type="StaticBody3D" parent="foreground/tree36"] + +[node name="CollisionShape3D" type="CollisionShape3D" parent="foreground/tree36/StaticBody3D"] +shape = SubResource("CapsuleShape3D_rdjax") + [node name="tree37" type="Sprite3D" parent="foreground"] transform = Transform3D(0.0559526, 0, 0.0828813, 0, 0.1, 0, -0.0828813, 0, 0.0559526, -0.256982, 0.120625, -1.11966) billboard = 1 shaded = true texture = ExtResource("4_yrcwc") +[node name="StaticBody3D" type="StaticBody3D" parent="foreground/tree37"] + +[node name="CollisionShape3D" type="CollisionShape3D" parent="foreground/tree37/StaticBody3D"] +shape = SubResource("CapsuleShape3D_rdjax") + [node name="tree38" type="Sprite3D" parent="foreground"] transform = Transform3D(0.0559526, 0, 0.0828813, 0, 0.1, 0, -0.0828813, 0, 0.0559526, -0.0315572, 0.147986, -0.987731) billboard = 1 shaded = true texture = ExtResource("5_3ynl8") +[node name="StaticBody3D" type="StaticBody3D" parent="foreground/tree38"] + +[node name="CollisionShape3D" type="CollisionShape3D" parent="foreground/tree38/StaticBody3D"] +shape = SubResource("CapsuleShape3D_rdjax") + [node name="tree39" type="Sprite3D" parent="foreground"] transform = Transform3D(0.0559526, 0, 0.0828813, 0, 0.1, 0, -0.0828813, 0, 0.0559526, -0.49657, 0.111307, -0.763219) billboard = 1 shaded = true texture = ExtResource("7_lwa45") +[node name="StaticBody3D" type="StaticBody3D" parent="foreground/tree39"] + +[node name="CollisionShape3D" type="CollisionShape3D" parent="foreground/tree39/StaticBody3D"] +shape = SubResource("CapsuleShape3D_rdjax") + [node name="tree40" type="Sprite3D" parent="foreground"] transform = Transform3D(0.0559526, 0, 0.0828813, 0, 0.1, 0, -0.0828813, 0, 0.0559526, -0.820336, 0.111307, -0.550602) billboard = 1 shaded = true texture = ExtResource("8_wu13e") +[node name="StaticBody3D" type="StaticBody3D" parent="foreground/tree40"] + +[node name="CollisionShape3D" type="CollisionShape3D" parent="foreground/tree40/StaticBody3D"] +shape = SubResource("CapsuleShape3D_rdjax") + [node name="tree41" type="Sprite3D" parent="foreground"] transform = Transform3D(0.0559526, 0, 0.0828813, 0, 0.1, 0, -0.0828813, 0, 0.0559526, -0.359324, 0.13729, -0.883899) billboard = 1 shaded = true texture = ExtResource("9_4i1d4") +[node name="StaticBody3D" type="StaticBody3D" parent="foreground/tree41"] + +[node name="CollisionShape3D" type="CollisionShape3D" parent="foreground/tree41/StaticBody3D"] +shape = SubResource("CapsuleShape3D_rdjax") + [node name="DirectionalLight3D" type="DirectionalLight3D" parent="."] transform = Transform3D(1, 0, 0, 0, 0.878467, 0.477803, 0, -0.477803, 0.878467, 0, 0.578004, 0.455086) light_color = Color(0.81, 0.49329, 0.4374, 1) @@ -698,7 +1235,7 @@ shaded = true texture = ExtResource("10_my8if") [node name="player" type="Sprite3D" parent="."] -transform = Transform3D(0.04, 0, 0, 0, 0.04, 0, 0, 0, 0.04, 0, 0.116035, 0.10753) +transform = Transform3D(0.04, 0, 0, 0, 0.04, 0, 0, 0, 0.04, -0.0237094, 0.116035, 0.0958161) billboard = 1 shaded = true texture = ExtResource("10_oy1dv") @@ -820,3 +1357,6 @@ texture = ExtResource("26_7nyv4") transform = Transform3D(0.02, 0, 0, 0, -8.74228e-10, -0.02, 0, 0.02, -8.74228e-10, 0.0528325, 0.0607805, -0.0765149) shaded = true texture = ExtResource("26_7nyv4") + +[node name="Player3d" parent="." instance=ExtResource("27_mqdni")] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.110292, 0.0067718, 0.0825893) diff --git a/scenes/props/Player3D.tscn b/scenes/props/Player3D.tscn new file mode 100644 index 0000000..c380cec --- /dev/null +++ b/scenes/props/Player3D.tscn @@ -0,0 +1,37 @@ +[gd_scene load_steps=5 format=3 uid="uid://dbd1niu3tp8y5"] + +[ext_resource type="Texture2D" uid="uid://cvn2p215jq2am" path="res://graphics/testingground/concerned.png" id="1_5jpx2"] +[ext_resource type="Script" path="res://scripts/player_3d.gd" id="1_08wm4"] +[ext_resource type="Script" path="res://scripts/camera_pivot.gd" id="3_drcdp"] + +[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_1vdrh"] +radius = 0.0478421 +height = 0.234557 + +[node name="Player3d" type="Node3D"] + +[node name="CharacterBody3D" type="CharacterBody3D" parent="."] +script = ExtResource("1_08wm4") +SPEED = 0.5 + +[node name="Sprite" type="Sprite3D" parent="CharacterBody3D"] +transform = Transform3D(0.04, 0, 0, 0, 0.04, 0, 0, 0, 0.04, 0, 0.110813, 0) +billboard = 1 +shaded = true +texture = ExtResource("1_5jpx2") + +[node name="CollisionShape3D" type="CollisionShape3D" parent="CharacterBody3D"] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.119886, 0) +shape = SubResource("CapsuleShape3D_1vdrh") + +[node name="CameraPivot" type="Node3D" parent="CharacterBody3D"] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.159723, 0) +script = ExtResource("3_drcdp") +canPitch = true +canYaw = true + +[node name="SubPivot" type="Node3D" parent="CharacterBody3D/CameraPivot"] + +[node name="Camera3D" type="Camera3D" parent="CharacterBody3D/CameraPivot/SubPivot"] +transform = Transform3D(1, 0, 0, 0, 0.871025, 0.491238, 0, -0.491238, 0.871025, 0, 0.658355, 1.24487) +fov = 28.5 diff --git a/scripts/camera_pivot.gd b/scripts/camera_pivot.gd new file mode 100644 index 0000000..6608b21 --- /dev/null +++ b/scripts/camera_pivot.gd @@ -0,0 +1,22 @@ +extends Node3D + +@export var canPitch: bool = false +@export var canYaw: bool = false +@export var rotateSpeed: float = 0.003 +@onready var sub_pivot: Node3D = $SubPivot + +func _ready() -> void: + Input.mouse_mode = Input.MOUSE_MODE_CAPTURED + +func _input(event): + if event.is_action_pressed("click"): + if Input.mouse_mode == Input.MOUSE_MODE_VISIBLE: + Input.mouse_mode = Input.MOUSE_MODE_CAPTURED + + if event.is_action_pressed("ui_cancel"): + Input.mouse_mode = Input.MOUSE_MODE_VISIBLE + + if event is InputEventMouseMotion: + if Input.mouse_mode != Input.MOUSE_MODE_CAPTURED: return + if canYaw: sub_pivot.rotate_x(event.relative.y * -rotateSpeed) + if canPitch: rotate_y(event.relative.x * -rotateSpeed) diff --git a/scripts/player_3d.gd b/scripts/player_3d.gd new file mode 100644 index 0000000..1bec08c --- /dev/null +++ b/scripts/player_3d.gd @@ -0,0 +1,30 @@ +extends CharacterBody3D + + +@export var SPEED = 1.0 + +@onready var camera_3d: Camera3D = $CameraPivot/SubPivot/Camera3D + + +func _physics_process(delta: float) -> void: + # Add the gravity. + if not is_on_floor(): + velocity += get_gravity() * delta + + # Handle jump. + #if Input.is_action_just_pressed("ui_accept") and is_on_floor(): + # velocity.y = JUMP_VELOCITY + + # Get the input direction and handle the movement/deceleration. + # As good practice, you should replace UI actions with custom gameplay actions. + var input_dir := Input.get_vector("move_left", "move_right", "move_up", "move_down") + input_dir = input_dir.rotated(-camera_3d.global_rotation.y) + var direction := (transform.basis * Vector3(input_dir.x, 0, input_dir.y)).normalized() + if direction: + velocity.x = direction.x * SPEED + velocity.z = direction.z * SPEED + else: + velocity.x = move_toward(velocity.x, 0, SPEED) + velocity.z = move_toward(velocity.z, 0, SPEED) + + move_and_slide()