gmtk24/scenes/table.tscn

80 lines
3.2 KiB
Plaintext
Raw Permalink Normal View History

2024-08-19 23:33:24 +02:00
[gd_scene load_steps=10 format=3 uid="uid://d02cqylu3xwos"]
[ext_resource type="PackedScene" uid="uid://diwlyi146eroa" path="res://models/table.fbx" id="1_1soa3"]
2024-08-19 20:32:19 +02:00
[ext_resource type="Script" path="res://scripts/Table.cs" id="1_cb7s1"]
2024-08-20 01:08:47 +02:00
[ext_resource type="Material" uid="uid://bq5oqyuwekryv" path="res://materials/building_block.tres" id="2_1s35y"]
[ext_resource type="Material" uid="uid://pu02smf107o8" path="res://materials/building_block_hover.tres" id="3_m64id"]
2024-08-19 23:33:24 +02:00
[ext_resource type="Script" path="res://scripts/Orbit.cs" id="4_nyqjn"]
[sub_resource type="BoxShape3D" id="BoxShape3D_iiew7"]
2024-08-19 22:27:26 +02:00
size = Vector3(1.26587, 1.10037, 2.3989)
2024-08-19 20:32:19 +02:00
[sub_resource type="BoxShape3D" id="BoxShape3D_kn6mn"]
2024-08-20 00:50:55 +02:00
size = Vector3(5, 5, 5)
2024-08-19 20:32:19 +02:00
[sub_resource type="BoxShape3D" id="BoxShape3D_5k7xn"]
2024-08-20 00:50:55 +02:00
size = Vector3(5, 5, 5)
2024-08-19 20:32:19 +02:00
[sub_resource type="BoxShape3D" id="BoxShape3D_3kmm7"]
size = Vector3(1.3, 0.2, 2.4)
2024-08-19 23:33:24 +02:00
[node name="table" type="RigidBody3D" node_paths=PackedStringArray("SpawnPoint", "Orbit")]
2024-08-19 22:27:26 +02:00
collision_layer = 7
collision_mask = 7
2024-08-19 23:33:24 +02:00
lock_rotation = true
freeze = true
2024-08-19 20:32:19 +02:00
script = ExtResource("1_cb7s1")
BlockMaterial = ExtResource("2_1s35y")
2024-08-19 23:33:24 +02:00
BlockHoverMaterial = ExtResource("3_m64id")
2024-08-19 20:32:19 +02:00
SpawnPoint = NodePath("SpawnPoint")
2024-08-19 23:33:24 +02:00
BlockMask = 10
Orbit = NodePath("Orbit")
2024-08-19 22:27:26 +02:00
InteractName = "build"
[node name="table" parent="." instance=ExtResource("1_1soa3")]
2024-08-19 20:32:19 +02:00
[node name="TableCollider" type="CollisionShape3D" parent="."]
2024-08-19 22:27:26 +02:00
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.00354004, 0.55693, -0.00126699)
shape = SubResource("BoxShape3D_iiew7")
2024-08-19 20:32:19 +02:00
[node name="SpawnPoint" type="Node3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.7677, 0)
2024-08-19 22:27:26 +02:00
[node name="TableWalls" type="StaticBody3D" parent="."]
collision_layer = 2
collision_mask = 2
[node name="Wall1" type="CollisionShape3D" parent="TableWalls"]
2024-08-20 00:50:55 +02:00
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 3.6, 3.66627)
2024-08-19 20:32:19 +02:00
shape = SubResource("BoxShape3D_kn6mn")
2024-08-19 22:27:26 +02:00
[node name="Wall2" type="CollisionShape3D" parent="TableWalls"]
2024-08-20 00:50:55 +02:00
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 3.6, -3.69933)
2024-08-19 20:32:19 +02:00
shape = SubResource("BoxShape3D_kn6mn")
2024-08-19 22:27:26 +02:00
[node name="Wall3" type="CollisionShape3D" parent="TableWalls"]
2024-08-20 00:50:55 +02:00
transform = Transform3D(-4.37114e-08, 0, 1, 0, 1, 0, -1, 0, -4.37114e-08, -3.1173, 3.6, 0)
2024-08-19 20:32:19 +02:00
shape = SubResource("BoxShape3D_5k7xn")
2024-08-19 22:27:26 +02:00
[node name="Wall4" type="CollisionShape3D" parent="TableWalls"]
2024-08-20 00:50:55 +02:00
transform = Transform3D(-4.37114e-08, 0, 1, 0, 1, 0, -1, 0, -4.37114e-08, 3.1173, 3.6, 0)
2024-08-19 20:32:19 +02:00
shape = SubResource("BoxShape3D_5k7xn")
2024-08-19 22:27:26 +02:00
[node name="Roof" type="CollisionShape3D" parent="TableWalls"]
2024-08-19 20:32:19 +02:00
transform = Transform3D(-1, 0, -8.74228e-08, 0, 1, 0, 8.74228e-08, 0, -1, 0, 6, 0)
shape = SubResource("BoxShape3D_3kmm7")
2024-08-19 23:33:24 +02:00
2024-08-20 00:50:55 +02:00
[node name="Orbit" type="Node3D" parent="." node_paths=PackedStringArray("Camera", "Hand")]
2024-08-19 23:33:24 +02:00
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.12311, 0)
script = ExtResource("4_nyqjn")
Camera = NodePath("OrbitCamera")
2024-08-20 00:50:55 +02:00
Hand = NodePath("OrbitCamera/OrbitHand")
2024-08-19 23:33:24 +02:00
[node name="OrbitCamera" type="Camera3D" parent="Orbit"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 1)
2024-08-20 00:50:55 +02:00
[node name="OrbitHand" type="Node3D" parent="Orbit/OrbitCamera"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.3, -0.1, -0.26)
2024-08-19 23:33:24 +02:00
[connection signal="Interacted" from="." to="." method="Interact"]