123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287 |
- [gd_scene load_steps=28 format=3 uid="uid://se7gyhmygqul"]
- [ext_resource type="Script" path="res://utils/rigidbody_ground_check.gd" id="1"]
- [ext_resource type="PackedScene" uid="uid://b1ihqm3x8jru" path="res://tests/test_options.tscn" id="2"]
- [ext_resource type="Script" path="res://tests/functional/test_rigidbody_ground_check.gd" id="3"]
- [ext_resource type="Script" path="res://utils/camera_orbit.gd" id="4"]
- [sub_resource type="PhysicsMaterial" id="1"]
- 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": 4099,
- "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,
- "vertex_count": 4,
- "vertex_data": PackedByteArray(51, 51, 51, 191, 0, 0, 0, 0, 51, 51, 51, 191, 0, 0, 0, 0, 154, 153, 153, 190, 0, 0, 0, 0, 205, 204, 76, 63, 0, 0, 96, 59, 205, 204, 76, 63, 0, 0, 0, 0, 154, 153, 153, 190, 182, 3, 0, 0, 0, 0, 0, 0, 0, 0, 128, 191, 0, 0, 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)
- [sub_resource type="ConvexPolygonShape3D" id="24"]
- points = PackedVector3Array(25, 0, 10, -25, 0, 10, 25, 0, -10, -25, 0, -10)
- [sub_resource type="ConvexPolygonShape3D" id="25"]
- points = PackedVector3Array(25, 0, 10, -25, 0, 10, 25, 0, -10, -25, 0, -10)
- [sub_resource type="ConvexPolygonShape3D" id="26"]
- points = PackedVector3Array(50, 0, 50, -50, 0, 50, 50, 0, -50, -50, 0, -50)
- [sub_resource type="ConcavePolygonShape3D" id="27"]
- data = PackedVector3Array(-1, 0, 1, 1, 0, -1, 1, 0, 1, -1, 0, 1, -1, 0, -1, 1, 0, -1)
- [sub_resource type="ConcavePolygonShape3D" id="28"]
- data = PackedVector3Array(50, 0, 50, -50, 0, 50, 50, 0, -50, -50, 0, 50, -50, 0, -50, 50, 0, -50)
- [sub_resource type="BoxShape3D" id="29"]
- size = Vector3(100, 2, 40)
- [sub_resource type="BoxShape3D" id="30"]
- size = Vector3(200, 2, 200)
- [node name="Test" type="Node3D"]
- script = ExtResource( "3" )
- [node name="LabelBodyType" type="Label" parent="."]
- offset_left = 14.0
- offset_top = 78.0
- offset_right = 171.0
- offset_bottom = 92.0
- text = "Floor Type: "
- __meta__ = {
- "_edit_use_anchors_": false
- }
- [node name="Options" parent="." instance=ExtResource( "2" )]
- offset_top = 120.0
- offset_bottom = 140.0
- focus_mode = 2
- [node name="DynamicShapes" type="Node3D" parent="."]
- [node name="Bodies" type="Node3D" parent="DynamicShapes"]
- transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 5.2912, 0)
- [node name="RigidBodyBox" type="RigidDynamicBody3D" parent="DynamicShapes/Bodies"]
- transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -6, 0, 0)
- axis_lock_angular_x = true
- axis_lock_angular_y = true
- axis_lock_angular_z = true
- physics_material_override = SubResource( "1" )
- 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" )
- [node name="RigidBodyCapsule" type="RigidDynamicBody3D" parent="DynamicShapes/Bodies"]
- transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -3, 0, 0)
- axis_lock_angular_x = true
- axis_lock_angular_y = true
- axis_lock_angular_z = true
- physics_material_override = SubResource( "5" )
- 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" )
- [node name="RigidBodyCylinder" type="RigidDynamicBody3D" parent="DynamicShapes/Bodies"]
- axis_lock_angular_x = true
- axis_lock_angular_y = true
- axis_lock_angular_z = true
- physics_material_override = SubResource( "9" )
- 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" )
- [node name="RigidBodyConvex" type="RigidDynamicBody3D" parent="DynamicShapes/Bodies"]
- transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 3, 0.974548, 0)
- axis_lock_angular_x = true
- axis_lock_angular_y = true
- axis_lock_angular_z = true
- physics_material_override = SubResource( "13" )
- 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" )
- [node name="RigidBodySphere" type="RigidDynamicBody3D" parent="DynamicShapes/Bodies"]
- transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 0, 0)
- axis_lock_angular_x = true
- axis_lock_angular_y = true
- axis_lock_angular_z = true
- physics_material_override = SubResource( "17" )
- 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" )
- [node name="Floors" type="Node3D" parent="."]
- [node name="ConvexSmall" type="Node3D" parent="Floors"]
- [node name="ConvexFloor" type="StaticBody3D" parent="Floors/ConvexSmall"]
- transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -10)
- [node name="MeshInstance3D" type="MeshInstance3D" parent="Floors/ConvexSmall/ConvexFloor"]
- visible = false
- mesh = SubResource( "23" )
- [node name="CollisionShape" type="CollisionShape3D" parent="Floors/ConvexSmall/ConvexFloor"]
- shape = SubResource( "24" )
- [node name="ConvexFloor2" type="StaticBody3D" parent="Floors/ConvexSmall"]
- transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 10)
- [node name="MeshInstance3D" type="MeshInstance3D" parent="Floors/ConvexSmall/ConvexFloor2"]
- visible = false
- mesh = SubResource( "23" )
- [node name="CollisionShape" type="CollisionShape3D" parent="Floors/ConvexSmall/ConvexFloor2"]
- shape = SubResource( "25" )
- [node name="ConvexBig" type="Node3D" parent="Floors"]
- [node name="ConvexFloor" type="StaticBody3D" parent="Floors/ConvexBig"]
- [node name="MeshInstance3D" type="MeshInstance3D" parent="Floors/ConvexBig/ConvexFloor"]
- visible = false
- mesh = SubResource( "23" )
- [node name="CollisionShape" type="CollisionShape3D" parent="Floors/ConvexBig/ConvexFloor"]
- shape = SubResource( "26" )
- [node name="ConcaveSmall" type="Node3D" parent="Floors"]
- [node name="ConcaveFloor" type="StaticBody3D" parent="Floors/ConcaveSmall"]
- transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -10)
- [node name="MeshInstance3D" type="MeshInstance3D" parent="Floors/ConcaveSmall/ConcaveFloor"]
- visible = false
- 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" )
- [node name="ConcaveFloor2" type="StaticBody3D" parent="Floors/ConcaveSmall"]
- transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 10)
- [node name="MeshInstance3D" type="MeshInstance3D" parent="Floors/ConcaveSmall/ConcaveFloor2"]
- visible = false
- 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" )
- [node name="ConcaveBig" type="Node3D" parent="Floors"]
- [node name="ConcaveFloor" type="StaticBody3D" parent="Floors/ConcaveBig"]
- [node name="MeshInstance3D" type="MeshInstance3D" parent="Floors/ConcaveBig/ConcaveFloor"]
- visible = false
- mesh = SubResource( "23" )
- [node name="CollisionShape" type="CollisionShape3D" parent="Floors/ConcaveBig/ConcaveFloor"]
- shape = SubResource( "28" )
- [node name="BoxSmall" type="Node3D" parent="Floors"]
- [node name="BoxFloor" type="StaticBody3D" parent="Floors/BoxSmall"]
- transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -10)
- [node name="MeshInstance3D" type="MeshInstance3D" parent="Floors/BoxSmall/BoxFloor"]
- visible = false
- 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" )
- [node name="BoxFloor2" type="StaticBody3D" parent="Floors/BoxSmall"]
- transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 10)
- [node name="MeshInstance3D" type="MeshInstance3D" parent="Floors/BoxSmall/BoxFloor2"]
- visible = false
- 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" )
- [node name="BoxBig" type="Node3D" parent="Floors"]
- [node name="BoxFloor" type="StaticBody3D" parent="Floors/BoxBig"]
- [node name="MeshInstance3D" type="MeshInstance3D" parent="Floors/BoxBig/BoxFloor"]
- visible = false
- 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" )
- [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
|