[gd_scene load_steps=12 format=3 uid="uid://cbxlfnlmgdvsq"]

[ext_resource type="Script" uid="uid://b1tbovuphat7d" path="res://levels/grunkbeast_test/procedural_grunkbeast_test.gd" id="1_ixhpa"]
[ext_resource type="Script" uid="uid://bukihqt1lybnx" path="res://src/util/frame_skipper.gd" id="2_82w0n"]
[ext_resource type="PackedScene" uid="uid://d2664rpg4losx" path="res://src/world/grunk_beast/procedural_grunk_beast/procedural_grunk_beast.tscn" id="3_b4iwh"]
[ext_resource type="Script" uid="uid://cpt8dy0csa3eu" path="res://levels/grunkbeast_test/fixed_camera.gd" id="4_32imj"]

[sub_resource type="ProceduralSkyMaterial" id="ProceduralSkyMaterial_goufh"]

[sub_resource type="Sky" id="Sky_pka60"]
sky_material = SubResource("ProceduralSkyMaterial_goufh")

[sub_resource type="Environment" id="Environment_bg05n"]
background_mode = 2
sky = SubResource("Sky_pka60")

[sub_resource type="PlaneMesh" id="PlaneMesh_mn2wa"]
size = Vector2(50, 50)

[sub_resource type="WorldBoundaryShape3D" id="WorldBoundaryShape3D_mn2wa"]

[sub_resource type="CylinderMesh" id="CylinderMesh_4n07c"]
top_radius = 2.0
bottom_radius = 2.0
height = 1.0

[sub_resource type="CylinderShape3D" id="CylinderShape3D_6yv42"]
height = 1.0
radius = 2.0

[node name="ProceduralGrunkbeastTest" type="Node3D"]
script = ExtResource("1_ixhpa")

[node name="DirectionalLight3D" type="DirectionalLight3D" parent="."]
transform = Transform3D(0.866025, -0.156955, -0.474726, 0.5, 0.271854, 0.82225, 0, -0.949453, 0.31391, 0, 0, 0)

[node name="WorldEnvironment" type="WorldEnvironment" parent="."]
environment = SubResource("Environment_bg05n")

[node name="WorldFloor" type="StaticBody3D" parent="."]

[node name="MeshInstance3D" type="MeshInstance3D" parent="WorldFloor"]
mesh = SubResource("PlaneMesh_mn2wa")
skeleton = NodePath("../..")

[node name="CollisionShape3D" type="CollisionShape3D" parent="WorldFloor"]
shape = SubResource("WorldBoundaryShape3D_mn2wa")

[node name="Cylinder" type="StaticBody3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -4.5, 1, -4.5)

[node name="MeshInstance3D" type="MeshInstance3D" parent="Cylinder"]
mesh = SubResource("CylinderMesh_4n07c")

[node name="CollisionShape3D" type="CollisionShape3D" parent="Cylinder"]
shape = SubResource("CylinderShape3D_6yv42")

[node name="FrameSkipper" type="Node" parent="."]
script = ExtResource("2_82w0n")
frame_skip = 3

[node name="GrunkBeast" parent="FrameSkipper" instance=ExtResource("3_b4iwh")]
unique_name_in_owner = true
move_speed = 8.0
step_time = 0.06

[node name="Camera3D" type="Camera3D" parent="." node_paths=PackedStringArray("target")]
transform = Transform3D(0.252101, -0.522855, 0.81429, 0, 0.841469, 0.540306, -0.967701, -0.136212, 0.212135, 6.63551, 7.43415, 1.1904)
script = ExtResource("4_32imj")
target = NodePath("../FrameSkipper/GrunkBeast")
