ladder and rats looking pretty good. still need to fix rat holes

This commit is contained in:
Derek
2024-07-28 15:36:04 -05:00
parent 5a41a22160
commit 98f5858b88
12 changed files with 355 additions and 34 deletions

View File

@@ -263,8 +263,9 @@ _surfaces = [{
blend_shape_mode = 0
shadow_mesh = SubResource("ArrayMesh_7g1e1")
[sub_resource type="ConvexPolygonShape3D" id="ConvexPolygonShape3D_7py8o"]
points = PackedVector3Array(-0.344899, -0.0821611, -0.0326766, 0.129962, 0.244611, 0.0282392, 0.129962, 0.244611, -0.0353529, 0.935703, -0.0946573, 0.0282392, -0.357868, 0.0961252, 0.113067, -0.357868, 0.138534, -0.120203, 0.385546, -0.0930766, -0.104524, -0.108494, -0.119472, 0.102292, 0.11297, 0.17984, 0.0955212, -0.111698, -0.12099, -0.0909347, 0.073862, 0.163671, -0.104365, 0.935703, -0.0734717, -0.0141403, 0.40588, -0.0578204, 0.0987182, -0.357868, 0.138534, 0.113067, 0.596402, -0.11588, -0.0353529, -0.368993, -0.063627, 0.0257779, 0.935703, -0.0734717, 0.0282392, 0.40551, -0.0575425, -0.1056, 0.219746, -0.115, 0.0995593, -0.357868, 0.0961252, -0.120203, -0.0761913, -0.112906, -0.105416, -0.385095, -0.0265125, 0.0265326, 0.935703, -0.0946573, -0.0141403, 0.220143, -0.113207, -0.1056, 0.596402, -0.11588, 0.0282392, -0.322307, -0.0814319, 0.0447062, 0.37115, 0.0211604, -0.0932093, 0.385588, -0.0931241, 0.0974203, -0.307365, -0.0824694, -0.0521922, 0.180317, 0.145872, -0.0880433, -0.371016, -0.0247529, -0.0329882, -0.344856, -0.0821514, 0.0255589)
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_q7xl1"]
radius = 0.214127
height = 0.803677
[sub_resource type="Animation" id="Animation_rf35q"]
resource_name = "run"
@@ -277,10 +278,10 @@ tracks/0/path = NodePath("rat1:position")
tracks/0/interp = 2
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 0.25, 0.5, 0.75, 1),
"times": PackedFloat32Array(0, 0.25, 0.5, 0.76, 1),
"transitions": PackedFloat32Array(1, 1, 1, 1, 1),
"update": 0,
"values": [Vector3(-0.107148, 0.0793237, 0), Vector3(-0.107, 0.2, 0), Vector3(-0.107148, 0.0793237, 0), Vector3(-0.107, 0.15, 0), Vector3(-0.107148, 0.0793237, 0)]
"values": [Vector3(0, 0.079, 0), Vector3(0, 0.2, 0), Vector3(0, 0.079, 0), Vector3(0, 0.15, 0), Vector3(0, 0.079, 0)]
}
tracks/1/type = "value"
tracks/1/imported = false
@@ -336,14 +337,15 @@ _data = {
"run": SubResource("Animation_rf35q")
}
[node name="rat" type="RigidBody3D" groups=["breakable", "rat", "scene_rigidbody"]]
[node name="rat" type="CharacterBody3D" groups=["breakable", "rat"]]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.117073, 0)
collision_layer = 2
collision_mask = 7
script = ExtResource("1_m8jnv")
dead_rat = ExtResource("2_it4rd")
[node name="rat1" type="MeshInstance3D" parent="."]
transform = Transform3D(-4.37114e-08, 0, -1, 0, 1, 0, 1, 0, -4.37114e-08, -0.107148, 0.0793237, 0)
transform = Transform3D(-4.37114e-08, 0, -1, 0, 1, 0, 1, 0, -4.37114e-08, 0, 0.079, 0)
mesh = SubResource("ArrayMesh_bpli1")
skeleton = NodePath("")
@@ -373,11 +375,27 @@ mesh = SubResource("ArrayMesh_r7nw6")
skeleton = NodePath("")
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.107148, 0.0793237, 0)
shape = SubResource("ConvexPolygonShape3D_7py8o")
transform = Transform3D(1, 0, 0, 0, -4.37114e-08, -1, 0, 1, -4.37114e-08, 0, 0.079, 0)
shape = SubResource("CapsuleShape3D_q7xl1")
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
libraries = {
"": SubResource("AnimationLibrary_0gijd")
}
autoplay = "run"
[node name="NavigationAgent3D" type="NavigationAgent3D" parent="."]
path_height_offset = 1.1
avoidance_enabled = true
[node name="RayCast3D" type="RayCast3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.0699478, -0.342128)
target_position = Vector3(0, 0, -0.2)
[node name="RayCast3D2" type="RayCast3D" parent="."]
transform = Transform3D(0.707107, 0, -0.707107, 0, 1, 0, 0.707107, 0, 0.707107, 0, -0.0699478, -0.342128)
target_position = Vector3(0, 0, -0.2)
[node name="RayCast3D3" type="RayCast3D" parent="."]
transform = Transform3D(0.707107, 0, 0.707107, 0, 1, 0, -0.707107, 0, 0.707107, 0, -0.0699478, -0.342128)
target_position = Vector3(0, 0, -0.2)