[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"] [ext_resource type="Script" path="res://scripts/Table.cs" id="1_cb7s1"] [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"] [ext_resource type="Script" path="res://scripts/Orbit.cs" id="4_nyqjn"] [sub_resource type="BoxShape3D" id="BoxShape3D_iiew7"] size = Vector3(1.26587, 1.10037, 2.3989) [sub_resource type="BoxShape3D" id="BoxShape3D_kn6mn"] size = Vector3(5, 5, 5) [sub_resource type="BoxShape3D" id="BoxShape3D_5k7xn"] size = Vector3(5, 5, 5) [sub_resource type="BoxShape3D" id="BoxShape3D_3kmm7"] size = Vector3(1.3, 0.2, 2.4) [node name="table" type="RigidBody3D" node_paths=PackedStringArray("SpawnPoint", "Orbit")] collision_layer = 7 collision_mask = 7 lock_rotation = true freeze = true script = ExtResource("1_cb7s1") BlockMaterial = ExtResource("2_1s35y") BlockHoverMaterial = ExtResource("3_m64id") SpawnPoint = NodePath("SpawnPoint") BlockMask = 10 Orbit = NodePath("Orbit") InteractName = "build" [node name="table" parent="." instance=ExtResource("1_1soa3")] [node name="TableCollider" type="CollisionShape3D" parent="."] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.00354004, 0.55693, -0.00126699) shape = SubResource("BoxShape3D_iiew7") [node name="SpawnPoint" type="Node3D" parent="."] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.7677, 0) [node name="TableWalls" type="StaticBody3D" parent="."] collision_layer = 2 collision_mask = 2 [node name="Wall1" type="CollisionShape3D" parent="TableWalls"] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 3.6, 3.66627) shape = SubResource("BoxShape3D_kn6mn") [node name="Wall2" type="CollisionShape3D" parent="TableWalls"] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 3.6, -3.69933) shape = SubResource("BoxShape3D_kn6mn") [node name="Wall3" type="CollisionShape3D" parent="TableWalls"] transform = Transform3D(-4.37114e-08, 0, 1, 0, 1, 0, -1, 0, -4.37114e-08, -3.1173, 3.6, 0) shape = SubResource("BoxShape3D_5k7xn") [node name="Wall4" type="CollisionShape3D" parent="TableWalls"] transform = Transform3D(-4.37114e-08, 0, 1, 0, 1, 0, -1, 0, -4.37114e-08, 3.1173, 3.6, 0) shape = SubResource("BoxShape3D_5k7xn") [node name="Roof" type="CollisionShape3D" parent="TableWalls"] transform = Transform3D(-1, 0, -8.74228e-08, 0, 1, 0, 8.74228e-08, 0, -1, 0, 6, 0) shape = SubResource("BoxShape3D_3kmm7") [node name="Orbit" type="Node3D" parent="." node_paths=PackedStringArray("Camera", "Hand")] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.12311, 0) script = ExtResource("4_nyqjn") Camera = NodePath("OrbitCamera") Hand = NodePath("OrbitCamera/OrbitHand") [node name="OrbitCamera" type="Camera3D" parent="Orbit"] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 1) [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) [connection signal="Interacted" from="." to="." method="Interact"]