diff options
Diffstat (limited to 'prefab')
-rw-r--r-- | prefab/player.tscn | 16 | ||||
-rw-r--r-- | prefab/rock.tscn | 9 |
2 files changed, 19 insertions, 6 deletions
diff --git a/prefab/player.tscn b/prefab/player.tscn index b4f8630..809c557 100644 --- a/prefab/player.tscn +++ b/prefab/player.tscn @@ -1,4 +1,4 @@ -[gd_scene load_steps=5 format=3 uid="uid://dsq68sqy2ldjm"] +[gd_scene load_steps=6 format=3 uid="uid://dsq68sqy2ldjm"] [ext_resource type="Script" path="res://scripts/player.gd" id="1_l6xtg"] [ext_resource type="PackedScene" uid="uid://wmf2eu0uuhrg" path="res://addons/third-person-camera/third_person_camera/ThirdPersonCamera.tscn" id="1_stkca"] @@ -9,6 +9,9 @@ size = Vector3(1, 2, 1) [sub_resource type="BoxMesh" id="BoxMesh_wkmld"] size = Vector3(1, 2, 1) +[sub_resource type="BoxShape3D" id="BoxShape3D_eybym"] +size = Vector3(1.28475, 2, 1) + [node name="Player" type="CharacterBody3D"] script = ExtResource("1_l6xtg") @@ -20,3 +23,14 @@ shape = SubResource("BoxShape3D_ibgtc") mesh = SubResource("BoxMesh_wkmld") [node name="ThirdPersonCamera" parent="." instance=ExtResource("1_stkca")] + +[node name="Picker" type="Area3D" parent="."] +collision_layer = 2 +collision_mask = 2 + +[node name="PickerBox" type="CollisionShape3D" parent="Picker"] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, -1) +shape = SubResource("BoxShape3D_eybym") + +[node name="Holder" type="Node3D" parent="."] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 3, 0) diff --git a/prefab/rock.tscn b/prefab/rock.tscn index d5e8828..d6786da 100644 --- a/prefab/rock.tscn +++ b/prefab/rock.tscn @@ -4,12 +4,11 @@ [sub_resource type="SphereMesh" id="SphereMesh_l2tu3"] -[node name="rock" type="Node3D"] +[node name="Rock" type="RigidBody3D"] +collision_layer = 3 -[node name="StaticBody3D" type="StaticBody3D" parent="."] - -[node name="CollisionShape3D" type="CollisionShape3D" parent="StaticBody3D"] +[node name="CollisionShape3D" type="CollisionShape3D" parent="."] shape = SubResource("SphereShape3D_os5og") -[node name="MeshInstance3D" type="MeshInstance3D" parent="StaticBody3D/CollisionShape3D"] +[node name="MeshInstance3D" type="MeshInstance3D" parent="CollisionShape3D"] mesh = SubResource("SphereMesh_l2tu3") |