Fixed Pickup behaviour

This commit is contained in:
2025-04-06 22:03:13 +02:00
parent 26502f2d37
commit f08f3a7978
8 changed files with 107 additions and 38 deletions
@@ -0,0 +1,14 @@
shader_type spatial;
void vertex() {
// Called for every vertex the material is visible on.
}
void fragment() {
// Called for every pixel the material is visible on.
}
//void light() {
// // Called for every pixel for every light affecting the material.
// // Uncomment to replace the default light processing function with this one.
//}
@@ -0,0 +1 @@
uid://dn6jmboabfrb2
+40
View File
@@ -0,0 +1,40 @@
[gd_scene load_steps=5 format=3 uid="uid://cf0jpuio8tgim"]
[ext_resource type="Script" uid="uid://v34pl0nlp4x" path="res://scripts/CSharp/Common/SpriteSwitcher.cs" id="1_scmhv"]
[ext_resource type="Texture2D" uid="uid://c4ggew55w0icj" path="res://art/farm/farming/farmobjekte/harke.png" id="2_jv400"]
[sub_resource type="SphereMesh" id="SphereMesh_0ptl4"]
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_scmhv"]
transparency = 1
blend_mode = 3
emission_enabled = true
emission = Color(1, 1, 1, 1)
[node name="SpriteSwitcher" type="Node3D" node_paths=PackedStringArray("_trueSprite", "_falseSprite")]
script = ExtResource("1_scmhv")
_trueSprite = NodePath("Hoe on")
_falseSprite = NodePath("Hoe off")
[node name="Hoe on" type="Sprite3D" parent="."]
modulate = Color(0, 0.996078, 0, 1)
pixel_size = 0.001
billboard = 1
texture = ExtResource("2_jv400")
region_rect = Rect2(484, 143, 365, 1317)
[node name="Hoe off" type="Sprite3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, -8.47033e-22, 0, 8.47033e-22, 1, 0.106585, 0, 0.0173626)
visible = false
modulate = Color(1, 0, 0, 1)
pixel_size = 0.001
billboard = 1
texture = ExtResource("2_jv400")
region_rect = Rect2(421, 0, 539, 965)
[node name="CSGMesh3D" type="CSGMesh3D" parent="."]
transparency = 0.5
cast_shadow = 0
calculate_tangents = false
mesh = SubResource("SphereMesh_0ptl4")
material = SubResource("StandardMaterial3D_scmhv")