regression-test-project/Physics/3D/Physics3D.tscn
2021-02-13 19:11:05 +01:00

267 lines
10 KiB
Plaintext

[gd_scene load_steps=11 format=2]
[ext_resource path="res://icon.png" type="Texture" id=1]
[ext_resource path="res://Physics/3D/StaticArena.gd" type="Script" id=2]
[ext_resource path="res://Physics/3D/RigidBody3D.tscn" type="PackedScene" id=3]
[sub_resource type="PhysicsMaterial" id=1]
friction = 0.89
rough = true
[sub_resource type="SpatialMaterial" id=2]
albedo_color = Color( 1, 1, 1, 0.521569 )
albedo_texture = ExtResource( 1 )
metallic = 1.0
metallic_specular = 0.86
metallic_texture = ExtResource( 1 )
[sub_resource type="BoxShape" id=3]
extents = Vector3( 50, 2, 50 )
[sub_resource type="SpatialMaterial" id=4]
params_diffuse_mode = 1
albedo_texture = ExtResource( 1 )
metallic = 0.8
[sub_resource type="BoxShape" id=5]
extents = Vector3( 50, 20, 5 )
[sub_resource type="BoxShape" id=6]
extents = Vector3( 11.8794, 1.37845, 22.281 )
[sub_resource type="BoxShape" id=7]
extents = Vector3( 11.8794, 1.37845, 22.281 )
[node name="Physics3D" type="Spatial"]
[node name="DirectionalLight" type="DirectionalLight" parent="."]
transform = Transform( 1, 0, 0, 0, -0.959707, 0.281002, 0, -0.281002, -0.959707, 0, 35.3705, 0 )
light_energy = 1.45
[node name="StaticArena" type="Spatial" parent="."]
script = ExtResource( 2 )
[node name="StaticBody" type="StaticBody" parent="StaticArena"]
collision_layer = 2147483651
collision_mask = 279045
physics_material_override = SubResource( 1 )
[node name="CSGBox" type="CSGBox" parent="StaticArena/StaticBody"]
width = 100.0
height = 4.32824
depth = 100.0
material = SubResource( 2 )
[node name="CollisionShape" type="CollisionShape" parent="StaticArena/StaticBody"]
shape = SubResource( 3 )
[node name="StaticBody2" type="StaticBody" parent="StaticArena"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 18.1689, 1.64214 )
collision_layer = 2147483651
collision_mask = 279045
physics_material_override = SubResource( 1 )
[node name="CSGBox" type="CSGBox" parent="StaticArena/StaticBody2"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -46.5124 )
width = 100.0
height = 40.0
depth = 10.0
material = SubResource( 4 )
[node name="CollisionShape" type="CollisionShape" parent="StaticArena/StaticBody2"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -46.709 )
shape = SubResource( 5 )
[node name="StaticBody3" type="StaticBody" parent="StaticArena"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 18.1689, 91.732 )
collision_layer = 2147483651
collision_mask = 279045
physics_material_override = SubResource( 1 )
[node name="CSGBox" type="CSGBox" parent="StaticArena/StaticBody3"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -46.5124 )
width = 100.0
height = 40.0
depth = 10.0
material = SubResource( 4 )
[node name="CollisionShape" type="CollisionShape" parent="StaticArena/StaticBody3"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -46.709 )
shape = SubResource( 5 )
[node name="StaticBody4" type="StaticBody" parent="StaticArena"]
transform = Transform( -1.62921e-07, 0, -1, 0, 1, 0, 1, 0, -1.62921e-07, -1.90218, 18.1689, 0.572887 )
collision_layer = 2147483651
collision_mask = 279045
physics_material_override = SubResource( 1 )
[node name="CSGBox" type="CSGBox" parent="StaticArena/StaticBody4"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.13509, -46.5124 )
width = 100.0
height = 40.0
depth = 10.0
material = SubResource( 4 )
[node name="CollisionShape" type="CollisionShape" parent="StaticArena/StaticBody4"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -46.709 )
shape = SubResource( 5 )
[node name="StaticBody5" type="StaticBody" parent="StaticArena"]
transform = Transform( -1.62921e-07, 0, -1, 0, 1, 0, 1, 0, -1.62921e-07, -92.1931, 18.8845, 0.814518 )
collision_layer = 2147483651
collision_mask = 279045
physics_material_override = SubResource( 1 )
[node name="CSGBox" type="CSGBox" parent="StaticArena/StaticBody5"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -46.5124 )
width = 100.0
height = 40.0
depth = 10.0
material = SubResource( 4 )
[node name="CollisionShape" type="CollisionShape" parent="StaticArena/StaticBody5"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -46.709 )
shape = SubResource( 5 )
[node name="StaticBody6" type="StaticBody" parent="StaticArena"]
transform = Transform( 0.998532, 0.013617, -0.0524264, 0, 0.967885, 0.251394, 0.054166, -0.251025, 0.966464, -16.8315, 7.76313, 0 )
[node name="CollisionShape" type="CollisionShape" parent="StaticArena/StaticBody6"]
shape = SubResource( 6 )
[node name="CSGBox" type="CSGBox" parent="StaticArena/StaticBody6"]
width = 23.9394
depth = 44.6359
[node name="StaticBody7" type="StaticBody" parent="StaticArena"]
transform = Transform( -0.638995, 0.193375, -0.744507, 0, 0.967885, 0.251394, 0.769211, 0.16064, -0.618474, 10.0702, 7.03413, 0 )
[node name="CollisionShape" type="CollisionShape" parent="StaticArena/StaticBody7"]
transform = Transform( 1, -9.31323e-10, 0, 0, 1, 1.49012e-08, 3.72529e-09, 1.49012e-08, 1, 0, 0, 0 )
shape = SubResource( 7 )
[node name="CSGBox" type="CSGBox" parent="StaticArena/StaticBody7"]
width = 23.9394
depth = 44.6359
[node name="StaticBody8" type="StaticBody" parent="StaticArena"]
transform = Transform( -0.314953, 0.2386, -0.918626, 0, 0.967885, 0.251394, 0.949107, 0.0791774, -0.304838, 10.0702, 7.03413, 24.278 )
[node name="CollisionShape" type="CollisionShape" parent="StaticArena/StaticBody8"]
transform = Transform( 1, -9.31323e-10, 0, 0, 1, 1.49012e-08, 3.72529e-09, 1.49012e-08, 1, 0, 0, 0 )
shape = SubResource( 7 )
[node name="CSGBox" type="CSGBox" parent="StaticArena/StaticBody8"]
width = 23.9394
depth = 44.6359
[node name="StaticBody9" type="StaticBody" parent="StaticArena"]
transform = Transform( 0.289683, -0.599318, 0.746259, -0.123608, -0.796586, -0.591753, 0.949107, 0.0791774, -0.304838, 10.0702, 0.940654, -25.555 )
[node name="CollisionShape" type="CollisionShape" parent="StaticArena/StaticBody9"]
transform = Transform( 1, 7.45058e-09, 0, 1.49012e-08, 1, 4.84288e-08, 0, -3.1665e-08, 1, 0, 0, 0 )
shape = SubResource( 7 )
[node name="CSGBox" type="CSGBox" parent="StaticArena/StaticBody9"]
width = 23.9394
depth = 44.6359
[node name="Objects" type="Spatial" parent="."]
[node name="RigidBody" parent="Objects" instance=ExtResource( 3 )]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -8.50424, 17.1047, 14.7363 )
[node name="RigidBody2" parent="Objects" instance=ExtResource( 3 )]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 3.7864, 12.6031, 19.1751 )
[node name="RigidBody3" parent="Objects" instance=ExtResource( 3 )]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -16.9896, 10.6319, 28.8764 )
[node name="RigidBody4" parent="Objects" instance=ExtResource( 3 )]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -26.0866, 12.6031, -18.3703 )
[node name="RigidBody5" parent="Objects" instance=ExtResource( 3 )]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 22.2505, 12.6031, -20.7732 )
[node name="RigidBody6" parent="Objects" instance=ExtResource( 3 )]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 24.085, 12.6031, 8.2937 )
[node name="RigidBody7" parent="Objects" instance=ExtResource( 3 )]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 18.9278, 12.6031, 23.4173 )
[node name="RigidBody8" parent="Objects" instance=ExtResource( 3 )]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -3.85186, 24.8548, -9.87658 )
[node name="Camera" type="Camera" parent="."]
transform = Transform( 0.922114, 0.23703, -0.305815, 0.0163102, 0.765871, 0.642787, 0.386575, -0.597711, 0.702354, -25.392, 55.117, 39.851 )
current = true
far = 200.0
[node name="Joints" type="Spatial" parent="."]
[node name="Cone" type="Spatial" parent="Joints"]
[node name="RigidBody2" parent="Joints/Cone" instance=ExtResource( 3 )]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -23.2888, 6.73046, 77.026 )
gravity_scale = -3.0
[node name="RigidBody" parent="Joints/Cone" instance=ExtResource( 3 )]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -23.2888, 15.3482, 19.1751 )
[node name="ConeTwistJoint" type="ConeTwistJoint" parent="Joints/Cone"]
nodes/node_a = NodePath("../RigidBody")
nodes/node_b = NodePath("../RigidBody2")
[node name="Generic" type="Spatial" parent="Joints"]
[node name="RigidBody" parent="Joints/Generic" instance=ExtResource( 3 )]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -23.2888, 33.1278, 67.0796 )
gravity_scale = -3.0
[node name="RigidBody2" parent="Joints/Generic" instance=ExtResource( 3 )]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -23.2888, 33.1278, -0.445078 )
[node name="Generic6DOFJoint" type="Generic6DOFJoint" parent="Joints/Generic"]
nodes/node_a = NodePath("../RigidBody")
nodes/node_b = NodePath("../RigidBody2")
[node name="Hinge" type="Spatial" parent="Joints"]
[node name="RigidBody" parent="Joints/Hinge" instance=ExtResource( 3 )]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 18.6153, 33.1278, 59.2096 )
gravity_scale = -3.0
[node name="RigidBody2" parent="Joints/Hinge" instance=ExtResource( 3 )]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 8.17695, 33.1278, 19.1751 )
[node name="HingeJoint" type="HingeJoint" parent="Joints/Hinge"]
nodes/node_a = NodePath("../RigidBody")
nodes/node_b = NodePath("../RigidBody2")
[node name="Pin" type="Spatial" parent="Joints"]
[node name="RigidBody" parent="Joints/Pin" instance=ExtResource( 3 )]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -23.2888, 4.83369, 116.28 )
gravity_scale = -3.0
[node name="RigidBody2" parent="Joints/Pin" instance=ExtResource( 3 )]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -23.2888, 18.4589, 10.7729 )
[node name="PinJoint" type="PinJoint" parent="Joints/Pin"]
nodes/node_a = NodePath("../RigidBody")
nodes/node_b = NodePath("../RigidBody2")
[node name="Slider" type="Spatial" parent="Joints"]
[node name="RigidBody" parent="Joints/Slider" instance=ExtResource( 3 )]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -23.2888, 17.7427, 19.1751 )
gravity_scale = -3.0
[node name="RigidBody2" parent="Joints/Slider" instance=ExtResource( 3 )]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -33.3355, 16.2845, 19.1751 )
[node name="SliderJoint" type="SliderJoint" parent="Joints/Slider"]
nodes/node_a = NodePath("../RigidBody")
nodes/node_b = NodePath("../RigidBody2")
linear_motion/softness = 1.43