抱起物品

This commit is contained in:
2026-10-03 18:04:07 +08:00
parent bc90e6d7b2
commit 6f3c89a4d2
17 changed files with 635 additions and 44 deletions
+24
View File
@@ -0,0 +1,24 @@
[gd_scene load_steps=5 format=3]
[ext_resource type="Script" path="res://world/items/carryable.gd" id="1_carryable"]
[sub_resource type="BoxMesh" id="BoxMesh_body"]
size = Vector3(0.6, 0.6, 0.6)
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_box"]
albedo_color = Color(0.92, 0.6, 0.25, 1)
roughness = 0.7
[sub_resource type="BoxShape3D" id="BoxShape3D_body"]
size = Vector3(0.6, 0.6, 0.6)
[node name="CarryableBox" type="RigidBody3D"]
mass = 2.0
script = ExtResource("1_carryable")
[node name="Mesh" type="MeshInstance3D" parent="."]
mesh = SubResource("BoxMesh_body")
surface_material_override/0 = SubResource("StandardMaterial3D_box")
[node name="Collision" type="CollisionShape3D" parent="."]
shape = SubResource("BoxShape3D_body")