poi.tscn/poi_gate.tscn's AnimatedSprite3D had no billboard mode set (default: disabled, fixed orientation in world space), so POI markers would appear to rotate/distort as the step-rotating camera moved around them. Set billboard = 2 (Y-locked), matching the convention already used for the player's own AnimatedSprite3D. Verified headless: POI, Ort1, and GateToCenter instances all report billboard mode 2 at runtime.
53 lines
1.6 KiB
Plaintext
53 lines
1.6 KiB
Plaintext
[gd_scene format=3]
|
|
|
|
[ext_resource type="Script" path="res://poi_gate.gd" id="1_gate"]
|
|
[ext_resource type="Texture2D" uid="uid://c3ajv7vb8c4fb" path="res://assets/debug/checkerboard.png" id="2_gate"]
|
|
|
|
[sub_resource type="SphereShape3D" id="SphereShape3D_gate"]
|
|
radius = 0.8699188
|
|
|
|
[sub_resource type="SpriteFrames" id="SpriteFrames_gate"]
|
|
animations = [{
|
|
"frames": [{
|
|
"duration": 1.0,
|
|
"texture": ExtResource("2_gate")
|
|
}],
|
|
"loop": true,
|
|
"name": &"default",
|
|
"speed": 5.0
|
|
}]
|
|
|
|
[sub_resource type="BoxShape3D" id="BoxShape3D_gate"]
|
|
size = Vector3(0.8, 2.132, 2.333828)
|
|
|
|
[node name="POIGate" type="Area3D"]
|
|
script = ExtResource("1_gate")
|
|
|
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -0.6096671)
|
|
shape = SubResource("SphereShape3D_gate")
|
|
|
|
[node name="AnimatedSprite3D" type="AnimatedSprite3D" parent="."]
|
|
billboard = 2
|
|
sprite_frames = SubResource("SpriteFrames_gate")
|
|
|
|
[node name="StaticBody3D" type="StaticBody3D" parent="."]
|
|
|
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="StaticBody3D"]
|
|
transform = Transform3D(0.6, 0, 0, 0, 0.6, 0, 0, 0, 0.6, 0, 0, -0.69380605)
|
|
shape = SubResource("BoxShape3D_gate")
|
|
|
|
[node name="Billboard" type="Node3D" parent="."]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.5, 0)
|
|
|
|
[node name="NameLabel" type="Label3D" parent="Billboard"]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.1, 0)
|
|
billboard = 1
|
|
text = "Tor zur Mitte"
|
|
font_size = 16
|
|
|
|
[node name="InteractionPrompt" type="Label3D" parent="Billboard"]
|
|
visible = false
|
|
billboard = 1
|
|
font_size = 12
|