diff options
Diffstat (limited to 'incubator.tscn')
| -rw-r--r-- | incubator.tscn | 107 |
1 files changed, 101 insertions, 6 deletions
diff --git a/incubator.tscn b/incubator.tscn index 035ec41..c46ac38 100644 --- a/incubator.tscn +++ b/incubator.tscn @@ -1,12 +1,21 @@ -[gd_scene load_steps=3 format=2] +[gd_scene load_steps=6 format=2] -[ext_resource path="res://incubator.dae" type="PackedScene" id=1] +[ext_resource path="res://mesh/incubator.dae" type="PackedScene" id=1] +[ext_resource path="res://scripts/incubator.gd" type="Script" id=2] + +[sub_resource type="ConvexPolygonShape" id=2] + +points = PoolVector3Array( 1, -1, 1, -0.999512, -1, -1, 1, -1, -0.999512, -0.999512, 1, -1, 0.999512, 1, 1, 1, 1, -0.999512, 1, 1, -0.999512, 1, -1, 1, 1, -1, -0.999512, 0.999512, 1, 1, -1, -1, 0.999512, 1, -1, 1, -1, -1, 0.999512, -0.999512, 1, -1, -0.999512, -1, -1, 1, -1, -0.999512, -0.999512, 1, -1, 1, 1, -0.999512, -1, -1, 0.999512, -1, 1, 0.999512, 0.999512, 1, 1, -1, 1, 0.999512, -1, 1, 0.999512, -0.999512, -1, -1 ) + +[sub_resource type="ConvexPolygonShape" id=3] + +points = PoolVector3Array( -1, 1, 2.81836, -1, -1, -1, -1, -1, 2.81836, -1, 1, -1, 1, -1, -1, -1, -1, -1, 1, 1, -1, 1, -1, 2.81836, 1, -1, -1, 1, 1, 2.81836, -1, -1, 2.81836, 1, -1, 2.81836, 1, -1, -1, -1, -1, 2.81836, -1, -1, -1, -1, 1, -1, 1, 1, 2.81836, 1, 1, -1, -1, 1, -1, 1, 1, -1, 1, 1, 2.81836, -1, 1, 2.81836, 1, -1, 2.81836, -1, 1, 2.81836 ) [sub_resource type="SpatialMaterial" id=1] resource_name = "glass" flags_transparent = true -flags_unshaded = true +flags_unshaded = false flags_on_top = false flags_use_point_size = false flags_fixed_size = false @@ -19,9 +28,9 @@ params_depth_draw_mode = 0 params_line_width = 1.0 params_point_size = 1.0 params_billboard_mode = 0 -albedo_color = Color( 0.1, 0.1, 0.1, 1 ) +albedo_color = Color( 0.491638, 0.509477, 0.699219, 0.294706 ) specular_mode = 1 -specular_color = Color( 0.1, 0.1, 0.1, 1 ) +specular_color = Color( 0.491638, 0.509477, 0.699219, 1 ) specular_metalness = 0.1 specular_roughness = 0.0 emission_enabled = false @@ -39,10 +48,96 @@ uv1_offset = Vector2( 0, 0 ) uv2_scale = Vector2( 1, 1 ) uv2_offset = Vector2( 0, 0 ) -[node name="Scene Root" instance=ExtResource( 1 )] +[node name="Incubator" instance=ExtResource( 1 )] + +script = ExtResource( 2 ) + +[node name="StaticBody" type="StaticBody" parent="Cube"] + +input_ray_pickable = true +input_capture_on_drag = false +shape_count = 1 +shapes/0/shape = SubResource( 2 ) +shapes/0/transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0 ) +shapes/0/trigger = true +collision_layer = 1 +collision_mask = 1 +friction = 1.0 +bounce = 0.0 +constant_linear_velocity = Vector3( 0, 0, 0 ) +constant_angular_velocity = Vector3( 0, 0, 0 ) + +[node name="CollisionShape" type="CollisionShape" parent="Cube/StaticBody"] + +shape = SubResource( 2 ) +trigger = true +_update_shape_index = 0 + +[node name="StaticBody" type="StaticBody" parent="Cube.1"] + +input_ray_pickable = true +input_capture_on_drag = false +shape_count = 1 +shapes/0/shape = SubResource( 3 ) +shapes/0/transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0 ) +shapes/0/trigger = true +collision_layer = 1 +collision_mask = 1 +friction = 1.0 +bounce = 0.0 +constant_linear_velocity = Vector3( 0, 0, 0 ) +constant_angular_velocity = Vector3( 0, 0, 0 ) + +[node name="CollisionShape" type="CollisionShape" parent="Cube.1/StaticBody"] + +transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0 ) +shape = SubResource( 3 ) +trigger = true +_update_shape_index = 0 [node name="cover" parent="."] material_override = SubResource( 1 ) +material/0 = null + +[node name="spawns" type="Spatial" parent="."] + +transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.1, 0 ) + +[node name="0-1" type="Position3D" parent="spawns"] + +transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0.0511715, 1.64196, 1.41775 ) + +[node name="1-1" type="Position3D" parent="spawns"] + +transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0.0511715, 1.64196, 0.631948 ) + +[node name="2-1" type="Position3D" parent="spawns"] + +transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0.0511715, 1.64196, -0.150503 ) + +[node name="3-1" type="Position3D" parent="spawns"] + +transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0.0511715, 1.64196, -0.97198 ) + +[node name="0-0" type="Position3D" parent="spawns"] + +transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -0.732647, 1.64196, 1.41775 ) + +[node name="1-0" type="Position3D" parent="spawns"] + +transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -0.732647, 1.64196, 0.631948 ) + +[node name="2-0" type="Position3D" parent="spawns"] + +transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -0.732647, 1.64196, -0.150503 ) + +[node name="3-0" type="Position3D" parent="spawns"] + +transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -0.732647, 1.64196, -0.97198 ) + +[connection signal="input_event" from="Cube/StaticBody" to="." method="_on_body_input_event"] + +[connection signal="input_event" from="Cube.1/StaticBody" to="." method="_on_panel_input_event"] |
