skullball/godot/scenes/misc/goal.tscn
2026-08-08 20:44:38 +03:00

43 lines
1.5 KiB
Plaintext

[gd_scene format=3 uid="uid://c1r8nk58cci3a"]
[ext_resource type="Shader" uid="uid://bafca0fr7yxgo" path="res://shaders/goal_shader.gdshader" id="1_vdq5s"]
[ext_resource type="Texture2D" uid="uid://bn21glvbfmyvd" path="res://assets/goal_icon.png" id="2_sxx5i"]
[sub_resource type="ShaderMaterial" id="ShaderMaterial_sxx5i"]
resource_local_to_scene = true
render_priority = 0
shader = ExtResource("1_vdq5s")
shader_parameter/goal_color = Vector3(0, 0, 0)
[sub_resource type="CylinderMesh" id="CylinderMesh_1cgct"]
resource_local_to_scene = true
material = SubResource("ShaderMaterial_sxx5i")
top_radius = 2.0
bottom_radius = 2.0
cap_top = false
cap_bottom = false
[sub_resource type="CylinderShape3D" id="CylinderShape3D_1cgct"]
radius = 2.0
[node name="goal" type="Goal" unique_id=177528504 node_paths=PackedStringArray("mesh", "icon")]
mesh = NodePath("mesh_instance_3d")
icon = NodePath("goal_icon")
collision_layer = 8
collision_mask = 11
[node name="mesh_instance_3d" type="MeshInstance3D" parent="." unique_id=587608036]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0)
mesh = SubResource("CylinderMesh_1cgct")
[node name="collision_shape_3d" type="CollisionShape3D" parent="." unique_id=2021568043]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0)
shape = SubResource("CylinderShape3D_1cgct")
[node name="goal_icon" type="Sprite3D" parent="." unique_id=625339734]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 2.9555063, 0)
pixel_size = 0.005
billboard = 1
no_depth_test = true
texture = ExtResource("2_sxx5i")