Commit 62e0200e authored by Gavin An's avatar Gavin An

디렉터리 분리

parent 1b7d06bc
......@@ -4,12 +4,12 @@ importer="scene"
importer_version=1
type="PackedScene"
uid="uid://dle4lxukpit5h"
path="res://.godot/imported/archer.fbx-f01f3623161fdb24b5ab36bfd542f079.scn"
path="res://.godot/imported/archer_lv1.fbx-a9a47049279ba111279580f5bf681759.scn"
[deps]
source_file="res://assets/models/units/archer/lv1/archer.fbx"
dest_files=["res://.godot/imported/archer.fbx-f01f3623161fdb24b5ab36bfd542f079.scn"]
source_file="res://assets/models/units/archer/lv1/archer_lv1.fbx"
dest_files=["res://.godot/imported/archer_lv1.fbx-a9a47049279ba111279580f5bf681759.scn"]
[params]
......
[gd_scene format=3 uid="uid://doem71357qgkv"]
[ext_resource type="PackedScene" uid="uid://dle4lxukpit5h" path="res://assets/models/units/archer/lv1/archer_lv1.fbx" id="1_c72bf"]
[node name="archer_lv1" unique_id=451669575 instance=ExtResource("1_c72bf")]
transform = Transform3D(-1, 0, 8.742278e-08, 0, 1, 0, -8.742278e-08, 0, -1, 0, 0, 0)
......@@ -2,9 +2,9 @@
importer="texture"
type="CompressedTexture2D"
uid="uid://dehf64b1dbabt"
path.s3tc="res://.godot/imported/archer_0.png-c4e80e65d5d70cafb2581f52b4339c6e.s3tc.ctex"
path.etc2="res://.godot/imported/archer_0.png-c4e80e65d5d70cafb2581f52b4339c6e.etc2.ctex"
uid="uid://dncptdm16assu"
path.s3tc="res://.godot/imported/archer_lv1_0.png-3e821f67463802961b22fecff957a86f.s3tc.ctex"
path.etc2="res://.godot/imported/archer_lv1_0.png-3e821f67463802961b22fecff957a86f.etc2.ctex"
metadata={
"imported_formats": ["s3tc_bptc", "etc2_astc"],
"vram_texture": true
......@@ -15,8 +15,8 @@ generator_parameters={
[deps]
source_file="res://assets/models/units/archer/lv1/archer_0.png"
dest_files=["res://.godot/imported/archer_0.png-c4e80e65d5d70cafb2581f52b4339c6e.s3tc.ctex", "res://.godot/imported/archer_0.png-c4e80e65d5d70cafb2581f52b4339c6e.etc2.ctex"]
source_file="res://assets/models/units/archer/lv1/archer_lv1_0.png"
dest_files=["res://.godot/imported/archer_lv1_0.png-3e821f67463802961b22fecff957a86f.s3tc.ctex", "res://.godot/imported/archer_lv1_0.png-3e821f67463802961b22fecff957a86f.etc2.ctex"]
[params]
......
......@@ -3,13 +3,13 @@
importer="scene"
importer_version=1
type="PackedScene"
uid="uid://d2wttvhx0s63m"
path="res://.godot/imported/warrior.fbx-7d52916b3755e80bc8e091b3f7b6582f.scn"
uid="uid://dwv007ctu5tcy"
path="res://.godot/imported/warrior_lv1.fbx-ab729078f36da54450cd1bf868c5b4eb.scn"
[deps]
source_file="res://assets/models/units/warrior/lv1/warrior.fbx"
dest_files=["res://.godot/imported/warrior.fbx-7d52916b3755e80bc8e091b3f7b6582f.scn"]
source_file="res://assets/models/units/warrior/lv1/warrior_lv1.fbx"
dest_files=["res://.godot/imported/warrior_lv1.fbx-ab729078f36da54450cd1bf868c5b4eb.scn"]
[params]
......
[gd_scene format=3 uid="uid://degeahklp06dd"]
[ext_resource type="PackedScene" uid="uid://dwv007ctu5tcy" path="res://assets/models/units/warrior/lv1/warrior_lv1.fbx" id="1_s7hch"]
[node name="warrior_lv1" unique_id=1752898427 instance=ExtResource("1_s7hch")]
transform = Transform3D(-1, 0, 8.742278e-08, 0, 1, 0, -8.742278e-08, 0, -1, 0, 0, 0)
......@@ -2,9 +2,9 @@
importer="texture"
type="CompressedTexture2D"
uid="uid://c1wa53f1gj63t"
path.s3tc="res://.godot/imported/warrior_0.png-5cc4e97d0e3e04559b8ce4a062758cb9.s3tc.ctex"
path.etc2="res://.godot/imported/warrior_0.png-5cc4e97d0e3e04559b8ce4a062758cb9.etc2.ctex"
uid="uid://5tl13y1wfhl4"
path.s3tc="res://.godot/imported/warrior_lv1_0.png-526fb05f4bb2143b54e6f5b1004b3328.s3tc.ctex"
path.etc2="res://.godot/imported/warrior_lv1_0.png-526fb05f4bb2143b54e6f5b1004b3328.etc2.ctex"
metadata={
"imported_formats": ["s3tc_bptc", "etc2_astc"],
"vram_texture": true
......@@ -15,8 +15,8 @@ generator_parameters={
[deps]
source_file="res://assets/models/units/warrior/lv1/warrior_0.png"
dest_files=["res://.godot/imported/warrior_0.png-5cc4e97d0e3e04559b8ce4a062758cb9.s3tc.ctex", "res://.godot/imported/warrior_0.png-5cc4e97d0e3e04559b8ce4a062758cb9.etc2.ctex"]
source_file="res://assets/models/units/warrior/lv1/warrior_lv1_0.png"
dest_files=["res://.godot/imported/warrior_lv1_0.png-526fb05f4bb2143b54e6f5b1004b3328.s3tc.ctex", "res://.godot/imported/warrior_lv1_0.png-526fb05f4bb2143b54e6f5b1004b3328.etc2.ctex"]
[params]
......
[gd_scene format=3 uid="uid://bruux0uo2l744"]
[ext_resource type="PackedScene" uid="uid://d2k2a8qtjujay" path="res://src/entities/units/unit/archer/lv1/archer_unit.tscn" id="1_m1bqh"]
[ext_resource type="PackedScene" uid="uid://d2k2a8qtjujay" path="res://src/entities/units/unit/archer/lv1/archer_lv1_unit.tscn" id="1_m1bqh"]
[ext_resource type="PackedScene" uid="uid://d3ao340d5pri6" path="res://assets/models/items/weapons/wood_bow/wood_bow.tscn" id="2_qme0i"]
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_gy7ce"]
......@@ -28,6 +28,11 @@ outer_radius = 0.7
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.6, 0)
shape = SubResource("CapsuleShape3D_gy7ce")
[node name="ArcherLv1Unit_archer_Armature_Skeleton3D#BoneAttachment3D" type="BoneAttachment3D" parent="." unique_id=806428]
transform = Transform3D(0.0030367523, 0.9660035, -0.2585078, 0.9288453, -0.09849107, -0.35713556, -0.37045443, -0.23902977, -0.8975674, 0.5984587, -0.055677217, 1.0292836)
bone_name = "LeftHand"
bone_idx = 15
[node name="VisualMesh" type="MeshInstance3D" parent="." unique_id=262697830]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.6, 0)
visible = false
......@@ -41,38 +46,8 @@ mesh = SubResource("TorusMesh_dx6da")
[node name="ArcherLv1Unit" parent="." unique_id=768639629 instance=ExtResource("1_m1bqh")]
[node name="Skeleton3D" parent="ArcherLv1Unit/archer/Armature" parent_id_path=PackedInt32Array(768639629, 1830403466, 193588432) index="0" unique_id=169591956]
bones/0/position = Vector3(0.026773315, 0.058244295, 0.66592354)
bones/0/rotation = Quaternion(0.9375597, -0.04276618, -0.06803467, 0.33841395)
bones/1/rotation = Quaternion(0.67169154, 0.07827249, -0.46310517, 0.57292014)
bones/2/rotation = Quaternion(0.3538488, -0.0010770241, -0.040844426, 0.93440974)
bones/3/rotation = Quaternion(-0.5438048, -0.20880875, 0.08612142, 0.808244)
bones/4/rotation = Quaternion(-0.30479345, -0.0470872, 0.011190875, 0.95118797)
bones/5/rotation = Quaternion(0.70468295, -0.09941805, -0.02616743, 0.7020351)
bones/6/rotation = Quaternion(0.18310326, -0.012076312, 0.009141002, 0.98297703)
bones/7/rotation = Quaternion(-0.21842246, 0.22995871, -0.024152525, 0.9480651)
bones/8/rotation = Quaternion(-0.40219826, 0.11807207, 0.015353041, 0.9077775)
bones/9/rotation = Quaternion(-0.2967818, 0.012359496, -0.040458985, 0.95400786)
bones/10/rotation = Quaternion(-0.05003484, -0.004152874, -0.009507843, 0.9986936)
bones/11/rotation = Quaternion(0.020363923, -0.0036421337, 0.015711483, 0.99966264)
bones/12/rotation = Quaternion(0.35137665, 0.53667605, -0.32624567, 0.69431764)
bones/13/rotation = Quaternion(0.24114826, 0.16799335, -0.11536422, 0.94885033)
bones/14/rotation = Quaternion(-0.104978435, -0.10325211, -0.033470202, 0.9885335)
bones/15/rotation = Quaternion(0.21576498, -0.27789524, 0.030659318, 0.9355639)
bones/16/rotation = Quaternion(0.27586567, -0.5642624, 0.24629286, 0.7381368)
bones/17/rotation = Quaternion(0.1570531, -0.05379743, -0.5219291, 0.8366781)
bones/18/rotation = Quaternion(-0.65816784, 0.12196127, -0.54410857, 0.50585216)
bones/19/rotation = Quaternion(0.2410946, 0.13675195, 0.20253429, 0.93922967)
bones/20/rotation = Quaternion(0.049427606, -0.002341814, -0.014178355, 0.9986744)
bones/21/rotation = Quaternion(0.22481446, 0.06458093, -0.0023889083, 0.97225624)
[node name="BoneAttachment3D" type="BoneAttachment3D" parent="ArcherLv1Unit/archer/Armature/Skeleton3D" index="1" unique_id=806428]
transform = Transform3D(0.0030367523, 0.9660035, -0.2585078, 0.9288453, -0.09849107, -0.35713556, -0.37045443, -0.23902977, -0.8975674, 0.5984587, -0.055677217, 1.0292836)
bone_name = "LeftHand"
bone_idx = 15
[node name="wood_bow" parent="ArcherLv1Unit/archer/Armature/Skeleton3D/BoneAttachment3D" unique_id=987008240 instance=ExtResource("2_qme0i")]
[node name="ArcherLv1Unit_archer_Armature_Skeleton3D_BoneAttachment3D#wood_bow" parent="." unique_id=987008240 instance=ExtResource("2_qme0i")]
transform = Transform3D(-1.4950176e-08, 0.34202015, -0.9396926, -1, -4.371139e-08, 0, -4.1075268e-08, 0.9396926, 0.34202015, 0, 0, 0)
[editable path="ArcherLv1Unit"]
[editable path="ArcherLv1Unit/archer"]
[editable path="ArcherLv1Unit/archer_lv1"]
[gd_scene format=3 uid="uid://cftdvlslaqab"]
[ext_resource type="PackedScene" uid="uid://c6wju2s7ey11q" path="res://src/entities/units/unit/warrior/lv1/warrior.tscn" id="1_gy7ce"]
[ext_resource type="PackedScene" uid="uid://degeahklp06dd" path="res://assets/models/units/warrior/lv1/warrior_lv1.tscn" id="1_gy7ce"]
[ext_resource type="PackedScene" uid="uid://o4bsh40353h2" path="res://assets/models/items/weapons/old_sword/old_sword.tscn" id="2_gy7ce"]
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_gy7ce"]
......@@ -39,39 +39,13 @@ mesh = SubResource("TorusMesh_dx6da")
[node name="NavigationAgent3D" type="NavigationAgent3D" parent="." unique_id=1045269139]
[node name="warrior" parent="." unique_id=1583845935 instance=ExtResource("1_gy7ce")]
[node name="warrior_lv1" parent="." unique_id=1752898427 instance=ExtResource("1_gy7ce")]
[node name="Skeleton3D" parent="warrior/Armature" parent_id_path=PackedInt32Array(1583845935, 1122658972) index="0" unique_id=1756619771]
bones/0/position = Vector3(0.008906826, -0.016679727, 0.43917266)
bones/0/rotation = Quaternion(0.5769956, -0.6211797, -0.5235334, 0.08440762)
bones/1/rotation = Quaternion(0.3405336, 0.50771105, -0.69530636, 0.37790936)
bones/2/rotation = Quaternion(0.6037263, 0.2845332, 0.26035553, 0.6976894)
bones/3/rotation = Quaternion(-0.58000565, -0.13442044, 0.031176709, 0.80284035)
bones/4/rotation = Quaternion(-0.4466983, -0.10617086, 0.00024005448, 0.8883628)
bones/5/rotation = Quaternion(0.60905373, 0.28895423, 0.43019533, 0.60040903)
bones/6/rotation = Quaternion(0.37091663, -0.0070300167, 0.33285922, 0.8669349)
bones/7/rotation = Quaternion(-0.2209062, 0.06417928, -0.046449788, 0.972072)
bones/8/rotation = Quaternion(-0.45842803, 0.1347912, 0.014290656, 0.8783341)
bones/9/rotation = Quaternion(-0.25834036, 0.20522211, 0.11844286, 0.9365444)
bones/10/rotation = Quaternion(0.022619344, 0.08164339, -0.010146947, 0.9963533)
bones/11/rotation = Quaternion(-0.04387128, 0.042346712, -0.037475266, 0.9974356)
bones/12/rotation = Quaternion(0.47878474, 0.6548964, -0.2680936, 0.51961696)
bones/13/rotation = Quaternion(0.45065325, 0.38060609, 0.33229527, 0.7359556)
bones/14/rotation = Quaternion(-0.64165676, -0.21268447, 0.33198053, 0.6578989)
bones/16/rotation = Quaternion(-0.5172855, 0.5582187, -0.3922586, -0.5166631)
bones/17/rotation = Quaternion(0.537166, -0.20910145, -0.24741791, 0.7787899)
bones/18/rotation = Quaternion(-0.27791968, 0.023365224, -0.5383427, 0.795237)
bones/20/rotation = Quaternion(0.25569445, 0.07016864, 0.0060589095, 0.9641889)
bones/21/rotation = Quaternion(0.17097658, 0.2306515, -0.1883551, 0.93919605)
bones/22/rotation = Quaternion(-0.15805918, -2.3112833e-08, 0.0019670601, 0.9874277)
bones/23/rotation = Quaternion(0.5403607, 5.8547363e-09, -0.0067247013, 0.84140664)
[node name="BoneAttachment3D" type="BoneAttachment3D" parent="warrior/Armature/Skeleton3D" index="1" unique_id=275485168]
transform = Transform3D(0.5152335, -0.8477933, 0.12561765, -0.62911963, -0.27458957, 0.7271914, -0.58201486, -0.45370203, -0.6748423, -0.23612644, 0.20563285, 0.57239693)
[node name="BoneAttachment3D" type="BoneAttachment3D" parent="warrior_lv1/Armature/Skeleton3D" parent_id_path=PackedInt32Array(1752898427, 1902318440) index="1" unique_id=384483517]
transform = Transform3D(0.95618296, -0.26619333, -0.12187615, 0.20541555, 0.3133698, 0.9271476, -0.20860809, -0.91155845, 0.35431892, -0.26518282, 0.18938488, 0.5840085)
bone_name = "RightHand"
bone_idx = 19
[node name="old_sword" parent="warrior/Armature/Skeleton3D/BoneAttachment3D" unique_id=811983829 instance=ExtResource("2_gy7ce")]
transform = Transform3D(0.24104542, -0.25651523, 0.662267, -0.7047696, -3.080647e-08, 0.25651523, -0.08773331, -0.70476985, -0.24104548, 0, 0.085, -0.035)
[node name="old_sword" parent="warrior_lv1/Armature/Skeleton3D/BoneAttachment3D" unique_id=811983829 instance=ExtResource("2_gy7ce")]
[editable path="warrior"]
[editable path="warrior_lv1"]
[gd_scene format=3 uid="uid://ccds2ypayb8qc"]
[ext_resource type="PackedScene" uid="uid://dle4lxukpit5h" path="res://assets/models/units/archer/lv1/archer.fbx" id="1_archer_fbx"]
[ext_resource type="AnimationLibrary" uid="uid://bhndpxovbto72" path="res://assets/models/units/archer/anim.tres" id="2_archer_anim"]
[node name="archer" unique_id=554518167 instance=ExtResource("1_archer_fbx")]
transform = Transform3D(-1, 0, 8.742278e-08, 0, 1, 0, -8.742278e-08, 0, -1, 0, 0, 0)
[node name="Skeleton3D" parent="Armature" parent_id_path=PackedInt32Array(193588432) index="0" unique_id=169591956]
bones/0/rotation = Quaternion(0.93424433, 0.16262531, 0.02010399, 0.31675914)
bones/1/rotation = Quaternion(0.6291982, 0.07402593, -0.33553568, 0.6971698)
bones/2/rotation = Quaternion(0.40391654, -0.0067411223, -0.048162203, 0.9135022)
bones/3/rotation = Quaternion(-0.5362647, -0.105391994, 0.1069339, 0.8305889)
bones/4/rotation = Quaternion(-0.30422437, -0.046922445, 0.01001628, 0.9513914)
bones/5/rotation = Quaternion(0.6745179, -0.08788795, 0.19359352, 0.7069815)
bones/6/rotation = Quaternion(0.3859279, -0.011938969, 0.03647337, 0.92173034)
bones/7/rotation = Quaternion(-0.37061632, 0.22117501, -0.08148816, 0.898379)
bones/8/rotation = Quaternion(-0.40273157, 0.119105965, 0.014273416, 0.90742344)
bones/9/rotation = Quaternion(-0.21557161, 0.069485, -0.042189438, 0.9730986)
bones/11/rotation = Quaternion(0.015705386, 0.0012616173, 0.00822115, 0.9998421)
bones/12/rotation = Quaternion(0.48684907, 0.43600845, -0.46244195, 0.5991845)
bones/13/rotation = Quaternion(0.54584914, 0.04898902, -0.09940324, 0.8305227)
bones/14/rotation = Quaternion(-0.30072105, -0.12652127, 0.14969473, 0.93335456)
bones/15/rotation = Quaternion(0.15291412, 0.0456116, -0.034856845, 0.9865708)
bones/16/rotation = Quaternion(0.47590727, -0.43387377, 0.36719018, 0.67114615)
bones/17/rotation = Quaternion(0.6359654, -0.37685934, -0.0094260285, 0.6733767)
bones/18/rotation = Quaternion(-0.2669575, 0.113513224, -0.09412444, 0.95235974)
bones/19/rotation = Quaternion(7.126597e-05, -0.17406361, 0.1564285, 0.9722305)
bones/20/rotation = Quaternion(0.074542746, 0.0015042484, -0.031435527, 0.9967211)
bones/21/rotation = Quaternion(0.29518548, 0.024881888, 0.015955495, 0.95498264)
bones/22/rotation = Quaternion(-0.25140092, 2.442692e-08, 0.0052552656, 0.9678688)
bones/23/rotation = Quaternion(0.45093852, -3.9256154e-08, -0.009426397, 0.8925052)
[node name="AnimationPlayer" parent="." index="1" unique_id=1371887990]
libraries/ = ExtResource("2_archer_anim")
......@@ -2,7 +2,7 @@ class_name ArcherLv1Unit
extends BaseUnit
## Archer Lv1 유닛 고유 동작 및 비주얼 제어 클래스
const MODEL_NAME: String = "archer"
const MODEL_NAME: String = "archer_lv1"
const ARCHER_ATTACK_ANIM: String = "Attack"
const ARCHER_RUN_ANIM: String = "Run"
const ARCHER_IDLE_ANIM: String = "Idle"
......@@ -16,12 +16,12 @@ func _setup_unit_visuals() -> void:
return
_model_instance = node
UnitHelper.apply_skin(_model_instance, "res://assets/models/units/archer/lv1/archer_0.png")
UnitHelper.apply_skin(_model_instance, "res://assets/models/units/archer/lv1/archer_lv1_0.png")
attach_weapon(_model_instance)
_model_anim_player = UnitHelper.find_animation_player(_model_instance)
if _model_anim_player:
var anim_lib_path: String = "res://assets/models/units/archer/anim.tres"
var anim_lib_path: String = "res://assets/models/units/archer/lv1/archer_lv1_anim.tres"
if ResourceLoader.exists(anim_lib_path):
var lib: AnimationLibrary = load(anim_lib_path) as AnimationLibrary
if lib:
......
[gd_scene format=3 uid="uid://d2k2a8qtjujay"]
[ext_resource type="Script" uid="uid://ber4nt51m50j2" path="res://src/entities/units/unit/archer/archer_unit.gd" id="1_archer_script"]
[ext_resource type="PackedScene" uid="uid://ccds2ypayb8qc" path="res://src/entities/units/unit/archer/lv1/archer.tscn" id="2_archer_scene"]
[ext_resource type="Script" uid="uid://ber4nt51m50j2" path="res://src/entities/units/unit/archer/lv1/archer_lv1_unit.gd" id="1_archer_script"]
[ext_resource type="PackedScene" uid="uid://doem71357qgkv" path="res://assets/models/units/archer/lv1/archer_lv1.tscn" id="2_5pk2i"]
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_body"]
radius = 0.4
......@@ -40,4 +40,6 @@ mesh = SubResource("TorusMesh_selection")
[node name="NavigationAgent3D" type="NavigationAgent3D" parent="." unique_id=474303838]
[node name="archer" parent="." unique_id=1830403466 instance=ExtResource("2_archer_scene")]
[node name="archer_lv1" parent="." unique_id=451669575 instance=ExtResource("2_5pk2i")]
[editable path="archer_lv1"]
[gd_scene format=3 uid="uid://c6wju2s7ey11q"]
[ext_resource type="PackedScene" uid="uid://d2wttvhx0s63m" path="res://assets/models/units/warrior/lv1/warrior.fbx" id="1_51hg6"]
[ext_resource type="AnimationLibrary" uid="uid://bfq5qy0qjjddl" path="res://assets/models/units/warrior/warrior_anim.tres" id="2_warrior_anim"]
[node name="warrior" unique_id=1947524413 instance=ExtResource("1_51hg6")]
transform = Transform3D(-1, 0, -8.742278e-08, 0, 1, 0, 8.742278e-08, 0, -1, 0, 0, 0)
[node name="Skeleton3D" parent="Armature" parent_id_path=PackedInt32Array(1122658972) index="0" unique_id=1756619771]
bones/0/rotation = Quaternion(0.77211255, -0.32861972, -0.39244667, 0.3766126)
bones/1/rotation = Quaternion(0.75794494, 0.21279207, -0.39043227, 0.47728586)
bones/2/rotation = Quaternion(0.36515447, 0.09661304, 0.06416007, 0.9236946)
bones/3/rotation = Quaternion(-0.44689593, -0.10568743, -0.06612381, 0.8858566)
bones/4/rotation = Quaternion(-0.4466983, -0.10617086, 0.00024005913, 0.8883628)
bones/5/rotation = Quaternion(0.9525083, 0.043601416, 0.16173382, 0.25430116)
bones/6/rotation = Quaternion(0.37124047, -0.12221774, -0.084734604, 0.9165498)
bones/7/rotation = Quaternion(-0.6027679, 0.1532908, -0.01661504, 0.7828772)
bones/8/rotation = Quaternion(-0.45842803, 0.1347912, 0.014290654, 0.8783341)
bones/9/rotation = Quaternion(-0.25834066, 0.20522228, 0.11844309, 0.9365443)
bones/10/rotation = Quaternion(0.022618964, 0.081643246, -0.010147069, 0.99635327)
bones/11/rotation = Quaternion(-0.08385007, 0.0072866958, 0.00797267, 0.9964199)
bones/12/rotation = Quaternion(0.49577588, 0.62461483, -0.38751596, 0.46248677)
bones/13/rotation = Quaternion(0.67199486, 0.41072702, 0.19313905, 0.5851696)
bones/14/rotation = Quaternion(-0.31836405, -0.012108725, 0.14181627, 0.93722254)
bones/15/rotation = Quaternion(-0.0009877216, 0.24114296, -0.086359695, 0.9666391)
bones/16/rotation = Quaternion(-0.635021, 0.45945278, -0.3177428, -0.53356445)
bones/17/rotation = Quaternion(0.7112564, -0.41147092, 0.01572414, 0.56970066)
bones/18/rotation = Quaternion(-0.25303727, -0.0018723977, -0.11099208, 0.9610669)
bones/19/rotation = Quaternion(0.0024361685, -0.54337037, -0.022761738, 0.83918095)
bones/20/rotation = Quaternion(0.25569457, 0.0701687, 0.006059007, 0.9641888)
bones/21/rotation = Quaternion(0.2485067, -0.00918251, 0.0027086218, 0.96858287)
bones/22/rotation = Quaternion(-0.15805918, -2.3142073e-08, 0.0019670601, 0.9874277)
bones/23/rotation = Quaternion(0.5403607, 5.8879426e-09, -0.0067247017, 0.84140664)
[node name="AnimationPlayer" parent="." index="1" unique_id=189824221]
libraries/ = ExtResource("2_warrior_anim")
......@@ -2,7 +2,7 @@ class_name WarriorLv1Unit
extends BaseUnit
## Warrior Lv1 유닛 고유 동작 및 비주얼 제어 클래스
const MODEL_NAME: String = "warrior"
const MODEL_NAME: String = "warrior_lv1"
const WARRIOR_ATTACK_ANIM: String = "Attack"
const WARRIOR_RUN_ANIM: String = "Run"
const WARRIOR_IDLE_ANIM: String = "Idle"
......@@ -20,12 +20,12 @@ func _setup_unit_visuals() -> void:
return
_model_instance = node
UnitHelper.apply_skin(_model_instance, "res://assets/models/units/warrior/lv1/warrior_0.png")
UnitHelper.apply_skin(_model_instance, "res://assets/models/units/warrior/lv1/warrior_lv1_0.png")
attach_weapon(_model_instance)
_model_anim_player = UnitHelper.find_animation_player(_model_instance)
if _model_anim_player:
var anim_lib_path: String = "res://assets/models/units/warrior/warrior_anim.tres"
var anim_lib_path: String = "res://assets/models/units/warrior/lv1/warrior_lv1_anim.tres"
if ResourceLoader.exists(anim_lib_path):
var lib: AnimationLibrary = load(anim_lib_path) as AnimationLibrary
if lib:
......
[gd_scene format=3 uid="uid://8eyf76pns3pe"]
[ext_resource type="Script" uid="uid://c2517wfi77tjv" path="res://src/entities/units/unit/warrior/warrior_unit.gd" id="1_q888s"]
[ext_resource type="PackedScene" uid="uid://c6wju2s7ey11q" path="res://src/entities/units/unit/warrior/lv1/warrior.tscn" id="2_warrior_scene"]
[ext_resource type="Script" uid="uid://c2517wfi77tjv" path="res://src/entities/units/unit/warrior/lv1/warrior_lv1_unit.gd" id="1_0bbpa"]
[ext_resource type="PackedScene" uid="uid://degeahklp06dd" path="res://assets/models/units/warrior/lv1/warrior_lv1.tscn" id="2_0bbpa"]
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_body"]
radius = 0.4
......@@ -23,7 +23,7 @@ inner_radius = 0.65
outer_radius = 0.7
[node name="WarriorLv1Unit" type="CharacterBody3D" unique_id=1979268701]
script = ExtResource("1_q888s")
script = ExtResource("1_0bbpa")
[node name="CollisionShape3D" type="CollisionShape3D" parent="." unique_id=818355607]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.6, 0)
......@@ -40,33 +40,6 @@ mesh = SubResource("TorusMesh_selection")
[node name="NavigationAgent3D" type="NavigationAgent3D" parent="." unique_id=472282259]
[node name="warrior" parent="." unique_id=1628540794 instance=ExtResource("2_warrior_scene")]
[node name="warrior_lv1" parent="." unique_id=1752898427 instance=ExtResource("2_0bbpa")]
[node name="Skeleton3D" parent="warrior/Armature" parent_id_path=PackedInt32Array(1628540794, 1122658972) index="0" unique_id=1756619771]
bones/0/position = Vector3(0.0073099844, -0.00024791062, 0.51946986)
bones/0/rotation = Quaternion(0.7336017, -0.40976235, -0.46098384, 0.28533718)
bones/1/rotation = Quaternion(0.6953324, 0.35067883, -0.45900282, 0.4276139)
bones/2/rotation = Quaternion(0.5667321, 0.09061526, 0.13510591, 0.8076819)
bones/3/rotation = Quaternion(-0.6401579, -0.12262135, -0.015155749, 0.75824285)
bones/4/rotation = Quaternion(-0.4466983, -0.10617086, 0.00024005448, 0.8883628)
bones/5/rotation = Quaternion(0.77513295, 0.27862963, 0.30337262, 0.4790612)
bones/6/rotation = Quaternion(0.4448868, 0.0130469, 0.2471058, 0.8607232)
bones/7/rotation = Quaternion(-0.45060512, 0.099976465, -0.08400531, 0.8831211)
bones/8/rotation = Quaternion(-0.45842803, 0.1347912, 0.014290656, 0.8783341)
bones/9/rotation = Quaternion(-0.25834036, 0.20522211, 0.11844286, 0.9365444)
bones/10/rotation = Quaternion(0.022619344, 0.08164339, -0.010146947, 0.9963533)
bones/11/rotation = Quaternion(0.09123827, 0.059046026, -0.078700215, 0.9909569)
bones/12/rotation = Quaternion(0.57781017, 0.62083524, -0.13990688, 0.51100403)
bones/13/rotation = Quaternion(0.46895784, 0.08111248, 0.53484404, 0.6981699)
bones/14/rotation = Quaternion(-0.3566624, -0.0653533, 0.09165615, 0.92742664)
bones/15/rotation = Quaternion(-0.0009877216, 0.24114296, -0.086359695, 0.9666391)
bones/16/rotation = Quaternion(-0.5165315, 0.38003513, 0.028065398, -0.7667991)
bones/17/rotation = Quaternion(0.5776718, 0.08903898, -0.5365655, 0.6086582)
bones/18/rotation = Quaternion(-0.28399494, 0.10896846, -0.39559907, 0.8665877)
bones/19/rotation = Quaternion(0.0024361685, -0.54337037, -0.022761738, 0.83918095)
bones/20/rotation = Quaternion(0.25569445, 0.07016864, 0.0060589095, 0.9641889)
bones/21/rotation = Quaternion(0.078519985, 0.08745963, -0.024804013, 0.9927589)
bones/22/rotation = Quaternion(-0.15805918, -2.3112833e-08, 0.0019670601, 0.9874277)
bones/23/rotation = Quaternion(0.5403607, 5.8547363e-09, -0.0067247013, 0.84140664)
[editable path="warrior"]
[editable path="warrior_lv1"]
......@@ -7,9 +7,9 @@ extends RefCounted
const INVALID_TILE_CELL: Vector3i = Vector3i(2147483647, 2147483647, 2147483647)
const ARCHER_LV1_SCENE: PackedScene = preload("res://src/entities/units/unit/archer/lv1/archer_unit.tscn")
const ARCHER_LV1_SCENE: PackedScene = preload("res://src/entities/units/unit/archer/lv1/archer_lv1_unit.tscn")
const MAGE_SCENE: PackedScene = preload("res://src/entities/units/unit/mage/mage_unit.tscn")
const WARRIOR_LV1_SCENE: PackedScene = preload("res://src/entities/units/unit/warrior/lv1/warrior_unit.tscn")
const WARRIOR_LV1_SCENE: PackedScene = preload("res://src/entities/units/unit/warrior/lv1/warrior_lv1_unit.tscn")
const PLACEMENT_TILE_OVERLAY_SCENE: PackedScene = preload("res://src/ui/unit_placement/placement_tile_overlay.tscn")
const OVERLAY_POOL_WARMUP_BATCH_SIZE: int = 16
const UNIT_PLACE_BLOCKED_METADATA_KEY: String = "unit_place_blocked"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment