Files
3D-Character-Controller-Tem…/scenes/main.tscn
2023-10-26 15:27:25 +02:00

65 lines
2.3 KiB
Plaintext

[gd_scene load_steps=7 format=3 uid="uid://dgfh1lgxud87u"]
[ext_resource type="PackedScene" uid="uid://c4orppao35wg6" path="res://prefabs/character.tscn" id="2_v34ds"]
[ext_resource type="Script" path="res://src/spawner.gd" id="3_xxi2i"]
[sub_resource type="GDScript" id="GDScript_12xd3"]
script/source = "extends Node3D
func _ready() -> void:
Input.mouse_mode = Input.MOUSE_MODE_CAPTURED
"
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_xxbnc"]
albedo_color = Color(0.266667, 0.145098, 0.0823529, 1)
[sub_resource type="PlaneMesh" id="PlaneMesh_uelfv"]
material = SubResource("StandardMaterial3D_xxbnc")
size = Vector2(50, 50)
[sub_resource type="BoxShape3D" id="BoxShape3D_vbj2x"]
size = Vector3(50, 1, 50)
[node name="Main" type="Node3D"]
script = SubResource("GDScript_12xd3")
[node name="DirectionalLight3D" type="DirectionalLight3D" parent="."]
transform = Transform3D(0.276457, -0.764665, 0.582116, 0.11662, 0.62794, 0.769474, -0.953924, -0.14484, 0.262774, 0, 0, 0)
light_energy = 2.0
shadow_enabled = true
directional_shadow_fade_start = 1.0
directional_shadow_max_distance = 50.0
[node name="Spawner" type="Node3D" parent="."]
script = ExtResource("3_xxi2i")
object_to_spawn = ExtResource("2_v34ds")
[node name="CSGMesh3D" type="CSGMesh3D" parent="."]
mesh = SubResource("PlaneMesh_uelfv")
[node name="StaticBody3D" type="StaticBody3D" parent="CSGMesh3D"]
[node name="CollisionShape3D" type="CollisionShape3D" parent="CSGMesh3D/StaticBody3D"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.5, 0)
shape = SubResource("BoxShape3D_vbj2x")
[node name="CSGCombiner3D" type="CSGCombiner3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.5, 0)
use_collision = true
[node name="Box" type="CSGBox3D" parent="CSGCombiner3D"]
[node name="Box5" type="CSGBox3D" parent="CSGCombiner3D"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 4.37539, 1.21157, -5.02753)
[node name="Box2" type="CSGBox3D" parent="CSGCombiner3D"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.5, 0.5, 0.5)
[node name="Box4" type="CSGBox3D" parent="CSGCombiner3D"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 4.06635, 1.17009, -1.15682)
size = Vector3(1, 1, 4.31364)
[node name="Box3" type="CSGBox3D" parent="CSGCombiner3D"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 2.15636, 1.09924, 0.824171)
size = Vector3(3.28895, 0.716575, 1)