|
| 1 | +[gd_scene load_steps=25 format=2] |
| 2 | + |
| 3 | +[ext_resource path="res://utils/rigidbody_ground_check.gd" type="Script" id=1] |
| 4 | +[ext_resource path="res://test.gd" type="Script" id=2] |
| 5 | +[ext_resource path="res://tests/static_scene_plane.tscn" type="PackedScene" id=3] |
| 6 | +[ext_resource path="res://utils/camera_orbit.gd" type="Script" id=4] |
| 7 | + |
| 8 | +[sub_resource type="PhysicsMaterial" id=1] |
| 9 | +friction = 0.0 |
| 10 | + |
| 11 | +[sub_resource type="BoxShape" id=2] |
| 12 | + |
| 13 | +[sub_resource type="CubeMesh" id=3] |
| 14 | + |
| 15 | +[sub_resource type="SpatialMaterial" id=4] |
| 16 | + |
| 17 | +[sub_resource type="PhysicsMaterial" id=5] |
| 18 | +friction = 0.0 |
| 19 | + |
| 20 | +[sub_resource type="CapsuleShape" id=6] |
| 21 | + |
| 22 | +[sub_resource type="CapsuleMesh" id=7] |
| 23 | + |
| 24 | +[sub_resource type="SpatialMaterial" id=8] |
| 25 | + |
| 26 | +[sub_resource type="PhysicsMaterial" id=9] |
| 27 | +friction = 0.0 |
| 28 | + |
| 29 | +[sub_resource type="CylinderShape" id=10] |
| 30 | + |
| 31 | +[sub_resource type="CylinderMesh" id=11] |
| 32 | + |
| 33 | +[sub_resource type="SpatialMaterial" id=12] |
| 34 | + |
| 35 | +[sub_resource type="PhysicsMaterial" id=13] |
| 36 | +friction = 0.0 |
| 37 | + |
| 38 | +[sub_resource type="ConvexPolygonShape" id=14] |
| 39 | +points = PoolVector3Array( -0.7, 0, -0.7, -0.3, 0, 0.8, 0.8, 0, -0.3, 0, -1, 0 ) |
| 40 | + |
| 41 | +[sub_resource type="ArrayMesh" id=15] |
| 42 | +surfaces/0 = { |
| 43 | +"aabb": AABB( -0.7, -1, -0.7, 1.5, 1.00001, 1.5 ), |
| 44 | +"array_data": PoolByteArray( 51, 51, 51, 191, 0, 0, 0, 0, 51, 51, 51, 191, 167, 0, 167, 0, 154, 153, 153, 190, 0, 0, 0, 0, 205, 204, 76, 63, 212, 0, 118, 0, 205, 204, 76, 63, 0, 0, 0, 0, 154, 153, 153, 190, 118, 0, 212, 0, 0, 0, 0, 0, 0, 0, 128, 191, 0, 0, 0, 0, 0, 129, 0, 0 ), |
| 45 | +"array_index_data": PoolByteArray( 0, 0, 1, 0, 3, 0, 1, 0, 2, 0, 3, 0, 2, 0, 0, 0, 3, 0, 2, 0, 1, 0, 0, 0 ), |
| 46 | +"blend_shape_data": [ ], |
| 47 | +"format": 97539, |
| 48 | +"index_count": 12, |
| 49 | +"primitive": 4, |
| 50 | +"skeleton_aabb": [ ], |
| 51 | +"vertex_count": 4 |
| 52 | +} |
| 53 | + |
| 54 | +[sub_resource type="SpatialMaterial" id=16] |
| 55 | + |
| 56 | +[sub_resource type="PhysicsMaterial" id=17] |
| 57 | +friction = 0.0 |
| 58 | + |
| 59 | +[sub_resource type="SphereShape" id=18] |
| 60 | + |
| 61 | +[sub_resource type="SphereMesh" id=19] |
| 62 | + |
| 63 | +[sub_resource type="SpatialMaterial" id=20] |
| 64 | + |
| 65 | +[node name="Test" type="Spatial"] |
| 66 | +script = ExtResource( 2 ) |
| 67 | + |
| 68 | +[node name="DynamicShapes" type="Spatial" parent="."] |
| 69 | +transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 9.35591, 0 ) |
| 70 | + |
| 71 | +[node name="RigidBodyBox" type="RigidBody" parent="DynamicShapes"] |
| 72 | +transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -6, 0, 0 ) |
| 73 | +physics_material_override = SubResource( 1 ) |
| 74 | +axis_lock_angular_x = true |
| 75 | +axis_lock_angular_y = true |
| 76 | +axis_lock_angular_z = true |
| 77 | +script = ExtResource( 1 ) |
| 78 | + |
| 79 | +[node name="CollisionShape" type="CollisionShape" parent="DynamicShapes/RigidBodyBox"] |
| 80 | +transform = Transform( 0.6, 0, 0, 0, 1, 0, 0, 0, 0.6, 0, 0, 0 ) |
| 81 | +shape = SubResource( 2 ) |
| 82 | + |
| 83 | +[node name="MeshInstance" type="MeshInstance" parent="DynamicShapes/RigidBodyBox/CollisionShape"] |
| 84 | +mesh = SubResource( 3 ) |
| 85 | +material/0 = SubResource( 4 ) |
| 86 | + |
| 87 | +[node name="RigidBodyCapsule" type="RigidBody" parent="DynamicShapes"] |
| 88 | +transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -3, 0, 0 ) |
| 89 | +physics_material_override = SubResource( 5 ) |
| 90 | +axis_lock_angular_x = true |
| 91 | +axis_lock_angular_y = true |
| 92 | +axis_lock_angular_z = true |
| 93 | +script = ExtResource( 1 ) |
| 94 | + |
| 95 | +[node name="CollisionShape" type="CollisionShape" parent="DynamicShapes/RigidBodyCapsule"] |
| 96 | +transform = Transform( 0.8, 0, 0, 0, -3.49691e-08, -0.8, 0, 0.8, -3.49691e-08, 0, 0, 0 ) |
| 97 | +shape = SubResource( 6 ) |
| 98 | + |
| 99 | +[node name="MeshInstance" type="MeshInstance" parent="DynamicShapes/RigidBodyCapsule/CollisionShape"] |
| 100 | +mesh = SubResource( 7 ) |
| 101 | +material/0 = SubResource( 8 ) |
| 102 | + |
| 103 | +[node name="RigidBodyCylinder" type="RigidBody" parent="DynamicShapes"] |
| 104 | +physics_material_override = SubResource( 9 ) |
| 105 | +axis_lock_angular_x = true |
| 106 | +axis_lock_angular_y = true |
| 107 | +axis_lock_angular_z = true |
| 108 | +script = ExtResource( 1 ) |
| 109 | + |
| 110 | +[node name="CollisionShape" type="CollisionShape" parent="DynamicShapes/RigidBodyCylinder"] |
| 111 | +transform = Transform( 0.8, 0, 0, 0, 1, 0, 0, 0, 0.8, 0, 0, 0 ) |
| 112 | +shape = SubResource( 10 ) |
| 113 | + |
| 114 | +[node name="MeshInstance" type="MeshInstance" parent="DynamicShapes/RigidBodyCylinder/CollisionShape"] |
| 115 | +mesh = SubResource( 11 ) |
| 116 | +material/0 = SubResource( 12 ) |
| 117 | + |
| 118 | +[node name="RigidBodyConvex" type="RigidBody" parent="DynamicShapes"] |
| 119 | +transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 3, 0.974548, 0 ) |
| 120 | +physics_material_override = SubResource( 13 ) |
| 121 | +axis_lock_angular_x = true |
| 122 | +axis_lock_angular_y = true |
| 123 | +axis_lock_angular_z = true |
| 124 | +script = ExtResource( 1 ) |
| 125 | + |
| 126 | +[node name="CollisionShape" type="CollisionShape" parent="DynamicShapes/RigidBodyConvex"] |
| 127 | +transform = Transform( 1.5, 0, 0, 0, 2, 0, 0, 0, 1.5, 0, 0, 0 ) |
| 128 | +shape = SubResource( 14 ) |
| 129 | + |
| 130 | +[node name="MeshInstance" type="MeshInstance" parent="DynamicShapes/RigidBodyConvex/CollisionShape"] |
| 131 | +mesh = SubResource( 15 ) |
| 132 | +material/0 = SubResource( 16 ) |
| 133 | + |
| 134 | +[node name="RigidBodySphere" type="RigidBody" parent="DynamicShapes"] |
| 135 | +transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 0, 0 ) |
| 136 | +physics_material_override = SubResource( 17 ) |
| 137 | +axis_lock_angular_x = true |
| 138 | +axis_lock_angular_y = true |
| 139 | +axis_lock_angular_z = true |
| 140 | +script = ExtResource( 1 ) |
| 141 | + |
| 142 | +[node name="CollisionShape" type="CollisionShape" parent="DynamicShapes/RigidBodySphere"] |
| 143 | +transform = Transform( 0.8, 0, 0, 0, 0.8, 0, 0, 0, 0.8, 0, 0, 0 ) |
| 144 | +shape = SubResource( 18 ) |
| 145 | + |
| 146 | +[node name="MeshInstance" type="MeshInstance" parent="DynamicShapes/RigidBodySphere/CollisionShape"] |
| 147 | +mesh = SubResource( 19 ) |
| 148 | +material/0 = SubResource( 20 ) |
| 149 | + |
| 150 | +[node name="StaticBodyPlane" parent="." instance=ExtResource( 3 )] |
| 151 | +collision_layer = 2 |
| 152 | +collision_mask = 3 |
| 153 | + |
| 154 | +[node name="Camera" type="Camera" parent="."] |
| 155 | +transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 3.604, 22.124 ) |
| 156 | +script = ExtResource( 4 ) |
| 157 | + |
| 158 | +[node name="OmniLight" type="OmniLight" parent="Camera"] |
| 159 | +omni_range = 50.0 |
0 commit comments