diff options
Diffstat (limited to 'prefab')
-rw-r--r-- | prefab/player.tscn | 1 | ||||
-rw-r--r-- | prefab/rock.tscn | 16 |
2 files changed, 11 insertions, 6 deletions
diff --git a/prefab/player.tscn b/prefab/player.tscn index 809c557..d6c1432 100644 --- a/prefab/player.tscn +++ b/prefab/player.tscn @@ -13,6 +13,7 @@ size = Vector3(1, 2, 1) size = Vector3(1.28475, 2, 1) [node name="Player" type="CharacterBody3D"] +collision_layer = 5 script = ExtResource("1_l6xtg") [node name="CollisionShape3D" type="CollisionShape3D" parent="."] diff --git a/prefab/rock.tscn b/prefab/rock.tscn index d6786da..2dac29d 100644 --- a/prefab/rock.tscn +++ b/prefab/rock.tscn @@ -1,14 +1,18 @@ [gd_scene load_steps=3 format=3 uid="uid://2a3fyuye46hm"] -[sub_resource type="SphereShape3D" id="SphereShape3D_os5og"] - [sub_resource type="SphereMesh" id="SphereMesh_l2tu3"] +height = 0.5 +is_hemisphere = true + +[sub_resource type="ConvexPolygonShape3D" id="ConvexPolygonShape3D_ugqi6"] +points = PackedVector3Array(-0.0915212, 0.0475939, 0.4884, -0.0919359, 0.000692064, -0.490613, -0.153229, 0.000846659, -0.474955, -0.0148097, 0.498986, -0.0148068, 0.490615, 0.000690721, 0.0919184, -0.490615, 0.000690721, 0.0919184, 0.281809, 0.231476, -0.341135, 0.308801, 0.334513, 0.205765, -0.264216, 0.305039, -0.293598, -0.263554, 0.363489, 0.219646, 0.258919, 0.00235193, 0.426422, 0.0295862, 0.364661, 0.340406, 0.353233, 0.000281841, -0.353164, 0.384702, 0.305395, -0.0887173, 0.0295865, 0.364663, -0.340411, -0.453708, 0.125113, -0.16627, -0.355672, 0.349959, -0.0147626, -0.30422, 0.00269272, 0.395447, 0.219612, 0.436624, -0.102355, 0.0150726, 0.170472, -0.468959, -0.382247, 0.00139124, -0.321063, -0.312984, 0.231319, 0.313016, 0.253421, 0.18662, 0.387575, 0.453689, 0.125168, -0.166263, 0.0734603, 0.466961, 0.161729, -0.176449, 0.45221, -0.117548, 0.453693, 0.125166, 0.166265, -0.45087, 0.186028, 0.105164, -0.0896107, 0.231262, 0.433361, -0.147992, 0.453473, 0.147963, -0.209696, 0.171289, -0.419405, 0.153229, 0.000846659, -0.474955) [node name="Rock" type="RigidBody3D"] collision_layer = 3 -[node name="CollisionShape3D" type="CollisionShape3D" parent="."] -shape = SubResource("SphereShape3D_os5og") - -[node name="MeshInstance3D" type="MeshInstance3D" parent="CollisionShape3D"] +[node name="MeshInstance3D" type="MeshInstance3D" parent="."] mesh = SubResource("SphereMesh_l2tu3") +skeleton = NodePath("") + +[node name="CollisionShape3D" type="CollisionShape3D" parent="."] +shape = SubResource("ConvexPolygonShape3D_ugqi6") |