|
@@ -1,4 +1,4 @@
|
|
|
-[gd_scene load_steps=28 format=3 uid="uid://se7gyhmygqul"]
|
|
|
+[gd_scene load_steps=23 format=3 uid="uid://se7gyhmygqul"]
|
|
|
|
|
|
[ext_resource type="Script" uid="uid://4rx7rkakkj28" path="res://utils/rigidbody_ground_check.gd" id="1"]
|
|
|
[ext_resource type="PackedScene" uid="uid://b1ihqm3x8jru" path="res://tests/test_options.tscn" id="2"]
|
|
@@ -10,47 +10,27 @@ friction = 0.0
|
|
|
|
|
|
[sub_resource type="BoxShape3D" id="2"]
|
|
|
|
|
|
-[sub_resource type="BoxMesh" id="3"]
|
|
|
-
|
|
|
[sub_resource type="PhysicsMaterial" id="5"]
|
|
|
friction = 0.0
|
|
|
|
|
|
[sub_resource type="CapsuleShape3D" id="6"]
|
|
|
|
|
|
-[sub_resource type="CapsuleMesh" id="7"]
|
|
|
-
|
|
|
[sub_resource type="PhysicsMaterial" id="9"]
|
|
|
friction = 0.0
|
|
|
|
|
|
[sub_resource type="CylinderShape3D" id="10"]
|
|
|
|
|
|
-[sub_resource type="CylinderMesh" id="11"]
|
|
|
-
|
|
|
[sub_resource type="PhysicsMaterial" id="13"]
|
|
|
friction = 0.0
|
|
|
|
|
|
[sub_resource type="ConvexPolygonShape3D" id="14"]
|
|
|
points = PackedVector3Array(-0.7, 0, -0.7, -0.3, 0, 0.8, 0.8, 0, -0.3, 0, -1, 0)
|
|
|
|
|
|
-[sub_resource type="ArrayMesh" id="15"]
|
|
|
-_surfaces = [{
|
|
|
-"aabb": AABB(-0.7, -1, -0.7, 1.5, 1.00001, 1.5),
|
|
|
-"format": 34359742467,
|
|
|
-"index_count": 12,
|
|
|
-"index_data": PackedByteArray(0, 0, 1, 0, 3, 0, 1, 0, 2, 0, 3, 0, 2, 0, 0, 0, 3, 0, 2, 0, 1, 0, 0, 0),
|
|
|
-"primitive": 3,
|
|
|
-"uv_scale": Vector4(0, 0, 0, 0),
|
|
|
-"vertex_count": 4,
|
|
|
-"vertex_data": PackedByteArray(51, 51, 51, 191, 0, 0, 0, 0, 51, 51, 51, 191, 154, 153, 153, 190, 0, 0, 0, 0, 205, 204, 76, 63, 205, 204, 76, 63, 0, 0, 0, 0, 154, 153, 153, 190, 0, 0, 0, 0, 0, 0, 128, 191, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 96, 59, 182, 3, 0, 0, 0, 0, 0, 0)
|
|
|
-}]
|
|
|
-
|
|
|
[sub_resource type="PhysicsMaterial" id="17"]
|
|
|
friction = 0.0
|
|
|
|
|
|
[sub_resource type="SphereShape3D" id="18"]
|
|
|
|
|
|
-[sub_resource type="SphereMesh" id="19"]
|
|
|
-
|
|
|
[sub_resource type="PlaneMesh" id="23"]
|
|
|
size = Vector2(50, 20)
|
|
|
|
|
@@ -106,9 +86,7 @@ script = ExtResource("1")
|
|
|
[node name="CollisionShape" type="CollisionShape3D" parent="DynamicShapes/Bodies/RigidBodyBox"]
|
|
|
transform = Transform3D(0.6, 0, 0, 0, 1, 0, 0, 0, 0.6, 0, 0, 0)
|
|
|
shape = SubResource("2")
|
|
|
-
|
|
|
-[node name="MeshInstance3D" type="MeshInstance3D" parent="DynamicShapes/Bodies/RigidBodyBox/CollisionShape"]
|
|
|
-mesh = SubResource("3")
|
|
|
+debug_color = Color(1, 1, 0, 1)
|
|
|
|
|
|
[node name="RigidBodyCapsule" type="RigidBody3D" parent="DynamicShapes/Bodies"]
|
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -3, 0, 0)
|
|
@@ -121,9 +99,7 @@ script = ExtResource("1")
|
|
|
[node name="CollisionShape" type="CollisionShape3D" parent="DynamicShapes/Bodies/RigidBodyCapsule"]
|
|
|
transform = Transform3D(0.8, 0, 0, 0, 0.8, 0, 0, 0, 0.8, 0, 0, 0)
|
|
|
shape = SubResource("6")
|
|
|
-
|
|
|
-[node name="MeshInstance3D" type="MeshInstance3D" parent="DynamicShapes/Bodies/RigidBodyCapsule/CollisionShape"]
|
|
|
-mesh = SubResource("7")
|
|
|
+debug_color = Color(1, 1, 0, 1)
|
|
|
|
|
|
[node name="RigidBodyCylinder" type="RigidBody3D" parent="DynamicShapes/Bodies"]
|
|
|
axis_lock_angular_x = true
|
|
@@ -135,9 +111,7 @@ script = ExtResource("1")
|
|
|
[node name="CollisionShape" type="CollisionShape3D" parent="DynamicShapes/Bodies/RigidBodyCylinder"]
|
|
|
transform = Transform3D(0.8, 0, 0, 0, 1, 0, 0, 0, 0.8, 0, 0, 0)
|
|
|
shape = SubResource("10")
|
|
|
-
|
|
|
-[node name="MeshInstance3D" type="MeshInstance3D" parent="DynamicShapes/Bodies/RigidBodyCylinder/CollisionShape"]
|
|
|
-mesh = SubResource("11")
|
|
|
+debug_color = Color(1, 1, 0, 1)
|
|
|
|
|
|
[node name="RigidBodyConvex" type="RigidBody3D" parent="DynamicShapes/Bodies"]
|
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 3, 0.974548, 0)
|
|
@@ -150,9 +124,7 @@ script = ExtResource("1")
|
|
|
[node name="CollisionShape" type="CollisionShape3D" parent="DynamicShapes/Bodies/RigidBodyConvex"]
|
|
|
transform = Transform3D(1.5, 0, 0, 0, 2, 0, 0, 0, 1.5, 0, 0, 0)
|
|
|
shape = SubResource("14")
|
|
|
-
|
|
|
-[node name="MeshInstance3D" type="MeshInstance3D" parent="DynamicShapes/Bodies/RigidBodyConvex/CollisionShape"]
|
|
|
-mesh = SubResource("15")
|
|
|
+debug_color = Color(1, 1, 0, 1)
|
|
|
|
|
|
[node name="RigidBodySphere" type="RigidBody3D" parent="DynamicShapes/Bodies"]
|
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 0, 0)
|
|
@@ -165,9 +137,7 @@ script = ExtResource("1")
|
|
|
[node name="CollisionShape" type="CollisionShape3D" parent="DynamicShapes/Bodies/RigidBodySphere"]
|
|
|
transform = Transform3D(0.8, 0, 0, 0, 0.8, 0, 0, 0, 0.8, 0, 0, 0)
|
|
|
shape = SubResource("18")
|
|
|
-
|
|
|
-[node name="MeshInstance3D" type="MeshInstance3D" parent="DynamicShapes/Bodies/RigidBodySphere/CollisionShape"]
|
|
|
-mesh = SubResource("19")
|
|
|
+debug_color = Color(1, 1, 0, 1)
|
|
|
|
|
|
[node name="Floors" type="Node3D" parent="."]
|
|
|
|
|
@@ -182,6 +152,7 @@ mesh = SubResource("23")
|
|
|
|
|
|
[node name="CollisionShape" type="CollisionShape3D" parent="Floors/ConvexSmall/ConvexFloor"]
|
|
|
shape = SubResource("24")
|
|
|
+debug_color = Color(0, 0.533333, 1, 1)
|
|
|
|
|
|
[node name="ConvexFloor2" type="StaticBody3D" parent="Floors/ConvexSmall"]
|
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 10)
|
|
@@ -192,6 +163,7 @@ mesh = SubResource("23")
|
|
|
|
|
|
[node name="CollisionShape" type="CollisionShape3D" parent="Floors/ConvexSmall/ConvexFloor2"]
|
|
|
shape = SubResource("25")
|
|
|
+debug_color = Color(0, 0.533333, 1, 1)
|
|
|
|
|
|
[node name="ConvexBig" type="Node3D" parent="Floors"]
|
|
|
|
|
@@ -203,6 +175,7 @@ mesh = SubResource("23")
|
|
|
|
|
|
[node name="CollisionShape" type="CollisionShape3D" parent="Floors/ConvexBig/ConvexFloor"]
|
|
|
shape = SubResource("26")
|
|
|
+debug_color = Color(0, 0.533333, 1, 1)
|
|
|
|
|
|
[node name="ConcaveSmall" type="Node3D" parent="Floors"]
|
|
|
|
|
@@ -216,6 +189,7 @@ mesh = SubResource("23")
|
|
|
[node name="CollisionShape" type="CollisionShape3D" parent="Floors/ConcaveSmall/ConcaveFloor"]
|
|
|
transform = Transform3D(25, 0, 0, 0, 1, 0, 0, 0, 10, 0, 0, 0)
|
|
|
shape = SubResource("27")
|
|
|
+debug_color = Color(0, 0.533333, 1, 1)
|
|
|
|
|
|
[node name="ConcaveFloor2" type="StaticBody3D" parent="Floors/ConcaveSmall"]
|
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 10)
|
|
@@ -227,6 +201,7 @@ mesh = SubResource("23")
|
|
|
[node name="CollisionShape" type="CollisionShape3D" parent="Floors/ConcaveSmall/ConcaveFloor2"]
|
|
|
transform = Transform3D(25, 0, 0, 0, 1, 0, 0, 0, 10, 0, 0, 0)
|
|
|
shape = SubResource("27")
|
|
|
+debug_color = Color(0, 0.533333, 1, 1)
|
|
|
|
|
|
[node name="ConcaveBig" type="Node3D" parent="Floors"]
|
|
|
|
|
@@ -238,6 +213,7 @@ mesh = SubResource("23")
|
|
|
|
|
|
[node name="CollisionShape" type="CollisionShape3D" parent="Floors/ConcaveBig/ConcaveFloor"]
|
|
|
shape = SubResource("28")
|
|
|
+debug_color = Color(0, 0.533333, 1, 1)
|
|
|
|
|
|
[node name="BoxSmall" type="Node3D" parent="Floors"]
|
|
|
|
|
@@ -251,6 +227,7 @@ mesh = SubResource("23")
|
|
|
[node name="CollisionShape" type="CollisionShape3D" parent="Floors/BoxSmall/BoxFloor"]
|
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -1, 0)
|
|
|
shape = SubResource("29")
|
|
|
+debug_color = Color(0, 0.533333, 1, 1)
|
|
|
|
|
|
[node name="BoxFloor2" type="StaticBody3D" parent="Floors/BoxSmall"]
|
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 10)
|
|
@@ -262,6 +239,7 @@ mesh = SubResource("23")
|
|
|
[node name="CollisionShape" type="CollisionShape3D" parent="Floors/BoxSmall/BoxFloor2"]
|
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -1, 0)
|
|
|
shape = SubResource("29")
|
|
|
+debug_color = Color(0, 0.533333, 1, 1)
|
|
|
|
|
|
[node name="BoxBig" type="Node3D" parent="Floors"]
|
|
|
|
|
@@ -274,12 +252,9 @@ mesh = SubResource("23")
|
|
|
[node name="CollisionShape" type="CollisionShape3D" parent="Floors/BoxBig/BoxFloor"]
|
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -1, 0)
|
|
|
shape = SubResource("30")
|
|
|
+debug_color = Color(0, 0.533333, 1, 1)
|
|
|
|
|
|
[node name="Camera3D" type="Camera3D" parent="."]
|
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 3.604, 22.124)
|
|
|
far = 1000.0
|
|
|
script = ExtResource("4")
|
|
|
-
|
|
|
-[node name="OmniLight" type="OmniLight3D" parent="Camera3D"]
|
|
|
-transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 14.6965, -5.95932)
|
|
|
-omni_range = 50.0
|