From 93d7866d01911f634438ce261fe9b7a8b3d8349d Mon Sep 17 00:00:00 2001 From: Sara Date: Fri, 17 May 2024 12:54:10 +0200 Subject: [PATCH] feat: added more test cases to testmap --- godot/testmap.tscn | 135 ++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 127 insertions(+), 8 deletions(-) diff --git a/godot/testmap.tscn b/godot/testmap.tscn index d8ec939..39a3946 100644 --- a/godot/testmap.tscn +++ b/godot/testmap.tscn @@ -7,15 +7,15 @@ [sub_resource type="BoxMesh" id="BoxMesh_wvvde"] -[sub_resource type="PlaneMesh" id="PlaneMesh_g4f08"] -size = Vector2(100, 100) - [sub_resource type="PhysicsMaterial" id="PhysicsMaterial_whr25"] rough = true [sub_resource type="BoxShape3D" id="BoxShape3D_n0p5i"] size = Vector3(100, 1, 100) +[sub_resource type="PlaneMesh" id="PlaneMesh_g4f08"] +size = Vector2(100, 100) + [sub_resource type="GDScript" id="GDScript_pxbir"] script/source = "extends RigidBody3D @@ -165,10 +165,6 @@ shape = SubResource("BoxShape3D_qta3q") mesh = SubResource("BoxMesh_wvvde") skeleton = NodePath("../../..") -[node name="MeshInstance3D" type="MeshInstance3D" parent="Track"] -material_override = ExtResource("2_dkg88") -mesh = SubResource("PlaneMesh_g4f08") - [node name="StaticBody3D" type="StaticBody3D" parent="Track"] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.5, 0) physics_material_override = SubResource("PhysicsMaterial_whr25") @@ -176,6 +172,129 @@ physics_material_override = SubResource("PhysicsMaterial_whr25") [node name="CollisionShape3D" type="CollisionShape3D" parent="Track/StaticBody3D"] shape = SubResource("BoxShape3D_n0p5i") +[node name="MeshInstance3D" type="MeshInstance3D" parent="Track/StaticBody3D"] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.5, 0) +material_override = ExtResource("2_dkg88") +mesh = SubResource("PlaneMesh_g4f08") +skeleton = NodePath("../..") + +[node name="StaticBody3D6" type="StaticBody3D" parent="Track"] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.5, 192.854) +physics_material_override = SubResource("PhysicsMaterial_whr25") + +[node name="CollisionShape3D" type="CollisionShape3D" parent="Track/StaticBody3D6"] +shape = SubResource("BoxShape3D_n0p5i") + +[node name="MeshInstance3D" type="MeshInstance3D" parent="Track/StaticBody3D6"] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.5, 0) +material_override = ExtResource("2_dkg88") +mesh = SubResource("PlaneMesh_g4f08") +skeleton = NodePath("../..") + +[node name="StaticBody3D16" type="StaticBody3D" parent="Track"] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 100, -0.5, 0) +physics_material_override = SubResource("PhysicsMaterial_whr25") + +[node name="CollisionShape3D" type="CollisionShape3D" parent="Track/StaticBody3D16"] +shape = SubResource("BoxShape3D_n0p5i") + +[node name="MeshInstance3D" type="MeshInstance3D" parent="Track/StaticBody3D16"] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.5, 0) +material_override = ExtResource("2_dkg88") +mesh = SubResource("PlaneMesh_g4f08") +skeleton = NodePath("../..") + +[node name="StaticBody3D17" type="StaticBody3D" parent="Track"] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 100, -0.5, 100) +physics_material_override = SubResource("PhysicsMaterial_whr25") + +[node name="CollisionShape3D" type="CollisionShape3D" parent="Track/StaticBody3D17"] +shape = SubResource("BoxShape3D_n0p5i") + +[node name="MeshInstance3D" type="MeshInstance3D" parent="Track/StaticBody3D17"] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.5, 0) +material_override = ExtResource("2_dkg88") +mesh = SubResource("PlaneMesh_g4f08") +skeleton = NodePath("../..") + +[node name="StaticBody3D20" type="StaticBody3D" parent="Track"] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 200, -0.5, 0) +physics_material_override = SubResource("PhysicsMaterial_whr25") + +[node name="CollisionShape3D" type="CollisionShape3D" parent="Track/StaticBody3D20"] +shape = SubResource("BoxShape3D_n0p5i") + +[node name="MeshInstance3D" type="MeshInstance3D" parent="Track/StaticBody3D20"] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.5, 0) +material_override = ExtResource("2_dkg88") +mesh = SubResource("PlaneMesh_g4f08") +skeleton = NodePath("../..") + +[node name="StaticBody3D21" type="StaticBody3D" parent="Track"] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 200, -0.5, 100) +physics_material_override = SubResource("PhysicsMaterial_whr25") + +[node name="CollisionShape3D" type="CollisionShape3D" parent="Track/StaticBody3D21"] +shape = SubResource("BoxShape3D_n0p5i") + +[node name="MeshInstance3D" type="MeshInstance3D" parent="Track/StaticBody3D21"] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.5, 0) +material_override = ExtResource("2_dkg88") +mesh = SubResource("PlaneMesh_g4f08") +skeleton = NodePath("../..") + +[node name="StaticBody3D22" type="StaticBody3D" parent="Track"] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 300, -0.5, 0) +physics_material_override = SubResource("PhysicsMaterial_whr25") + +[node name="CollisionShape3D" type="CollisionShape3D" parent="Track/StaticBody3D22"] +shape = SubResource("BoxShape3D_n0p5i") + +[node name="MeshInstance3D" type="MeshInstance3D" parent="Track/StaticBody3D22"] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.5, 0) +material_override = ExtResource("2_dkg88") +mesh = SubResource("PlaneMesh_g4f08") +skeleton = NodePath("../..") + +[node name="StaticBody3D23" type="StaticBody3D" parent="Track"] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 300, -0.5, 100) +physics_material_override = SubResource("PhysicsMaterial_whr25") + +[node name="CollisionShape3D" type="CollisionShape3D" parent="Track/StaticBody3D23"] +shape = SubResource("BoxShape3D_n0p5i") + +[node name="MeshInstance3D" type="MeshInstance3D" parent="Track/StaticBody3D23"] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.5, 0) +material_override = ExtResource("2_dkg88") +mesh = SubResource("PlaneMesh_g4f08") +skeleton = NodePath("../..") + +[node name="StaticBody3D18" type="StaticBody3D" parent="Track"] +transform = Transform3D(1, 0, 0, 0, 0.990452, 0.137859, 0, -0.137859, 0.990452, 0, 6.22643, 76.2629) +physics_material_override = SubResource("PhysicsMaterial_whr25") + +[node name="CollisionShape3D" type="CollisionShape3D" parent="Track/StaticBody3D18"] +shape = SubResource("BoxShape3D_n0p5i") + +[node name="MeshInstance3D" type="MeshInstance3D" parent="Track/StaticBody3D18"] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.499998, 0) +material_override = ExtResource("2_dkg88") +mesh = SubResource("PlaneMesh_g4f08") +skeleton = NodePath("../..") + +[node name="StaticBody3D19" type="StaticBody3D" parent="Track"] +transform = Transform3D(1, 0, 0, 0, 0.990452, 0.137859, 0, -0.137859, 0.990452, 100, 6.22643, 197.71) +physics_material_override = SubResource("PhysicsMaterial_whr25") + +[node name="CollisionShape3D" type="CollisionShape3D" parent="Track/StaticBody3D19"] +shape = SubResource("BoxShape3D_n0p5i") + +[node name="MeshInstance3D" type="MeshInstance3D" parent="Track/StaticBody3D19"] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.5, 0) +material_override = ExtResource("2_dkg88") +mesh = SubResource("PlaneMesh_g4f08") +skeleton = NodePath("../..") + [node name="RigidBody3D" type="RigidBody3D" parent="."] transform = Transform3D(-0.992555, 0, 0.1218, 0, 1, 0, -0.1218, 0, -0.992555, -0.829948, 2.22513, 17.1488) script = SubResource("GDScript_pxbir") @@ -193,4 +312,4 @@ transform = Transform3D(-1, 8.41198e-08, -2.38035e-08, 0, 0.27228, 0.962218, 8.7 transform = Transform3D(1, 0, 0, 0, 0.160191, 0.987086, 0, -0.987086, 0.160191, 0, 11.4689, 0) [node name="SpawnPoint3D" type="SpawnPoint3D" parent="."] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.287203, 0) +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 2.28211, 0)