diff --git a/Jusin154_Team3D/Client/Private/Stupefy.cpp b/Jusin154_Team3D/Client/Private/Stupefy.cpp index e8e7656b8..225c76bce 100644 --- a/Jusin154_Team3D/Client/Private/Stupefy.cpp +++ b/Jusin154_Team3D/Client/Private/Stupefy.cpp @@ -43,11 +43,9 @@ HRESULT CStupefy::Initialize(void* pArg) m_wstrEffectName = L"Stupefy"; - m_pProjectile0 = Get_PartObject("Stupefy_PJ0"); - SAFE_ADDREF(m_pProjectile0); + m_pProjectile = Get_PartObject("Stupefy_PJ"); + SAFE_ADDREF(m_pProjectile); - m_pProjectile1 = Get_PartObject("Stupefy_PJ1"); - SAFE_ADDREF(m_pProjectile1); m_pStupefy_PJ_PT = Get_PartObject("Stupefy_PJ_PT"); SAFE_ADDREF(m_pStupefy_PJ_PT); @@ -74,7 +72,7 @@ void CStupefy::Update(_float fTimeDelta) Update_Event(fTimeDelta); m_pStupefy_PJ_PT->Get_Component()->Translation(XMLoadFloat3(&m_vCameraLook) * m_fLinearSpeed); - + m_pProjectile->Get_Component()->Translation(XMLoadFloat3(&m_vCameraLook) * m_fLinearSpeed); } @@ -112,9 +110,6 @@ HRESULT CStupefy::Pre_Setting(CGameObject* pObject, void* pArg) - - CEffectParts* pStupefy_PJ0 = Get_PartObject("Stupefy_PJ0"); - CEffectParts* pStupefy_PJ1 = Get_PartObject("Stupefy_PJ1"); CEffectParts* pWand_Distortion = Get_PartObject("Wand_Distortion"); CEffectParts* pStupefy_Light_Long = Get_PartObject("Stupefy_Light_Long"); @@ -122,13 +117,12 @@ HRESULT CStupefy::Pre_Setting(CGameObject* pObject, void* pArg) CEffectParts* pStupefy_Smoke = Get_PartObject("Stupefy_Smoke"); - pStupefy_PJ0->Set_Visible(true); - pStupefy_PJ1->Set_Visible(true); pWand_Distortion->Set_Visible(true); pStupefy_Light_Long->Set_Visible(true); pBodyFlare->Set_Visible(true); pStupefy_Smoke->Set_Visible(true); m_pStupefy_PJ_PT->Set_Visible(true); + m_pProjectile->Set_Visible(true); _vector vDirection = m_pOwner->Get_Component()->Get_State(STATE::LOOK); @@ -136,10 +130,9 @@ HRESULT CStupefy::Pre_Setting(CGameObject* pObject, void* pArg) _vector vWandPos = pWand->Get_WorldPostion(); - pStupefy_PJ0->Get_Component()->Set_State(STATE::POSITION, vWandPos); - pStupefy_PJ1->Get_Component()->Set_State(STATE::POSITION, vWandPos); m_pStupefy_PJ_PT->Get_Component()->Set_State(STATE::POSITION, vWandPos); + m_pProjectile->Get_Component()->Set_State(STATE::POSITION, vWandPos); pStupefy_Light_Long->Get_Component()->Set_State(STATE::POSITION, vWandPos); pBodyFlare->Get_Component()->Set_State(STATE::POSITION, vWandPos); @@ -178,24 +171,6 @@ HRESULT CStupefy::Pre_Setting(CGameObject* pObject, void* pArg) } } - - /* PJ 월드 구성하기 */ - - _float fLength = XMVectorGetX(XMVector3Length(XMLoadFloat4(&m_vTargetPos) - vPlayerPos)); - - CTransform* pPJ0_Transform = pStupefy_PJ0->Get_Component(); - CTransform* pPJ1_Transform = pStupefy_PJ1->Get_Component(); - - _vector vUp = XMVector3Normalize(vDirection) * fLength; - _vector vRight = XMVector3Normalize(XMVector3Cross(XMVectorSet(0.f, 0.f, 1.f, 0.f) , vUp)); - _vector vLook = XMVector3Normalize(XMVector3Cross(vUp, vRight)); - _vector vPos = vPlayerPos; - - _matrix PJ_WorldMat = { vRight , vUp ,vLook , vPos }; - - pPJ0_Transform->Set_WorldMatrix(PJ_WorldMat); - pPJ1_Transform->Set_WorldMatrix(PJ_WorldMat); - return S_OK; } @@ -263,11 +238,8 @@ void CStupefy::OnCollision(CGameObject* pOther, void* pDesc) - m_pProjectile0->Set_Visible(false); - m_pProjectile1->Set_Visible(false); - - /*맞는순간 위로 올리기*/ - m_pStupefy_PJ_PT->Get_Component()->Set_State(STATE::POSITION, XMVectorSet(0.f, 500.f, 0.f, 1.f)); + m_pProjectile->Get_Component()->Set_State(STATE::POSITION, XMVectorSet(0.f, -9999.f, 0.f, 1.f)); + m_pStupefy_PJ_PT->Get_Component()->Set_State(STATE::POSITION, XMVectorSet(0.f, -9999.f, 0.f, 1.f)); } @@ -276,8 +248,7 @@ void CStupefy::Free() { __super::Free(); - SAFE_RELEASE(m_pProjectile0); - SAFE_RELEASE(m_pProjectile1); + SAFE_RELEASE(m_pProjectile); SAFE_RELEASE(m_pStupefy_PJ_PT); } diff --git a/Jusin154_Team3D/Client/Public/Stupefy.h b/Jusin154_Team3D/Client/Public/Stupefy.h index e2b3fd52c..742b052f6 100644 --- a/Jusin154_Team3D/Client/Public/Stupefy.h +++ b/Jusin154_Team3D/Client/Public/Stupefy.h @@ -35,8 +35,7 @@ class CStupefy final : public CEffect_Container class CInfoInstance* m_pInfoInstance = { nullptr }; private: _wstring m_wstrEffectName = {}; - class CEffectParts* m_pProjectile0 = {}; - class CEffectParts* m_pProjectile1 = {}; + class CEffectParts* m_pProjectile = {}; class CEffectParts* m_pStupefy_PJ_PT = {}; _float4 m_vStartPos = { 0.f, 0.f, 0.f, 1.f }; // 현재 발사 된 위치 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/Stupefy.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/Stupefy.bin index 58a1dac3c..f792201cf 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/Stupefy.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/Stupefy.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:dd7aa69103b5f95090b66b0d3327b62f6a57155b24c8a6ab3fd38a613955933c -size 631 +oid sha256:9a44d912916265038d3a540f9c56d29defc3179288360f9082edfc62140fdbb5 +size 569 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Stupefy/Stupefy_Circle0.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Stupefy/Stupefy_Circle0.bin index 867903a1c..7edd74e3d 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Stupefy/Stupefy_Circle0.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Stupefy/Stupefy_Circle0.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:a53855eb8aca50722e420c0036a2e83bababc5e73e9c86c5062265c78a232b2f -size 1247 +oid sha256:58a884e377b191ef0d355a15006c1d8b2117b7c1cdfe18ebde58e44850793bdc +size 1249 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Stupefy/Stupefy_Hit_PT.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Stupefy/Stupefy_Hit_PT.bin index 42d73f8f6..bfc5e4cfa 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Stupefy/Stupefy_Hit_PT.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Stupefy/Stupefy_Hit_PT.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:8a9c812466b7c10bbf7b4fba98d34eb918ecba87e5390f176d261ee0494f9294 +oid sha256:e2e47b6f35517f2a08d2103abff1e250e91891bec50e42244ed76b47183e01bf size 1175 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Stupefy/Stupefy_PJ.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Stupefy/Stupefy_PJ.bin new file mode 100644 index 000000000..f48f7dbd3 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Stupefy/Stupefy_PJ.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d6d1a2aade06b4925d5193932755bef7f2c66f0723bd53d24f9593214a66616e +size 1251 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Stupefy/Stupefy_PJ0.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Stupefy/Stupefy_PJ0.bin deleted file mode 100644 index e9a34808f..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Stupefy/Stupefy_PJ0.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:b6ee4b8b35fa425653e6e70f228d9bdffb3988ff9f4d1edac1176d5a9bae821e -size 1217 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Stupefy/Stupefy_PJ1.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Stupefy/Stupefy_PJ1.bin deleted file mode 100644 index 39d8afaf6..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Stupefy/Stupefy_PJ1.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:e1f2980c52690ed8519c6cbfdf399f6d00b9fa1ec45a68621a9f55ecc653107e -size 1217 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Stupefy/Stupefy_PJ_PT.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Stupefy/Stupefy_PJ_PT.bin index aba1f8d09..1a4bc4c66 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Stupefy/Stupefy_PJ_PT.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Stupefy/Stupefy_PJ_PT.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:b4991be0d9220894a36fcada332cc7a34b24d927f772b025c26c3102fd8d9d32 +oid sha256:d877fd0d02ffc922d6deddfa918b4ca989c2e57c7060d70c627e95b292a99254 size 1177