[gd_scene load_steps=10 format=2]

[ext_resource path="res://3d_platforma/texture_08.png" type="Texture" id=1]
[ext_resource path="res://3d_platforma/sqare_norm.png" type="Texture" id=2]

[sub_resource type="SpatialMaterial" id=1]
resource_name = "CheckerGrid"
albedo_color = Color( 0.85, 0.85, 0.85, 1 )
albedo_texture = ExtResource( 1 )
roughness = 0.85
uv1_triplanar = true

[sub_resource type="Animation" id=2]
resource_name = "move"
length = 30.0
loop = true
tracks/0/type = "value"
tracks/0/path = NodePath(".:translation:y")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/keys = {
"times": PoolRealArray( 0, 10, 30 ),
"transitions": PoolRealArray( 1, 1, 1 ),
"update": 0,
"values": [ 0.0, 10.0, 0.0 ]
}

[sub_resource type="BoxShape" id=3]

[sub_resource type="CubeMesh" id=4]

[sub_resource type="OpenSimplexNoise" id=5]
octaves = 2
period = 0.8

[sub_resource type="NoiseTexture" id=6]
flags = 3
width = 32
height = 32
noise = SubResource( 5 )

[sub_resource type="SpatialMaterial" id=7]
albedo_color = Color( 0.603922, 0.0235294, 0.619608, 1 )
roughness = 0.25
roughness_texture = SubResource( 6 )
normal_enabled = true
normal_scale = 1.0
normal_texture = ExtResource( 2 )
uv1_scale = Vector3( 3, 3, 3 )
uv1_triplanar = true

[node name="platforms_slow" type="Spatial"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.1, 0 )

[node name="thin" type="CSGBox" parent="."]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -1, -12 )
use_collision = true
width = 4.0
height = 0.2
depth = 10.0
material = SubResource( 1 )

[node name="ramp" type="CSGBox" parent="."]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.4, -22 )
use_collision = true
width = 4.0
height = 1.0
depth = 10.0
material = SubResource( 1 )

[node name="lift" type="Spatial" parent="."]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.4, -30 )

[node name="platform" type="CSGBox" parent="lift"]
use_collision = true
width = 4.0
height = 1.0
depth = 4.0
material = SubResource( 1 )

[node name="AnimationPlayer" type="AnimationPlayer" parent="lift/platform"]
autoplay = "move"
anims/move = SubResource( 2 )

[node name="lego" type="StaticBody" parent="."]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -5, -1.9, -8 )
__meta__ = {
"_edit_group_": true
}

[node name="CollisionShape" type="CollisionShape" parent="lego"]
shape = SubResource( 3 )

[node name="MeshInstance" type="MeshInstance" parent="lego"]
mesh = SubResource( 4 )
material/0 = SubResource( 7 )

[node name="CSGPolygon" type="CSGPolygon" parent="."]
transform = Transform( 1, 0, 0, 0, -4.37114e-08, -1, 0, 1, -4.37114e-08, 0, 1, -12 )
use_collision = true
polygon = PoolVector2Array( 3, -4, 3, 1, 4.15364, 1.29316, 4, -4 )
mode = 1
spin_degrees = 360.0
spin_sides = 16
material = SubResource( 1 )
