Almost fixed entities
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
[gd_scene load_steps=11 format=3 uid="uid://yhtpoum3eek7"]
|
||||
[gd_scene load_steps=12 format=3 uid="uid://yhtpoum3eek7"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://ixwikdguyhf0" path="res://scripts/Entity/Rosa.gd" id="1_r5ufg"]
|
||||
[ext_resource type="Script" uid="uid://dtjjqp2atjyhr" path="res://scripts/Entity/Entity.gd" id="1_rvn3n"]
|
||||
@@ -7,6 +7,7 @@
|
||||
[ext_resource type="Shader" uid="uid://7h2axb2tsh17" path="res://shaders/NPC Shader.gdshader" id="3_j5vis"]
|
||||
[ext_resource type="Script" uid="uid://c5nfs0m6ua4eb" path="res://scripts/Entity/Component/EntityMovement.gd" id="4_7s3uq"]
|
||||
[ext_resource type="Texture2D" uid="uid://cofrgefp8e617" path="res://textures/human.png" id="4_rvn3n"]
|
||||
[ext_resource type="Script" uid="uid://dfh2rh8idx267" path="res://scripts/Entity/Component/EntityInteractor.gd" id="5_ug24t"]
|
||||
|
||||
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_ls7r8"]
|
||||
radius = 0.437175
|
||||
@@ -32,10 +33,11 @@ metadata/_custom_type_script = "uid://ixwikdguyhf0"
|
||||
script = ExtResource("1_rvn3n")
|
||||
metadata/_custom_type_script = "uid://dtjjqp2atjyhr"
|
||||
|
||||
[node name="EntityDirection" type="Node" parent="Entity" node_paths=PackedStringArray("meshInstance")]
|
||||
[node name="EntityDirection" type="Node" parent="Entity" node_paths=PackedStringArray("meshInstance", "characterBody")]
|
||||
script = ExtResource("2_vcxxc")
|
||||
meshInstance = NodePath("../../MeshInstance3D")
|
||||
direction = 2
|
||||
characterBody = NodePath("../..")
|
||||
metadata/_custom_type_script = "uid://cjfcpi7sxentf"
|
||||
|
||||
[node name="EntityMoving" type="Node" parent="Entity" node_paths=PackedStringArray("characterBody", "entity", "entityDirection")]
|
||||
@@ -45,6 +47,14 @@ entity = NodePath("..")
|
||||
entityDirection = NodePath("../EntityDirection")
|
||||
movementType = 0
|
||||
|
||||
[node name="EntityInteractor" type="Node" parent="Entity" node_paths=PackedStringArray("entityDirection", "characterBody", "entity")]
|
||||
script = ExtResource("5_ug24t")
|
||||
interactorType = 0
|
||||
entityDirection = NodePath("../EntityDirection")
|
||||
characterBody = NodePath("../..")
|
||||
entity = NodePath("..")
|
||||
metadata/_custom_type_script = "uid://dfh2rh8idx267"
|
||||
|
||||
[node name="Rosa Camera" type="Camera3D" parent="." node_paths=PackedStringArray("follow")]
|
||||
transform = Transform3D(1, 0, 0, 0, 0.130388, 0.991463, 0, -0.991463, 0.130388, 0, 3.14994, 0.404846)
|
||||
current = true
|
||||
|
Reference in New Issue
Block a user