Files
gamedev-the-steward/player/npc/NpcVisual.tscn
T

63 lines
2.0 KiB
Plaintext

[gd_scene load_steps=8 format=3 uid="uid://dhxxyprqflotq"]
[ext_resource type="Script" uid="uid://bha8uf40p3sa0" path="res://player/npc/NpcVisual.gd" id="1_ixfoq"]
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_d844k"]
[sub_resource type="CapsuleMesh" id="CapsuleMesh_d844k"]
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_d844k"]
albedo_color = Color(1, 0.22352941, 1, 1)
[sub_resource type="BoxMesh" id="BoxMesh_d844k"]
material = SubResource("StandardMaterial3D_d844k")
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_food"]
albedo_color = Color(0.38, 0.22, 0.08, 1)
roughness = 0.9
[sub_resource type="SphereMesh" id="SphereMesh_food"]
material = SubResource("StandardMaterial3D_food")
radius = 0.28
height = 0.48
[node name="NpcVisual" type="CharacterBody3D"]
collision_layer = 2
collision_mask = 1
script = ExtResource("1_ixfoq")
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.85, 0)
shape = SubResource("CapsuleShape3D_d844k")
[node name="MeshInstance3D" type="MeshInstance3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.85, 0)
mesh = SubResource("CapsuleMesh_d844k")
[node name="FaceMarker" type="MeshInstance3D" parent="."]
transform = Transform3D(0.15, 0, 0, 0, 0.15, 0, 0, 0, 0.35, 0, 1.2, 0.59052056)
mesh = SubResource("BoxMesh_d844k")
[node name="ProfessionProp" type="MeshInstance3D" parent="."]
[node name="ProfessionLabel" type="Label3D" parent="."]
position = Vector3(0, 2.05, 0)
billboard = 1
no_depth_test = true
text = "Villager"
font_size = 24
outline_size = 6
modulate = Color(1, 0.96, 0.82, 1)
pixel_size = 0.007
[node name="CarriedFood" type="MeshInstance3D" parent="."]
visible = false
transform = Transform3D(0.75, 0, 0, 0, 0.75, 0, 0, 0, 0.75, 0.48, 0.7, 0)
mesh = SubResource("SphereMesh_food")
[node name="NavigationAgent3D" type="NavigationAgent3D" parent="."]
path_desired_distance = 0.3
target_desired_distance = 0.5
height = 1.7
radius = 0.4