diff --git a/Jusin154_Team3D/Client/Private/Avadakedavra.cpp b/Jusin154_Team3D/Client/Private/Avadakedavra.cpp index 80bf40157..80c05ab5d 100644 --- a/Jusin154_Team3D/Client/Private/Avadakedavra.cpp +++ b/Jusin154_Team3D/Client/Private/Avadakedavra.cpp @@ -123,7 +123,7 @@ HRESULT CAvadakedavra::Pre_Setting(CGameObject* pObject, void* pArg) } else { // 타겟이 없다면 현재위치 -> 카메라 룩벡터 * duration간 예상 이동거리 를 대상으로 지정 - XMStoreFloat4(&m_vTargetPos, vWandPos + vDirection * m_fLinearSpeed * 0.5f); + XMStoreFloat4(&m_vTargetPos, vWandPos + vDirection * m_fLinearSpeed * 2.f); } } diff --git a/Jusin154_Team3D/Client/Private/NomalJap.cpp b/Jusin154_Team3D/Client/Private/NomalJap.cpp index 8962e3cc5..342f4142b 100644 --- a/Jusin154_Team3D/Client/Private/NomalJap.cpp +++ b/Jusin154_Team3D/Client/Private/NomalJap.cpp @@ -51,9 +51,12 @@ HRESULT CNomalJap::Initialize(void* pArg) m_pProjectile_Side = Get_PartObject("JapProjSide"); m_pProjectile = Get_PartObject("JapProjCircle"); + m_pJapFire = Get_PartObject("JapFire"); SAFE_ADDREF(m_pProjectile); SAFE_ADDREF(m_pProjectile_Side); + SAFE_ADDREF(m_pJapFire); + m_fDuration = 1.7f; assert(m_fDuration > 0.f); @@ -87,6 +90,7 @@ void CNomalJap::Update(_float fTimeDelta) // 선속도 m_pProjectile_Side->Get_Component()->Translation(vDirection * m_fLinearSpeed * fTimeDelta); m_pProjectile->Get_Component()->Translation(vDirection * m_fLinearSpeed * fTimeDelta); + m_pJapFire->Get_Component()->Translation(vDirection * m_fLinearSpeed * fTimeDelta); //Up벡터 방향으로 파이만큼 이동 @@ -97,6 +101,7 @@ void CNomalJap::Update(_float fTimeDelta) m_pProjectile_Side->Get_Component()->Translation(XMLoadFloat3(&m_vRotateUp) * sinf(m_fAccRotateTime) * m_fRotateAmount); m_pProjectile->Get_Component()->Translation(XMLoadFloat3(&m_vRotateUp) * sinf(m_fAccRotateTime) * m_fRotateAmount); + m_pJapFire->Get_Component()->Translation(XMLoadFloat3(&m_vRotateUp) * sinf(m_fAccRotateTime) * m_fRotateAmount); // 내 라이트 방향으로 좌우무빙 하도록 해보자 @@ -108,6 +113,7 @@ void CNomalJap::Update(_float fTimeDelta) m_pProjectile_Side->Get_Component()->Translation(XMLoadFloat3(&m_vRotateRight) * sinf(m_fAccZigZagTime) * m_fZigZagAmount); m_pProjectile->Get_Component()->Translation(XMLoadFloat3(&m_vRotateRight) * sinf(m_fAccZigZagTime) * m_fZigZagAmount); + m_pJapFire->Get_Component()->Translation(XMLoadFloat3(&m_vRotateRight) * sinf(m_fAccZigZagTime) * m_fZigZagAmount); XMStoreFloat4(&m_vEndPos, m_pProjectile->Get_WorldPostion()); @@ -128,7 +134,6 @@ void CNomalJap::Late_Update(_float fTimeDelta) OnCollision(this, &CollisionInfo); } - Get_PartObject()->Trail_Update(m_pProjectile->Get_Component()->Get_XMWorldMatrix(), fTimeDelta); __super::Late_Update(fTimeDelta); } @@ -148,14 +153,12 @@ HRESULT CNomalJap::Pre_Setting(CGameObject* pObject, void* pArg) /* 초기 객체 위치 초기화 */ m_pProjectile->Get_Component()->Set_State(STATE::POSITION, vStartPos); m_pProjectile_Side->Get_Component()->Set_State(STATE::POSITION, vStartPos); + m_pJapFire->Get_Component()->Set_State(STATE::POSITION, vStartPos); /* 초기 객체 비지블 */ m_pProjectile->Set_Visible(true); m_pProjectile_Side->Set_Visible(true); - - /*트레일 초기화 */ - Get_PartObject()->Set_Visible(true); - Get_PartObject()->Get_Component()->Reset_Trail(); + m_pJapFire->Set_Visible(true); _uint iIndex = *static_cast<_uint*>(pArg); @@ -305,10 +308,8 @@ void CNomalJap::OnCollision(CGameObject* pOther, void* pDesc) m_pProjectile_Side->Set_Visible(false); m_pProjectile->Set_Visible(false); - Get_PartObject("Circle_Particle_Red")->Set_Visible(false); + m_pJapFire->Get_Component()->Set_State(STATE::POSITION, XMVectorSet(0.f, -9999.f, 0.f, 1.f)); - Get_PartObject()->Set_Visible(false); - Get_PartObject()->Get_Component()->Set_State(STATE::POSITION, XMVectorSet(0.f, 0.f, 0.f, 1.f)); } m_bHitShield = false; } @@ -319,7 +320,7 @@ void CNomalJap::Free() Safe_Release(m_pProjectile); Safe_Release(m_pProjectile_Side); - + Safe_Release(m_pJapFire); } #ifdef _DEBUG diff --git a/Jusin154_Team3D/Client/Public/NomalJap.h b/Jusin154_Team3D/Client/Public/NomalJap.h index f35e408ca..b14c0adda 100644 --- a/Jusin154_Team3D/Client/Public/NomalJap.h +++ b/Jusin154_Team3D/Client/Public/NomalJap.h @@ -39,9 +39,10 @@ class CNomalJap final : public CEffect_Container , _float4(95.f , 0.f , 0.f , 0.f) , _float4(105.f , 250.f , 35.f , 60.f) }; - class CPartObject* m_pProjectile = {}; - class CPartObject* m_pProjectile_Side = {}; - + class CPartObject* m_pProjectile = { nullptr }; + class CPartObject* m_pProjectile_Side = { nullptr }; + class CPartObject* m_pJapFire = { nullptr }; + _float3 m_vRotateUp = {}; _float m_fAccMoveTime = {}; _float m_fAccRotateTime = {}; diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Avadakedavra/Ray_G.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Avadakedavra/Ray_G.bin index e01291a4d..0ba78626b 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Avadakedavra/Ray_G.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Avadakedavra/Ray_G.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:e8d7c407ee23c30331c42ff10fad8a38741b282f4ef0880d7acac8734cab8ab7 +oid sha256:ba19724cd428b4806e260d20154e6c2d72ae57c848160cc73c501562ed762902 size 1300 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Avadakedavra/Wand_Light.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Avadakedavra/Wand_Light.bin index e25478faa..bd5eba508 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Avadakedavra/Wand_Light.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Avadakedavra/Wand_Light.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:793ff7c5fde69a91b01b1d77ea428b1e17bd522313898a0599cdf54812ec2274 +oid sha256:fa010a163e72a609b740f3897b945d0558594f6d97a65d720c46312ac3e4f0f3 size 1241 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Jap/Circle_Particle_Red.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Jap/Circle_Particle_Red.bin deleted file mode 100644 index 6945b7aae..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Jap/Circle_Particle_Red.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:a5a33a2544d9b6676a1e8b60773dc9fa771b492a1400f056a66d2fdabf28ca30 -size 1163 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Jap/JapFire.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Jap/JapFire.bin new file mode 100644 index 000000000..ae86555be --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Jap/JapFire.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4efecd1551fc1c3694a535e3ce1623c66a8542f89d153c6df6c5679d51606b3f +size 1194 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Jap/JapHit1.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Jap/JapHit1.bin index 5dc4f5018..b52e4abc7 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Jap/JapHit1.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Jap/JapHit1.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:d09fa6144794fe138c85badb897593a89a0b5f53729b06a407f70eb7f3efebb6 -size 1213 +oid sha256:4bf8fd3dd16d4a8e021afef9d78a7e019008e86be6e953cb4a34842ded5f4468 +size 1188 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Jap/JapPT0.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Jap/JapPT0.bin index c5073c0a6..595b3045d 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Jap/JapPT0.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Jap/JapPT0.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:9c8e58f580b2b2477c99438d13a986354dd663194ac0b801d00cd508de5cdc22 +oid sha256:d653bb77fbf77aced1de7c36ea726c3978c9f86599da9fe03eed55ad98afdc4f size 1163 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Jap/JapProjCircle.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Jap/JapProjCircle.bin index 5dee67523..6c67757e0 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Jap/JapProjCircle.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Jap/JapProjCircle.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:a13405461fa08241f95dfe78084be873e0e56b85c10393804054c5f572b1bf0e -size 1248 +oid sha256:468db2885ece2f11f06e935d188c478bc18cadc622e31f4e640f259270ada3a3 +size 1195 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Jap/JapProjSide.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Jap/JapProjSide.bin index 4dfd594a1..d7d484120 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Jap/JapProjSide.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Jap/JapProjSide.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:9168b3d57908e617f91a43bd24293883def9677008d6b9e3ad5c63bdef31b930 -size 1166 +oid sha256:039070156dfe15aa4886ff09d242d8d3b3de7be4075a787e0d3b246643450bcc +size 1158 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Jap/JapTrail.trail b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Jap/JapTrail.trail deleted file mode 100644 index 2699b3baf..000000000 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Jap/JapTrail.trail and /dev/null differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/JapSideEffect/Red_Trail.trail b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/JapSideEffect/Red_Trail.trail index aa5a37b88..9c10fc822 100644 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/JapSideEffect/Red_Trail.trail and b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/JapSideEffect/Red_Trail.trail differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/JapSideEffect/WandParticle1.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/JapSideEffect/WandParticle1.bin index ccf5d18f6..c45d61b3c 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/JapSideEffect/WandParticle1.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/JapSideEffect/WandParticle1.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:749ddc0f0772a17ae05cc378d1803d34e7275b9748f46cc3cacc3e8a45e830a2 +oid sha256:6136db2040130e21b99b2bb53a1b78fd09d6c5cad05459e5142ab0829dae60e6 size 1208 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/JapSideEffect/Wand_Light_R.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/JapSideEffect/Wand_Light_R.bin index 1eda4ee00..46be6f976 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/JapSideEffect/Wand_Light_R.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/JapSideEffect/Wand_Light_R.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:f6c69cc1cd07ca3d218e6d2d1fa8f8906e1a69c92a4e4356dee7fa00dd9dc3be +oid sha256:1bcca435020eee2d30d1deda543287aa66136e65e2f8b7b77ef0acd96f82ebe0 size 1200 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/JapSideEffect/Wand_Red_Long.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/JapSideEffect/Wand_Red_Long.bin index 776ea4f6d..380acd363 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/JapSideEffect/Wand_Red_Long.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/JapSideEffect/Wand_Red_Long.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:803ec512eaed6597271b73459d1fe505767768bdde62cfcd9cd23b897a7f5c9d +oid sha256:603d9f44e685a6320408d16b2c3c789407221b668cc93b62e009dcac9ceec7b3 size 1169 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/NPCJap/JapFire.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/NPCJap/JapFire.bin new file mode 100644 index 000000000..c333b2663 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/NPCJap/JapFire.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c03bb33e956697471f4e39d21d91726679344b998d071f38c8d1701f76dd9361 +size 1190 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/NPCJap/JapHit0.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/NPCJap/JapHit0.bin new file mode 100644 index 000000000..23809ea49 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/NPCJap/JapHit0.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:109bb916cd2c8649123813e422c5e6f4173f0598f2a96f6b99bba99552034435 +size 1239 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/NPCJap/JapHit1.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/NPCJap/JapHit1.bin new file mode 100644 index 000000000..e5b35aba5 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/NPCJap/JapHit1.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2ac42b175efb8d4f6b69374aeb97094d575965b3845c5218d3aee286a81f22cd +size 1188 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/NPCJap/JapPT0.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/NPCJap/JapPT0.bin new file mode 100644 index 000000000..476c0dc16 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/NPCJap/JapPT0.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ccedf4eda087cb06123fc575c67fa5cd2a0c6da34ec9653960e5fbffb2e6db79 +size 1163 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/NPCJap/JapProjCircle.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/NPCJap/JapProjCircle.bin new file mode 100644 index 000000000..77f8b9600 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/NPCJap/JapProjCircle.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c4bb4bdc7c5c1da4a80c7bbe54e810b647b582cc5b52dc4f4216c7c1459993ca +size 1195 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/NPCJap/JapProjSide.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/NPCJap/JapProjSide.bin new file mode 100644 index 000000000..d0c0c92c7 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/NPCJap/JapProjSide.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:aa7e6af078d6b4782ee9acc2dcce2d31f1d7576d31be776dcecd24cdefeea6b5 +size 1158 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/Jap.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/Jap.bin index e314a9a76..36a2c9685 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/Jap.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/Jap.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:6c97eeefda813b6990a079c31238752efa748551a7cac20211bf619d822eb5da -size 399 +oid sha256:a657c2a8822dc26cc62ec11446abaa350adf119f4f8ec7184c97e18ac5da1158 +size 331 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/NPCJap.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/NPCJap.bin new file mode 100644 index 000000000..4d377bd84 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/NPCJap.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a4b13572c0c6eda165b2d9fc8be8a5c01bbcca23ced84d7f5fc97c3bdfef12c1 +size 349 diff --git a/Jusin154_Team3D/Editor/Private/Loader.cpp b/Jusin154_Team3D/Editor/Private/Loader.cpp index 27f6ca9d2..63a45d6c7 100644 --- a/Jusin154_Team3D/Editor/Private/Loader.cpp +++ b/Jusin154_Team3D/Editor/Private/Loader.cpp @@ -1687,7 +1687,7 @@ HRESULT CLoader::Loading_For_Effect() )); futures.emplace_back(Deferred_ModelLoad( - MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/PlayableCharacter/Playable.bin", XMMatrixRotationZ(XMConvertToRadians(180.f)) * XMMatrixIdentity(), + MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/PlayableCharacter/Playable.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(), TEXT("Prototype_Component_Playable_Model") )); diff --git a/Jusin154_Team3D/Editor/Private/NomalJap.cpp b/Jusin154_Team3D/Editor/Private/NomalJap.cpp index adff0afc3..9e9c4772a 100644 --- a/Jusin154_Team3D/Editor/Private/NomalJap.cpp +++ b/Jusin154_Team3D/Editor/Private/NomalJap.cpp @@ -49,9 +49,11 @@ HRESULT CNomalJap::Initialize(void* pArg) m_pProjectile_Side = Get_PartObject("JapProjSide"); m_pProjectile = Get_PartObject("JapProjCircle"); + m_pJapFire = Get_PartObject("JapFire"); SAFE_ADDREF(m_pProjectile); SAFE_ADDREF(m_pProjectile_Side); + SAFE_ADDREF(m_pJapFire); m_fDuration = 1.7f; assert(m_fDuration > 0.f); @@ -85,6 +87,7 @@ void CNomalJap::Update(_float fTimeDelta) // 선속도 m_pProjectile_Side->Get_Component()->Translation(vDirection * m_fLinearSpeed * fTimeDelta); m_pProjectile->Get_Component()->Translation(vDirection * m_fLinearSpeed * fTimeDelta); + m_pJapFire->Get_Component()->Translation(vDirection * m_fLinearSpeed * fTimeDelta); //Up벡터 방향으로 파이만큼 이동 @@ -95,6 +98,7 @@ void CNomalJap::Update(_float fTimeDelta) m_pProjectile_Side->Get_Component()->Translation(XMLoadFloat3(&m_vRotateUp) * sinf(m_fAccRotateTime) * m_fRotateAmount); m_pProjectile->Get_Component()->Translation(XMLoadFloat3(&m_vRotateUp) * sinf(m_fAccRotateTime) * m_fRotateAmount); + m_pJapFire->Get_Component()->Translation(XMLoadFloat3(&m_vRotateUp) * sinf(m_fAccRotateTime) * m_fRotateAmount); // 내 라이트 방향으로 좌우무빙 하도록 해보자 @@ -106,6 +110,7 @@ void CNomalJap::Update(_float fTimeDelta) m_pProjectile_Side->Get_Component()->Translation(XMLoadFloat3(&m_vRotateRight) * sinf(m_fAccZigZagTime) * m_fZigZagAmount); m_pProjectile->Get_Component()->Translation(XMLoadFloat3(&m_vRotateRight) * sinf(m_fAccZigZagTime) * m_fZigZagAmount); + m_pJapFire->Get_Component()->Translation(XMLoadFloat3(&m_vRotateRight) * sinf(m_fAccZigZagTime) * m_fZigZagAmount); XMStoreFloat4(&m_vEndPos, m_pProjectile->Get_WorldPostion()); @@ -130,8 +135,6 @@ void CNomalJap::Late_Update(_float fTimeDelta) _vector vEndPos = m_pProjectile->Get_WorldPostion(); SweepTarget(vStartPos, vEndPos, 0.002f); } - Get_PartObject()->Trail_Update(m_pProjectile->Get_Component()->Get_XMWorldMatrix(), fTimeDelta); - __super::Late_Update(fTimeDelta); } @@ -150,14 +153,13 @@ HRESULT CNomalJap::Pre_Setting(CGameObject* pObject, void* pArg) /* 초기 객체 위치 초기화 */ m_pProjectile->Get_Component()->Set_State(STATE::POSITION, vStartPos); m_pProjectile_Side->Get_Component()->Set_State(STATE::POSITION, vStartPos); + m_pJapFire->Get_Component()->Set_State(STATE::POSITION, vStartPos); /* 초기 객체 비지블 */ m_pProjectile->Set_Visible(true); m_pProjectile_Side->Set_Visible(true); + m_pJapFire->Set_Visible(true); - /*트레일 초기화 */ - Get_PartObject()->Set_Visible(true); - Get_PartObject()->Get_Component()->Reset_Trail(); _uint iIndex = *static_cast<_uint*>(pArg); @@ -297,10 +299,9 @@ void CNomalJap::OnCollision(CGameObject* pOther, void* pDesc) m_pProjectile_Side->Set_Visible(false); m_pProjectile->Set_Visible(false); - Get_PartObject("Circle_Particle_Red")->Set_Visible(false); + m_pJapFire->Set_Visible(false); + - Get_PartObject()->Set_Visible(false); - Get_PartObject()->Get_Component()->Set_State(STATE::POSITION, XMVectorSet(0.f, 0.f, 0.f, 1.f)); dynamic_cast(m_pOwner->Get_Owner())->Start_CameraShake(0.2f, 1.f); } @@ -310,6 +311,7 @@ void CNomalJap::Free() Safe_Release(m_pProjectile); Safe_Release(m_pProjectile_Side); + SAFE_RELEASE(m_pJapFire); } #ifdef _DEBUG diff --git a/Jusin154_Team3D/Editor/Public/NomalJap.h b/Jusin154_Team3D/Editor/Public/NomalJap.h index 9500cb71f..b759ac736 100644 --- a/Jusin154_Team3D/Editor/Public/NomalJap.h +++ b/Jusin154_Team3D/Editor/Public/NomalJap.h @@ -40,8 +40,9 @@ class CNomalJap final : public CEffect_Container , _float4(35.f , 0.f , 0.f , 0.f) , _float4(45.f , 250.f , 35.f , 60.f) }; - class CPartObject* m_pProjectile = {}; - class CPartObject* m_pProjectile_Side = {}; + class CPartObject* m_pProjectile = { nullptr }; + class CPartObject* m_pProjectile_Side = { nullptr }; + class CEditEffect* m_pJapFire = { nullptr }; _float3 m_vRotateUp = {}; _float m_fAccMoveTime = {};