feat: add npc simulation, instancing and visual scene
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
[gd_scene load_steps=6 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")
|
||||
|
||||
[node name="NpcVisual" type="CharacterBody3D"]
|
||||
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.5)
|
||||
mesh = SubResource("BoxMesh_d844k")
|
||||
Reference in New Issue
Block a user