GodotComponentTest/scenes/HexTile3D.tscn

36 lines
1.1 KiB
Plaintext
Raw Normal View History

2022-08-25 15:33:44 +02:00
[gd_scene load_steps=5 format=2]
[ext_resource path="res://scenes/HexTile3D.gd" type="Script" id=1]
[sub_resource type="CylinderMesh" id=6]
top_radius = 0.5
bottom_radius = 0.5
height = 1.0
radial_segments = 6
rings = 1
2022-08-31 16:43:15 +02:00
[sub_resource type="SpatialMaterial" id=7]
albedo_color = Color( 0.160784, 0.384314, 0.0901961, 1 )
2022-08-25 15:33:44 +02:00
[sub_resource type="CylinderShape" id=5]
radius = 0.5
height = 1.0
2022-08-31 16:43:15 +02:00
[node name="HexTile3D" type="Spatial"]
transform = Transform( -1.62921e-07, 0, 1, 0, 1, 0, -1, 0, -1.62921e-07, 0, 0, 0 )
2022-08-25 15:33:44 +02:00
script = ExtResource( 1 )
2022-08-31 16:43:15 +02:00
[node name="Mesh" type="MeshInstance" parent="."]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.5, 0 )
mesh = SubResource( 6 )
material/0 = SubResource( 7 )
[node name="Area" type="Area" parent="Mesh"]
2022-08-25 15:33:44 +02:00
2022-08-31 16:43:15 +02:00
[node name="CollisionShape" type="CollisionShape" parent="Mesh/Area"]
2022-08-25 15:33:44 +02:00
shape = SubResource( 5 )
2022-08-31 16:43:15 +02:00
[connection signal="input_event" from="Mesh/Area" to="." method="_on_Area_input_event"]
[connection signal="mouse_entered" from="Mesh/Area" to="." method="_on_Area_mouse_entered"]
[connection signal="mouse_exited" from="Mesh/Area" to="." method="_on_Area_mouse_exited"]