Godsim/scenes/models/tile.tscn

70 lines
3.2 KiB
Plaintext
Raw Normal View History

2024-05-30 06:55:13 +03:00
[gd_scene load_steps=9 format=3 uid="uid://dj0odn77jplje"]
2024-05-30 02:14:08 +03:00
[ext_resource type="Script" path="res://scripts/Tile.gd" id="1_s01tx"]
2024-05-30 06:55:13 +03:00
[ext_resource type="Texture2D" uid="uid://d1k366i5jjtrk" path="res://textures/plus.svg" id="2_cddgt"]
[sub_resource type="ConcavePolygonShape3D" id="ConcavePolygonShape3D_qnc60"]
data = PackedVector3Array(-5, 2.5, 5, 5, 2.5, 5, -5, -2.5, 5, 5, 2.5, 5, 5, -2.5, 5, -5, -2.5, 5, 5, 2.5, -5, -5, 2.5, -5, 5, -2.5, -5, -5, 2.5, -5, -5, -2.5, -5, 5, -2.5, -5, 5, 2.5, 5, 5, 2.5, -5, 5, -2.5, 5, 5, 2.5, -5, 5, -2.5, -5, 5, -2.5, 5, -5, 2.5, -5, -5, 2.5, 5, -5, -2.5, -5, -5, 2.5, 5, -5, -2.5, 5, -5, -2.5, -5, 5, 2.5, 5, -5, 2.5, 5, 5, 2.5, -5, -5, 2.5, 5, -5, 2.5, -5, 5, 2.5, -5, -5, -2.5, 5, 5, -2.5, 5, -5, -2.5, -5, 5, -2.5, 5, 5, -2.5, -5, -5, -2.5, -5)
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_f1ys8"]
transparency = 1
albedo_color = Color(1, 1, 1, 0)
2024-05-30 02:14:08 +03:00
[sub_resource type="BoxMesh" id="BoxMesh_3vjuu"]
2024-05-30 06:55:13 +03:00
material = SubResource("StandardMaterial3D_f1ys8")
2024-05-30 02:14:08 +03:00
size = Vector3(10, 5, 10)
[sub_resource type="ConcavePolygonShape3D" id="ConcavePolygonShape3D_scykg"]
data = PackedVector3Array(-5, 2.5, 5, 5, 2.5, 5, -5, -2.5, 5, 5, 2.5, 5, 5, -2.5, 5, -5, -2.5, 5, 5, 2.5, -5, -5, 2.5, -5, 5, -2.5, -5, -5, 2.5, -5, -5, -2.5, -5, 5, -2.5, -5, 5, 2.5, 5, 5, 2.5, -5, 5, -2.5, 5, 5, 2.5, -5, 5, -2.5, -5, 5, -2.5, 5, -5, 2.5, -5, -5, 2.5, 5, -5, -2.5, -5, -5, 2.5, 5, -5, -2.5, 5, -5, -2.5, -5, 5, 2.5, 5, -5, 2.5, 5, 5, 2.5, -5, -5, 2.5, 5, -5, 2.5, -5, 5, 2.5, -5, -5, -2.5, 5, 5, -2.5, 5, -5, -2.5, -5, 5, -2.5, 5, 5, -2.5, -5, -5, -2.5, -5)
2024-05-30 06:55:13 +03:00
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_0knec"]
albedo_color = Color(0.203922, 0.458824, 0.113725, 1)
[sub_resource type="BoxMesh" id="BoxMesh_doul4"]
material = SubResource("StandardMaterial3D_0knec")
size = Vector3(10, 5, 10)
2024-05-30 02:14:08 +03:00
[node name="Tile" type="StaticBody3D"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -2.5, 0)
script = ExtResource("1_s01tx")
2024-05-30 06:55:13 +03:00
[node name="Empty_tile" type="CollisionShape3D" parent="."]
shape = SubResource("ConcavePolygonShape3D_qnc60")
[node name="VisibleMesh" type="MeshInstance3D" parent="Empty_tile"]
2024-05-30 02:14:08 +03:00
mesh = SubResource("BoxMesh_3vjuu")
2024-05-30 06:55:13 +03:00
skeleton = NodePath("../..")
[node name="plus_sprite" type="Sprite3D" parent="Empty_tile"]
transform = Transform3D(2, 0, 0, 0, -8.74228e-08, -2, 0, 2, -8.74228e-08, 0, 2.501, 0)
texture = ExtResource("2_cddgt")
2024-05-30 02:14:08 +03:00
2024-05-30 06:55:13 +03:00
[node name="Plain_tile" type="CollisionShape3D" parent="."]
visible = false
2024-05-30 02:14:08 +03:00
shape = SubResource("ConcavePolygonShape3D_scykg")
2024-05-30 06:55:13 +03:00
[node name="VisibleMesh" type="MeshInstance3D" parent="Plain_tile"]
mesh = SubResource("BoxMesh_doul4")
skeleton = NodePath("../..")
[node name="Forest_tile" type="CollisionShape3D" parent="."]
visible = false
shape = SubResource("ConcavePolygonShape3D_scykg")
[node name="VisibleMesh" type="MeshInstance3D" parent="Forest_tile"]
mesh = SubResource("BoxMesh_doul4")
skeleton = NodePath("../..")
[node name="ray_north" type="RayCast3D" parent="."]
target_position = Vector3(10, 0, 0)
[node name="ray_south" type="RayCast3D" parent="."]
target_position = Vector3(-10, 0, 0)
[node name="ray_west" type="RayCast3D" parent="."]
target_position = Vector3(0, 0, -10)
[node name="ray_east" type="RayCast3D" parent="."]
target_position = Vector3(0, 0, 10)
collide_with_areas = true