[gd_scene load_steps=7 format=2]

[ext_resource path="res://Objects/Player/bruh.gd" type="Script" id=1]
[ext_resource path="res://UI/BlackFade.tscn" type="PackedScene" id=2]
[ext_resource path="res://UI/HUD/HUD.tscn" type="PackedScene" id=3]

[sub_resource type="CylinderMesh" id=1]
radial_segments = 32
rings = 1

[sub_resource type="BoxShape" id=2]
extents = Vector3( 0.58, 0.901229, 0.621 )

[sub_resource type="SphereShape" id=3]
radius = 0.638833

[node name="Joshua" type="KinematicBody" groups=["entity", "player"]]
pause_mode = 1
script = ExtResource( 1 )

[node name="Lookingat" type="RayCast" parent="."]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.6, -0.707529 )
enabled = true
cast_to = Vector3( 0, 0, -2 )

[node name="CeilingCheck" type="RayCast" parent="."]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0.416098, 1.69616, -0.494192 )
enabled = true
cast_to = Vector3( -1, 0, 1 )

[node name="MeshInstance" type="MeshInstance" parent="."]
transform = Transform( 0.5, 0, 0, 0, 1, 0, 0, 0, 0.5, 0, 0, 0 )
mesh = SubResource( 1 )

[node name="Sprite3D" type="Sprite3D" parent="MeshInstance"]
transform = Transform( 0.0266357, 0, -0.999446, 0, 0.4, 0, 0.799556, 0, 0.0332947, 1.02931, 0.0540993, -1.06392 )

[node name="CollisionShape" type="CollisionShape" parent="."]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.0998765, 0 )
shape = SubResource( 2 )

[node name="CollisionShape2" type="CollisionShape" parent="."]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.45619, 0 )
shape = SubResource( 3 )

[node name="Head" type="Spatial" parent="."]

[node name="Camera" type="Camera" parent="Head"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.8, 0.315027 )
current = true
far = 80000.0

[node name="Position3D" type="Position3D" parent="Head/Camera"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -1 )

[node name="CanvasLayer" type="CanvasLayer" parent="Head"]

[node name="HUD" parent="Head/CanvasLayer" instance=ExtResource( 3 )]

[node name="BlackFade" parent="Head/CanvasLayer" instance=ExtResource( 2 )]
to = false

[node name="Flashlight" type="SpotLight" parent="Head"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.295395, -0.495492 )
spot_range = 40.0
spot_attenuation = 3.249
spot_angle_attenuation = 0.707107

[node name="RayCast" type="RayCast" parent="."]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.846656, 0 )
enabled = true
