Files
wretched/entities/grabject.tscn
2025-08-12 04:49:06 -04:00

54 lines
1.8 KiB
Plaintext

[gd_scene load_steps=6 format=3 uid="uid://cpjkxxf2nlpd1"]
[ext_resource type="Script" uid="uid://bx4wyybpwqwu0" path="res://entities/grabject.gd" id="1_xvy3x"]
[ext_resource type="ArrayMesh" uid="uid://w0jl7jy3oufh" path="res://models/props/mug.res" id="2_myur1"]
[ext_resource type="ArrayMesh" uid="uid://cnumt37jaqavc" path="res://models/props/mug_full_line.res" id="3_jg5js"]
[sub_resource type="CylinderShape3D" id="CylinderShape3D_wyf5s"]
height = 0.14
radius = 0.08
[sub_resource type="BoxShape3D" id="BoxShape3D_fvtfi"]
size = Vector3(0.06, 0.1, 0.038)
[node name="Grabject" type="RigidBody3D"]
collision_layer = 11
collision_mask = 3
freeze = true
contact_monitor = true
max_contacts_reported = 3
script = ExtResource("1_xvy3x")
[node name="mesh_mugge" type="MeshInstance3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.08, 0)
mesh = ExtResource("2_myur1")
skeleton = NodePath("")
[node name="coffee" type="MeshInstance3D" parent="mesh_mugge"]
visible = false
mesh = ExtResource("3_jg5js")
skeleton = NodePath("../..")
[node name="shape_mugge" type="CollisionShape3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.07, 0)
shape = SubResource("CylinderShape3D_wyf5s")
disabled = true
debug_fill = false
[node name="shape_mugge_secondary" type="CollisionShape3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.11, 0.072, 0)
shape = SubResource("BoxShape3D_fvtfi")
disabled = true
debug_fill = false
[node name="DelayTimer" type="Timer" parent="."]
process_callback = 0
one_shot = true
[node name="SleepTimer" type="Timer" parent="."]
one_shot = true
[connection signal="body_entered" from="." to="." method="handle_collision"]
[connection signal="timeout" from="DelayTimer" to="." method="hold2"]
[connection signal="timeout" from="SleepTimer" to="." method="sleep"]