97 lines
3.8 KiB
Plaintext
97 lines
3.8 KiB
Plaintext
[gd_scene load_steps=8 format=3 uid="uid://k0hkmhdvbq1d"]
|
|
|
|
[ext_resource type="PhysicsMaterial" uid="uid://b70a1fldvoovb" path="res://cubes/tile/tile_physics.tres" id="1_ug2ho"]
|
|
[ext_resource type="Script" path="res://cubes/tile/cube_tile.gd" id="2_auu22"]
|
|
[ext_resource type="PackedScene" uid="uid://bpwwm2e0iw0ff" path="res://cubes/physics/cube_blue_unkillable.blend" id="3_fcmpy"]
|
|
[ext_resource type="Script" path="res://cubes/tile/track_parent.gd" id="4_jl1mc"]
|
|
[ext_resource type="Script" path="res://cubes/tile/tile_push.gd" id="5_u1k06"]
|
|
|
|
[sub_resource type="BoxShape3D" id="BoxShape3D_xx2ys"]
|
|
size = Vector3(3, 3, 3)
|
|
|
|
[sub_resource type="BoxShape3D" id="BoxShape3D_amaqk"]
|
|
size = Vector3(0.5, 0.1, 0.5)
|
|
|
|
[node name="cube_tile" type="RigidBody3D" node_paths=PackedStringArray("mesh", "colliders")]
|
|
collision_layer = 9
|
|
collision_mask = 0
|
|
physics_material_override = ExtResource("1_ug2ho")
|
|
freeze = true
|
|
freeze_mode = 1
|
|
script = ExtResource("2_auu22")
|
|
recursive = true
|
|
mesh = [NodePath("mesh_objective")]
|
|
colliders = [NodePath("CollisionShape3D"), NodePath("Area3D/CollisionShape3D"), NodePath("Area3D2/CollisionShape3D"), NodePath("Area3D3/CollisionShape3D"), NodePath("Area3D4/CollisionShape3D"), NodePath("Area3D5/CollisionShape3D"), NodePath("Area3D6/CollisionShape3D")]
|
|
|
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
|
|
shape = SubResource("BoxShape3D_xx2ys")
|
|
|
|
[node name="mesh_objective" type="Node3D" parent="."]
|
|
transform = Transform3D(1.5, 0, 0, 0, 1.5, 0, 0, 0, 1.5, 0, 0, 0)
|
|
|
|
[node name="cube_blue_unkillable" parent="mesh_objective" instance=ExtResource("3_fcmpy")]
|
|
top_level = true
|
|
script = ExtResource("4_jl1mc")
|
|
|
|
[node name="Area3D" type="Area3D" parent="."]
|
|
transform = Transform3D(-4.37114e-08, 1, 0, -1, -4.37114e-08, 0, 0, 0, 1, 1.5, 0, 0)
|
|
collision_layer = 0
|
|
collision_mask = 4
|
|
script = ExtResource("5_u1k06")
|
|
|
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="Area3D"]
|
|
shape = SubResource("BoxShape3D_amaqk")
|
|
|
|
[node name="Area3D2" type="Area3D" parent="."]
|
|
transform = Transform3D(4.37114e-08, -1, 8.74228e-08, -1, -4.37114e-08, 0, 3.82137e-15, -8.74228e-08, -1, -1.5, 0, 0)
|
|
collision_layer = 0
|
|
collision_mask = 4
|
|
script = ExtResource("5_u1k06")
|
|
|
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="Area3D2"]
|
|
shape = SubResource("BoxShape3D_amaqk")
|
|
|
|
[node name="Area3D3" type="Area3D" parent="."]
|
|
transform = Transform3D(1.91069e-15, -4.37114e-08, -1, -1, -4.37114e-08, 0, -4.37114e-08, 1, -4.37114e-08, 0, 0, 1.5)
|
|
collision_layer = 0
|
|
collision_mask = 4
|
|
script = ExtResource("5_u1k06")
|
|
|
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="Area3D3"]
|
|
shape = SubResource("BoxShape3D_amaqk")
|
|
|
|
[node name="Area3D4" type="Area3D" parent="."]
|
|
transform = Transform3D(1.91069e-15, -4.37114e-08, 1, -1, -4.37114e-08, 0, 4.37114e-08, -1, -4.37114e-08, 0, 0, -1.5)
|
|
collision_layer = 0
|
|
collision_mask = 4
|
|
script = ExtResource("5_u1k06")
|
|
|
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="Area3D4"]
|
|
shape = SubResource("BoxShape3D_amaqk")
|
|
|
|
[node name="Area3D5" type="Area3D" parent="."]
|
|
transform = Transform3D(-4.37114e-08, 0, 1, 0, 1, 0, -1, 0, -4.37114e-08, 0, 1.5, 0)
|
|
collision_layer = 0
|
|
collision_mask = 4
|
|
script = ExtResource("5_u1k06")
|
|
|
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="Area3D5"]
|
|
shape = SubResource("BoxShape3D_amaqk")
|
|
|
|
[node name="Area3D6" type="Area3D" parent="."]
|
|
transform = Transform3D(4.37114e-08, 3.82137e-15, 1, 8.74228e-08, -1, 0, 1, 8.74228e-08, -4.37114e-08, 0, -1.5, 0)
|
|
collision_layer = 0
|
|
collision_mask = 4
|
|
script = ExtResource("5_u1k06")
|
|
|
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="Area3D6"]
|
|
shape = SubResource("BoxShape3D_amaqk")
|
|
|
|
[node name="raycast_wall" type="RayCast3D" parent="."]
|
|
|
|
[node name="raycast_recursive" type="RayCast3D" parent="."]
|
|
collision_mask = 8
|
|
|
|
[node name="raycast_ground" type="RayCast3D" parent="."]
|
|
target_position = Vector3(0, -2, 0)
|