This commit is contained in:
Rendo 2025-11-12 15:39:34 +05:00
commit aa4046e7dc
6 changed files with 12 additions and 10 deletions

View file

@ -1,15 +1,17 @@
[gd_scene load_steps=5 format=3 uid="uid://bjxjcx2qu16q5"]
[ext_resource type="Script" uid="uid://bjnv2g1ni0525" path="res://src/draggable_object.gd" id="1_vcwhe"]
[ext_resource type="Script" uid="uid://bjnv2g1ni0525" path="res://src/drag/draggable_object.gd" id="1_vcwhe"]
[sub_resource type="SphereShape3D" id="SphereShape3D_vcwhe"]
radius = 0.49570328
[sub_resource type="SphereShape3D" id="SphereShape3D_18ddp"]
radius = 0.25
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_vcwhe"]
radius = 0.1
height = 0.7
[sub_resource type="SphereMesh" id="SphereMesh_18ddp"]
radius = 0.25
[sub_resource type="CylinderMesh" id="CylinderMesh_627mb"]
top_radius = 0.1
bottom_radius = 0.1
height = 0.5
[node name="DraggableObject" type="Area3D"]
@ -18,10 +20,10 @@ script = ExtResource("1_vcwhe")
[node name="DragShape" type="CollisionShape3D" parent="."]
shape = SubResource("SphereShape3D_vcwhe")
[node name="DragArea" type="Area3D" parent="."]
[node name="InteractionArea" type="Area3D" parent="."]
[node name="CollisionShape3D" type="CollisionShape3D" parent="DragArea"]
shape = SubResource("SphereShape3D_18ddp")
[node name="CollisionShape3D" type="CollisionShape3D" parent="InteractionArea"]
shape = SubResource("CapsuleShape3D_vcwhe")
[node name="MeshInstance3D" type="MeshInstance3D" parent="."]
mesh = SubResource("SphereMesh_18ddp")
mesh = SubResource("CylinderMesh_627mb")