diff options
Diffstat (limited to 'combinator.tscn')
| -rw-r--r-- | combinator.tscn | 62 |
1 files changed, 49 insertions, 13 deletions
diff --git a/combinator.tscn b/combinator.tscn index 72d4c86..15bd457 100644 --- a/combinator.tscn +++ b/combinator.tscn @@ -1,14 +1,15 @@ -[gd_scene load_steps=8 format=2] +[gd_scene load_steps=9 format=2] [ext_resource path="res://mesh/combinator.dae" type="PackedScene" id=1] [ext_resource path="res://scripts/combinator.gd" type="Script" id=2] -[ext_resource path="res://combinator_panel.tscn" type="PackedScene" id=3] +[ext_resource path="res://gray_mat.tres" type="Material" id=3] +[ext_resource path="res://combinator_panel.tscn" type="PackedScene" id=4] -[sub_resource type="ConvexPolygonShape" id=4] +[sub_resource type="ConvexPolygonShape" id=1] points = PoolVector3Array( 1, -1, -0.999512, 1, -1, 1, -1, -1, 0.999512, -0.999512, -1, -1, 1, 1, -0.999512, -0.999512, 1, -1, -1, 1, 0.999512, 0.999512, 1, 1, 1, -1, -0.999512, 1, 1, -0.999512, 0.999512, 1, 1, 1, -1, 1, 1, -1, 1, 0.999512, 1, 1, -1, 1, 0.999512, -1, -1, 0.999512, -1, -1, 0.999512, -1, 1, 0.999512, -0.999512, 1, -1, -0.999512, -1, -1, 1, 1, -0.999512, 1, -1, -0.999512, -0.999512, -1, -1, -0.999512, 1, -1 ) -[sub_resource type="ConvexPolygonShape" id=5] +[sub_resource type="ConvexPolygonShape" id=2] points = PoolVector3Array( -1, -1, 1.46973, -1, 1, 1.46973, -1, 1, -1, -1, -1, -1, -1, -1, -1, -1, 1, -1, 1, 1, -1, 1, -1, -1, 1, -1, -1, 1, 1, -1, 1, 1, 1.46973, 1, -1, 1.46973, 1, -1, 1.46973, 1, 1, 1.46973, -1, 1, 1.46973, -1, -1, 1.46973, -1, -1, -1, 1, -1, -1, 1, -1, 1.46973, -1, -1, 1.46973, 1, 1, -1, -1, 1, -1, -1, 1, 1.46973, 1, 1, 1.46973 ) @@ -16,7 +17,7 @@ points = PoolVector3Array( -1, -1, 1.46973, -1, 1, 1.46973, -1, 1, -1, -1, -1, - extents = Vector3( 1, 1, 1 ) -[sub_resource type="SpatialMaterial" id=2] +[sub_resource type="SpatialMaterial" id=4] flags_transparent = false flags_unshaded = true @@ -56,12 +57,16 @@ uv2_offset = Vector2( 0, 0 ) script = ExtResource( 2 ) +[node name="Cube" parent="."] + +material_override = ExtResource( 3 ) + [node name="StaticBody" type="StaticBody" parent="Cube"] input_ray_pickable = true input_capture_on_drag = false shape_count = 1 -shapes/0/shape = SubResource( 4 ) +shapes/0/shape = SubResource( 1 ) shapes/0/transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0 ) shapes/0/trigger = true collision_layer = 1 @@ -73,16 +78,20 @@ constant_angular_velocity = Vector3( 0, 0, 0 ) [node name="CollisionShape" type="CollisionShape" parent="Cube/StaticBody"] -shape = SubResource( 4 ) +shape = SubResource( 1 ) trigger = true _update_shape_index = 0 +[node name="Cube.1" parent="."] + +material_override = ExtResource( 3 ) + [node name="StaticBody" type="StaticBody" parent="Cube.1"] input_ray_pickable = true input_capture_on_drag = false shape_count = 1 -shapes/0/shape = SubResource( 5 ) +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 @@ -94,11 +103,18 @@ 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( 5 ) +shape = SubResource( 2 ) trigger = true _update_shape_index = 0 +[node name="Cube.2" parent="."] + +material_override = ExtResource( 3 ) + +[node name="Cylinder.1" parent="."] + +material_override = ExtResource( 3 ) + [node name="Viewport" type="Viewport" parent="."] size = Vector2( 400, 400 ) @@ -121,7 +137,7 @@ shadow_atlas_quad_1 = 2 shadow_atlas_quad_2 = 3 shadow_atlas_quad_3 = 4 -[node name="CombinatorPanel" parent="Viewport" instance=ExtResource( 3 )] +[node name="CombinatorPanel" parent="Viewport" instance=ExtResource( 4 )] [node name="Area" type="Area" parent="."] @@ -149,7 +165,7 @@ collision_mask = 1 transform = Transform( -1, 0, -8.74228e-08, 0, 1, 0, 8.74228e-08, 0, -1, 0, 0.955984, 0 ) layers = 1 -material_override = SubResource( 2 ) +material_override = SubResource( 4 ) cast_shadow = 1 extra_cull_margin = 0.0 visible_in_all_rooms = false @@ -175,7 +191,7 @@ transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -0.809103, 1.6303, -1.32872 ) [node name="point" type="Camera" parent="."] -transform = Transform( -3.09086e-08, -0.707107, 0.707107, -1.28028e-08, 0.707107, 0.707107, -1, 1.28028e-08, -3.09086e-08, 2.2, 3, 0 ) +transform = Transform( -3.09086e-08, -0.707107, 0.707107, -1.28028e-08, 0.707107, 0.707107, -1, 1.28028e-08, -3.09086e-08, 2.2, 3.5, 0 ) projection = 0 fov = 60.0 near = 0.1 @@ -187,6 +203,26 @@ environment = null h_offset = 0.0 v_offset = 0.0 +[node name="OmniLight" type="OmniLight" parent="."] + +transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -1.17673, 2.26107, 1.77229 ) +layers = 1 +light_color = Color( 1, 1, 1, 1 ) +light_energy = 4.0 +light_negative = false +light_specular = 0.1 +light_cull_mask = -1 +shadow_enabled = true +shadow_color = Color( 0, 0, 0, 1 ) +shadow_bias = 0.1 +shadow_contact = 0.0 +shadow_max_distance = 0.0 +editor_only = false +omni_range = 5.0 +omni_attenuation = 1.0 +omni_shadow_mode = 0 +omni_shadow_detail = 1 + [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"] |
