@@ -160,6 +160,8 @@ call Update_Resources.bat
|
||||
</ItemDefinitionGroup>
|
||||
<ItemGroup>
|
||||
<ClInclude Include="..\Public\Action_Panel.h" />
|
||||
<ClInclude Include="..\Public\Barral_Splesh.h" />
|
||||
<ClInclude Include="..\Public\Chair_Splesh.h" />
|
||||
<ClInclude Include="..\Public\Broom_State_Fly.h" />
|
||||
<ClInclude Include="..\Public\Broom_State_Hover.h" />
|
||||
<ClInclude Include="..\Public\Boss_HpBar.h" />
|
||||
@@ -193,6 +195,10 @@ call Update_Resources.bat
|
||||
<ClInclude Include="..\Public\Mage_Nomal_Attack.h" />
|
||||
<ClInclude Include="..\Public\MageSide.h" />
|
||||
<ClInclude Include="..\Public\Mage_Down_Attack.h" />
|
||||
<ClInclude Include="..\Public\Box_Splesh.h" />
|
||||
<ClInclude Include="..\Public\StunEffect.h" />
|
||||
<ClInclude Include="..\Public\State_Broom_Dismount.h" />
|
||||
<ClInclude Include="..\Public\State_Broom_Ride_Move.h" />
|
||||
<ClInclude Include="..\Public\State_Shield.h" />
|
||||
<ClInclude Include="..\Public\StunEffect.h" />
|
||||
<ClInclude Include="..\Public\State_Broom_Dismount.h" />
|
||||
@@ -335,6 +341,8 @@ call Update_Resources.bat
|
||||
<ItemGroup>
|
||||
<ClCompile Include="..\Private\Action_Panel.cpp" />
|
||||
<ClCompile Include="..\Private\Boss_HpBar.cpp" />
|
||||
<ClCompile Include="..\Private\Barral_Splesh.cpp" />
|
||||
<ClCompile Include="..\Private\Chair_Splesh.cpp" />
|
||||
<ClCompile Include="..\Private\Broom_States.cpp" />
|
||||
<ClCompile Include="..\Private\Broom_State_Fly.cpp" />
|
||||
<ClCompile Include="..\Private\Broom_State_Hover.cpp" />
|
||||
@@ -376,6 +384,7 @@ call Update_Resources.bat
|
||||
<ClCompile Include="..\Private\Mage_Nomal_Attack.cpp" />
|
||||
<ClCompile Include="..\Private\MageSide.cpp" />
|
||||
<ClCompile Include="..\Private\Mage_Down_Attack.cpp" />
|
||||
<ClCompile Include="..\Private\Box_Splesh.cpp" />
|
||||
<ClCompile Include="..\Private\StunEffect.cpp" />
|
||||
<ClCompile Include="..\Private\Troll_State_Stun.cpp" />
|
||||
<ClCompile Include="..\Private\WandEnd.cpp" />
|
||||
|
||||
@@ -524,6 +524,15 @@
|
||||
<ClInclude Include="..\Public\Boss_HpBar.h">
|
||||
<Filter>02.GameObjects\UI\GamePlay_Canvas\Enemy_Penel\Boss_HpBar</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\Box_Splesh.h">
|
||||
<Filter>02.GameObjects\Effect\PropsEffect\Box</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\Chair_Splesh.h">
|
||||
<Filter>02.GameObjects\Effect\PropsEffect\Chair</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\Barral_Splesh.h">
|
||||
<Filter>02.GameObjects\Effect\PropsEffect\Barral</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\State_Broom_Hover.h">
|
||||
<Filter>04.Mechanic\State\Broom_Player\State_Broom_Hover</Filter>
|
||||
</ClInclude>
|
||||
@@ -1122,6 +1131,18 @@
|
||||
<Filter Include="02.GameObjects\UI\GamePlay_Canvas\Enemy_Penel\Boss_HpBar">
|
||||
<UniqueIdentifier>{b49a3671-96d0-47b8-833f-28190d549b0f}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="02.GameObjects\Effect\PropsEffect">
|
||||
<UniqueIdentifier>{215b093d-648c-4cca-a69b-f4005b34ee06}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="02.GameObjects\Effect\PropsEffect\Box">
|
||||
<UniqueIdentifier>{b3c9f1a4-afb1-45ba-8d8b-034267607976}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="02.GameObjects\Effect\PropsEffect\Barral">
|
||||
<UniqueIdentifier>{c2841516-9f72-4c72-aa50-652b4ff33b5a}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="02.GameObjects\Effect\PropsEffect\Chair">
|
||||
<UniqueIdentifier>{3103c6e1-60cb-438b-a3eb-844b919ccd43}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="04.Mechanic\State\Broom_Player\State_Broom_Hover">
|
||||
<UniqueIdentifier>{24f6903f-8f6b-46ff-a387-ecb44d673887}</UniqueIdentifier>
|
||||
</Filter>
|
||||
@@ -1605,6 +1626,15 @@
|
||||
<ClCompile Include="..\Private\Boss_HpBar.cpp">
|
||||
<Filter>02.GameObjects\UI\GamePlay_Canvas\Enemy_Penel\Boss_HpBar</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\Box_Splesh.cpp">
|
||||
<Filter>02.GameObjects\Effect\PropsEffect\Box</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\Barral_Splesh.cpp">
|
||||
<Filter>02.GameObjects\Effect\PropsEffect\Barral</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\Chair_Splesh.cpp">
|
||||
<Filter>02.GameObjects\Effect\PropsEffect\Chair</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\State_Broom_Hover.cpp">
|
||||
<Filter>04.Mechanic\State\Broom_Player\State_Broom_Hover</Filter>
|
||||
</ClCompile>
|
||||
|
||||
@@ -0,0 +1,186 @@
|
||||
#include "pch.h"
|
||||
#include "Barral_Splesh.h"
|
||||
|
||||
#include "GameInstance.h"
|
||||
#include "EffectParts.h"
|
||||
#include "Wand.h"
|
||||
#include "Player.h"
|
||||
|
||||
CBarral_Splesh::CBarral_Splesh(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
: CEffect_Container{ pDevice, pContext }
|
||||
{
|
||||
}
|
||||
|
||||
CBarral_Splesh::CBarral_Splesh(const CBarral_Splesh& rhs)
|
||||
: CEffect_Container(rhs)
|
||||
{
|
||||
}
|
||||
|
||||
HRESULT CBarral_Splesh::Initialize_Prototype()
|
||||
{
|
||||
|
||||
return S_OK;
|
||||
|
||||
}
|
||||
|
||||
HRESULT CBarral_Splesh::Initialize(void* pArg)
|
||||
{
|
||||
if (FAILED(__super::Initialize(pArg)))
|
||||
return E_FAIL;
|
||||
|
||||
if (FAILED(Ready_Components(pArg)))
|
||||
return E_FAIL;
|
||||
|
||||
|
||||
if (FAILED(Load_Package("../Bin/Resources/Data/Effect/Package/Barral")))
|
||||
return E_FAIL;
|
||||
|
||||
|
||||
m_wstrEffectName = L"Barral_Splesh";
|
||||
|
||||
|
||||
m_fDuration = 5.f;
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CBarral_Splesh::Priority_Update(_float fTimeDelta)
|
||||
{
|
||||
__super::Priority_Update(fTimeDelta);
|
||||
|
||||
}
|
||||
|
||||
void CBarral_Splesh::Update(_float fTimeDelta)
|
||||
{
|
||||
if (m_bVisible == false)
|
||||
return;
|
||||
|
||||
__super::Update(fTimeDelta);
|
||||
|
||||
Update_Event(fTimeDelta);
|
||||
|
||||
|
||||
}
|
||||
|
||||
void CBarral_Splesh::Late_Update(_float fTimeDelta)
|
||||
{
|
||||
if (m_bVisible == false)
|
||||
return;
|
||||
|
||||
__super::Late_Update(fTimeDelta);
|
||||
|
||||
|
||||
}
|
||||
|
||||
HRESULT CBarral_Splesh::Pre_Setting(CGameObject* pObject, void* pArg)
|
||||
{
|
||||
|
||||
if (FAILED(__super::Pre_Setting(pObject, nullptr)))
|
||||
return E_FAIL;
|
||||
|
||||
CEffectParts* pWood_PT0 = Get_PartObject<CEffectParts>("Wood_PT0");
|
||||
CEffectParts* pWood_PT1 = Get_PartObject<CEffectParts>("Wood_PT1");
|
||||
CEffectParts* pWood_PT2 = Get_PartObject<CEffectParts>("Wood_PT2");
|
||||
CEffectParts* pWater_Splesh = Get_PartObject<CEffectParts>("Water_Splesh");
|
||||
|
||||
|
||||
_vector vPos = m_pOwner->Get_WorldPostion();
|
||||
|
||||
pWood_PT0->Get_Component<CTransform>()->Set_State(STATE::POSITION, vPos);
|
||||
pWood_PT1->Get_Component<CTransform>()->Set_State(STATE::POSITION, vPos);
|
||||
pWood_PT2->Get_Component<CTransform>()->Set_State(STATE::POSITION, vPos);
|
||||
pWater_Splesh->Get_Component<CTransform>()->Set_State(STATE::POSITION, vPos);
|
||||
|
||||
|
||||
pWood_PT0->Set_Visible(true);
|
||||
pWood_PT1->Set_Visible(true);
|
||||
pWood_PT2->Set_Visible(true);
|
||||
pWater_Splesh->Set_Visible(true);
|
||||
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CBarral_Splesh::Ready_Components(void* pArg)
|
||||
{
|
||||
if (FAILED(__super::Ready_Components(pArg))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CBarral_Splesh::Ready_Child()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
CBarral_Splesh* CBarral_Splesh::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
{
|
||||
CBarral_Splesh* pInstance = new CBarral_Splesh(pDevice, pContext);
|
||||
|
||||
if (FAILED(pInstance->Initialize_Prototype()))
|
||||
{
|
||||
MSG_BOX("Failed to Created : CBarral_Splesh");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
|
||||
CGameObject* CBarral_Splesh::Clone(void* pArg, CGameObject* pOwner)
|
||||
{
|
||||
CBarral_Splesh* pInstance = new CBarral_Splesh(*this);
|
||||
pInstance->m_pOwner = pOwner;
|
||||
if (FAILED(pInstance->Initialize(pArg)))
|
||||
{
|
||||
MSG_BOX("Failed to Cloned : CBarral_Splesh");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
void CBarral_Splesh::OnCollision(CGameObject* pOther, void* pDesc)
|
||||
{
|
||||
_int iIndex = CollisionCheck();
|
||||
|
||||
if (iIndex < 0)
|
||||
return;
|
||||
|
||||
if (m_isCollisionEnter == true)
|
||||
return;
|
||||
|
||||
m_isCollisionEnter = true;
|
||||
|
||||
_vector vPos = XMVectorSet(m_Hitbuffer.touches[iIndex].position.x, m_Hitbuffer.touches[iIndex].position.y, m_Hitbuffer.touches[iIndex].position.z, 1.f);
|
||||
|
||||
|
||||
for (auto& pPair : m_PartObjects)
|
||||
{
|
||||
pPair.second->Set_Visible(true);
|
||||
pPair.second->Get_Component<CTransform>()->Set_State(STATE::POSITION, vPos);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
void CBarral_Splesh::Free()
|
||||
{
|
||||
__super::Free();
|
||||
|
||||
}
|
||||
#ifdef _DEBUG
|
||||
void CBarral_Splesh::Describe_Entity()
|
||||
{
|
||||
|
||||
}
|
||||
#endif
|
||||
|
||||
HRESULT CBarral_Splesh::Bind_ShaderResources()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,182 @@
|
||||
#include "pch.h"
|
||||
#include "Box_Splesh.h"
|
||||
|
||||
#include "GameInstance.h"
|
||||
#include "EffectParts.h"
|
||||
#include "Wand.h"
|
||||
#include "Player.h"
|
||||
|
||||
CBox_Splesh::CBox_Splesh(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
: CEffect_Container{ pDevice, pContext }
|
||||
{
|
||||
}
|
||||
|
||||
CBox_Splesh::CBox_Splesh(const CBox_Splesh& rhs)
|
||||
: CEffect_Container(rhs)
|
||||
{
|
||||
}
|
||||
|
||||
HRESULT CBox_Splesh::Initialize_Prototype()
|
||||
{
|
||||
|
||||
return S_OK;
|
||||
|
||||
}
|
||||
|
||||
HRESULT CBox_Splesh::Initialize(void* pArg)
|
||||
{
|
||||
if (FAILED(__super::Initialize(pArg)))
|
||||
return E_FAIL;
|
||||
|
||||
if (FAILED(Ready_Components(pArg)))
|
||||
return E_FAIL;
|
||||
|
||||
|
||||
if (FAILED(Load_Package("../Bin/Resources/Data/Effect/Package/Box")))
|
||||
return E_FAIL;
|
||||
|
||||
|
||||
m_wstrEffectName = L"Box_Splesh";
|
||||
|
||||
|
||||
m_fDuration = 5.f;
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CBox_Splesh::Priority_Update(_float fTimeDelta)
|
||||
{
|
||||
__super::Priority_Update(fTimeDelta);
|
||||
|
||||
}
|
||||
|
||||
void CBox_Splesh::Update(_float fTimeDelta)
|
||||
{
|
||||
if (m_bVisible == false)
|
||||
return;
|
||||
|
||||
__super::Update(fTimeDelta);
|
||||
|
||||
Update_Event(fTimeDelta);
|
||||
|
||||
|
||||
}
|
||||
|
||||
void CBox_Splesh::Late_Update(_float fTimeDelta)
|
||||
{
|
||||
if (m_bVisible == false)
|
||||
return;
|
||||
|
||||
__super::Late_Update(fTimeDelta);
|
||||
|
||||
|
||||
}
|
||||
|
||||
HRESULT CBox_Splesh::Pre_Setting(CGameObject* pObject, void* pArg)
|
||||
{
|
||||
|
||||
if (FAILED(__super::Pre_Setting(pObject, nullptr)))
|
||||
return E_FAIL;
|
||||
|
||||
CEffectParts* pPaper = Get_PartObject<CEffectParts>("Paper");
|
||||
CEffectParts* pSmoke = Get_PartObject<CEffectParts>("Smoke");
|
||||
|
||||
|
||||
|
||||
_vector vPos = m_pOwner->Get_WorldPostion();
|
||||
|
||||
pPaper->Get_Component<CTransform>()->Set_State(STATE::POSITION, vPos);
|
||||
pSmoke->Get_Component<CTransform>()->Set_State(STATE::POSITION, vPos);
|
||||
|
||||
|
||||
pPaper->Set_Visible(true);
|
||||
pSmoke->Set_Visible(true);
|
||||
|
||||
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CBox_Splesh::Ready_Components(void* pArg)
|
||||
{
|
||||
if (FAILED(__super::Ready_Components(pArg))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CBox_Splesh::Ready_Child()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
CBox_Splesh* CBox_Splesh::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
{
|
||||
CBox_Splesh* pInstance = new CBox_Splesh(pDevice, pContext);
|
||||
|
||||
if (FAILED(pInstance->Initialize_Prototype()))
|
||||
{
|
||||
MSG_BOX("Failed to Created : CBarral_Splesh");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
|
||||
CGameObject* CBox_Splesh::Clone(void* pArg, CGameObject* pOwner)
|
||||
{
|
||||
CBox_Splesh* pInstance = new CBox_Splesh(*this);
|
||||
pInstance->m_pOwner = pOwner;
|
||||
if (FAILED(pInstance->Initialize(pArg)))
|
||||
{
|
||||
MSG_BOX("Failed to Cloned : CBarral_Splesh");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
void CBox_Splesh::OnCollision(CGameObject* pOther, void* pDesc)
|
||||
{
|
||||
_int iIndex = CollisionCheck();
|
||||
|
||||
if (iIndex < 0)
|
||||
return;
|
||||
|
||||
if (m_isCollisionEnter == true)
|
||||
return;
|
||||
|
||||
m_isCollisionEnter = true;
|
||||
|
||||
_vector vPos = XMVectorSet(m_Hitbuffer.touches[iIndex].position.x, m_Hitbuffer.touches[iIndex].position.y, m_Hitbuffer.touches[iIndex].position.z, 1.f);
|
||||
|
||||
|
||||
for (auto& pPair : m_PartObjects)
|
||||
{
|
||||
pPair.second->Set_Visible(true);
|
||||
pPair.second->Get_Component<CTransform>()->Set_State(STATE::POSITION, vPos);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
void CBox_Splesh::Free()
|
||||
{
|
||||
__super::Free();
|
||||
|
||||
}
|
||||
#ifdef _DEBUG
|
||||
void CBox_Splesh::Describe_Entity()
|
||||
{
|
||||
|
||||
}
|
||||
#endif
|
||||
|
||||
HRESULT CBox_Splesh::Bind_ShaderResources()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,186 @@
|
||||
#include "pch.h"
|
||||
#include "Chair_Splesh.h"
|
||||
|
||||
#include "GameInstance.h"
|
||||
#include "EffectParts.h"
|
||||
#include "Wand.h"
|
||||
#include "Player.h"
|
||||
|
||||
CChair_Splesh::CChair_Splesh(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
: CEffect_Container{ pDevice, pContext }
|
||||
{
|
||||
}
|
||||
|
||||
CChair_Splesh::CChair_Splesh(const CChair_Splesh& rhs)
|
||||
: CEffect_Container(rhs)
|
||||
{
|
||||
}
|
||||
|
||||
HRESULT CChair_Splesh::Initialize_Prototype()
|
||||
{
|
||||
|
||||
return S_OK;
|
||||
|
||||
}
|
||||
|
||||
HRESULT CChair_Splesh::Initialize(void* pArg)
|
||||
{
|
||||
if (FAILED(__super::Initialize(pArg)))
|
||||
return E_FAIL;
|
||||
|
||||
if (FAILED(Ready_Components(pArg)))
|
||||
return E_FAIL;
|
||||
|
||||
|
||||
if (FAILED(Load_Package("../Bin/Resources/Data/Effect/Package/Chair")))
|
||||
return E_FAIL;
|
||||
|
||||
|
||||
m_wstrEffectName = L"Chair_Splesh";
|
||||
|
||||
|
||||
m_fDuration = 5.f;
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CChair_Splesh::Priority_Update(_float fTimeDelta)
|
||||
{
|
||||
__super::Priority_Update(fTimeDelta);
|
||||
|
||||
}
|
||||
|
||||
void CChair_Splesh::Update(_float fTimeDelta)
|
||||
{
|
||||
if (m_bVisible == false)
|
||||
return;
|
||||
|
||||
__super::Update(fTimeDelta);
|
||||
|
||||
Update_Event(fTimeDelta);
|
||||
|
||||
|
||||
}
|
||||
|
||||
void CChair_Splesh::Late_Update(_float fTimeDelta)
|
||||
{
|
||||
if (m_bVisible == false)
|
||||
return;
|
||||
|
||||
__super::Late_Update(fTimeDelta);
|
||||
|
||||
|
||||
}
|
||||
|
||||
HRESULT CChair_Splesh::Pre_Setting(CGameObject* pObject, void* pArg)
|
||||
{
|
||||
|
||||
if (FAILED(__super::Pre_Setting(pObject, nullptr)))
|
||||
return E_FAIL;
|
||||
|
||||
CEffectParts* pHit = Get_PartObject<CEffectParts>("Hit");
|
||||
CEffectParts* pSmoke = Get_PartObject<CEffectParts>("Smoke");
|
||||
CEffectParts* pWood_PT0 = Get_PartObject<CEffectParts>("Wood_PT0");
|
||||
CEffectParts* pWood_PT1 = Get_PartObject<CEffectParts>("Wood_PT1");
|
||||
|
||||
|
||||
_vector vPos = m_pOwner->Get_WorldPostion();
|
||||
|
||||
pWood_PT0->Get_Component<CTransform>()->Set_State(STATE::POSITION, vPos);
|
||||
pWood_PT1->Get_Component<CTransform>()->Set_State(STATE::POSITION, vPos);
|
||||
pHit->Get_Component<CTransform>()->Set_State(STATE::POSITION, vPos);
|
||||
pSmoke->Get_Component<CTransform>()->Set_State(STATE::POSITION, vPos);
|
||||
|
||||
|
||||
pWood_PT0->Set_Visible(true);
|
||||
pWood_PT1->Set_Visible(true);
|
||||
pHit->Set_Visible(true);
|
||||
pSmoke->Set_Visible(true);
|
||||
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CChair_Splesh::Ready_Components(void* pArg)
|
||||
{
|
||||
if (FAILED(__super::Ready_Components(pArg))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CChair_Splesh::Ready_Child()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
CChair_Splesh* CChair_Splesh::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
{
|
||||
CChair_Splesh* pInstance = new CChair_Splesh(pDevice, pContext);
|
||||
|
||||
if (FAILED(pInstance->Initialize_Prototype()))
|
||||
{
|
||||
MSG_BOX("Failed to Created : CBarral_Splesh");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
|
||||
CGameObject* CChair_Splesh::Clone(void* pArg, CGameObject* pOwner)
|
||||
{
|
||||
CChair_Splesh* pInstance = new CChair_Splesh(*this);
|
||||
pInstance->m_pOwner = pOwner;
|
||||
if (FAILED(pInstance->Initialize(pArg)))
|
||||
{
|
||||
MSG_BOX("Failed to Cloned : CBarral_Splesh");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
void CChair_Splesh::OnCollision(CGameObject* pOther, void* pDesc)
|
||||
{
|
||||
_int iIndex = CollisionCheck();
|
||||
|
||||
if (iIndex < 0)
|
||||
return;
|
||||
|
||||
if (m_isCollisionEnter == true)
|
||||
return;
|
||||
|
||||
m_isCollisionEnter = true;
|
||||
|
||||
_vector vPos = XMVectorSet(m_Hitbuffer.touches[iIndex].position.x, m_Hitbuffer.touches[iIndex].position.y, m_Hitbuffer.touches[iIndex].position.z, 1.f);
|
||||
|
||||
|
||||
for (auto& pPair : m_PartObjects)
|
||||
{
|
||||
pPair.second->Set_Visible(true);
|
||||
pPair.second->Get_Component<CTransform>()->Set_State(STATE::POSITION, vPos);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
void CChair_Splesh::Free()
|
||||
{
|
||||
__super::Free();
|
||||
|
||||
}
|
||||
#ifdef _DEBUG
|
||||
void CChair_Splesh::Describe_Entity()
|
||||
{
|
||||
|
||||
}
|
||||
#endif
|
||||
|
||||
HRESULT CChair_Splesh::Bind_ShaderResources()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -28,6 +28,9 @@
|
||||
#include "Mage_Nomal_Attack.h"
|
||||
#include "MageSide.h"
|
||||
#include "StunEffect.h"
|
||||
#include "Box_Splesh.h"
|
||||
#include "Chair_Splesh.h"
|
||||
#include "Barral_Splesh.h"
|
||||
|
||||
CEffectPool::CEffectPool(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
: CGameObject(pDevice, pContext)
|
||||
@@ -55,12 +58,41 @@ HRESULT CEffectPool::Initialize(void* pArg)
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(Ready_Effect())) {
|
||||
return E_FAIL;
|
||||
#ifdef _DEBUG
|
||||
|
||||
#ifdef gimch
|
||||
m_isActiveEffectCreate = false;
|
||||
m_isActiveMonsterEffectCreate = false;
|
||||
#endif // gimch
|
||||
#ifdef Bin
|
||||
m_isActiveEffectCreate = false;
|
||||
m_isActiveMonsterEffectCreate = false;
|
||||
#endif //
|
||||
#ifdef 진우
|
||||
m_isActiveEffectCreate = true;
|
||||
m_isActiveMonsterEffectCreate = false;
|
||||
#endif //
|
||||
#ifdef 기무리
|
||||
m_isActiveEffectCreate = false;
|
||||
m_isActiveMonsterEffectCreate = false;
|
||||
#endif //
|
||||
#ifdef 인혁
|
||||
m_isActiveEffectCreate = false;
|
||||
m_isActiveMonsterEffectCreate = false;
|
||||
#endif //
|
||||
|
||||
#endif
|
||||
|
||||
if (m_isActiveEffectCreate)
|
||||
{
|
||||
if (FAILED(Ready_Effect()))
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(Ready_MonsterEffect())) {
|
||||
return E_FAIL;
|
||||
if (m_isActiveMonsterEffectCreate)
|
||||
{
|
||||
if (FAILED(Ready_MonsterEffect()))
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
|
||||
@@ -152,7 +184,7 @@ HRESULT CEffectPool::Ready_Effect()
|
||||
|
||||
|
||||
#ifndef 기무리
|
||||
if (FAILED(Create_Effect(SKILL_TYPE::JAP, 10, NEXT_LEVEL, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
|
||||
/*if (FAILED(Create_Effect(SKILL_TYPE::JAP, 10, NEXT_LEVEL, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
|
||||
CNomalJap* pEffect = nullptr;
|
||||
|
||||
pEffect = m_pGameInstance->Clone_Prototype<CNomalJap>(iPrototypeLevel, nullptr);
|
||||
@@ -261,6 +293,36 @@ HRESULT CEffectPool::Ready_Effect()
|
||||
|
||||
pEffect = m_pGameInstance->Clone_Prototype<CWandEnd>(iPrototypeLevel, nullptr);
|
||||
|
||||
return pEffect; }
|
||||
))) return E_FAIL;*/
|
||||
|
||||
|
||||
if (FAILED(Create_Effect(SKILL_TYPE::BOX_SPLESH, 5, NEXT_LEVEL, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
|
||||
|
||||
CBox_Splesh* pEffect = nullptr;
|
||||
|
||||
pEffect = m_pGameInstance->Clone_Prototype<CBox_Splesh>(iPrototypeLevel, nullptr);
|
||||
|
||||
return pEffect; }
|
||||
))) return E_FAIL;
|
||||
|
||||
|
||||
if (FAILED(Create_Effect(SKILL_TYPE::CHAIL_SPLESH, 5, NEXT_LEVEL, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
|
||||
|
||||
CChair_Splesh* pEffect = nullptr;
|
||||
|
||||
pEffect = m_pGameInstance->Clone_Prototype<CChair_Splesh>(iPrototypeLevel, nullptr);
|
||||
|
||||
return pEffect; }
|
||||
))) return E_FAIL;
|
||||
|
||||
|
||||
if (FAILED(Create_Effect(SKILL_TYPE::BARRAL_SPLASH, 5, NEXT_LEVEL, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
|
||||
|
||||
CBarral_Splesh* pEffect = nullptr;
|
||||
|
||||
pEffect = m_pGameInstance->Clone_Prototype<CBarral_Splesh>(iPrototypeLevel, nullptr);
|
||||
|
||||
return pEffect; }
|
||||
))) return E_FAIL;
|
||||
|
||||
|
||||
@@ -340,6 +340,7 @@ void CInfoInstance::Release_Information()
|
||||
|
||||
DestroyInstance();
|
||||
|
||||
|
||||
SAFE_RELEASE(m_pMapInfo);
|
||||
SAFE_RELEASE(m_pPlayerInfo);
|
||||
SAFE_RELEASE(m_pMonsterInfo);
|
||||
|
||||
@@ -39,6 +39,12 @@ HRESULT CLevel_GamePlay::Initialize(void* pArg)
|
||||
if (FAILED(Ready_Lights())) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
//플레이어 , 맵 보다 먼저 생성해야함 !
|
||||
if (FAILED(Reday_Layer_EffectPool())) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(Ready_Background())) {
|
||||
return E_FAIL;
|
||||
}
|
||||
@@ -48,10 +54,7 @@ HRESULT CLevel_GamePlay::Initialize(void* pArg)
|
||||
if (FAILED(Ready_Layer_UI(LAYER_UI))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
//플레이어보다 먼저 생성해야함!
|
||||
if (FAILED(Reday_Layer_EffectPool())) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
// 이것도 플레이어보다 먼저 생성해야함!
|
||||
if (FAILED(Ready_Layer_Item(LAYER_ITEM))) {
|
||||
return E_FAIL;
|
||||
@@ -237,7 +240,7 @@ HRESULT CLevel_GamePlay::Ready_Background()
|
||||
isReady_Background = false;
|
||||
#endif //
|
||||
#ifdef 진우
|
||||
isReady_Background = false;
|
||||
isReady_Background = true;
|
||||
#endif //
|
||||
#ifdef 기무리
|
||||
isReady_Background = true;
|
||||
@@ -256,14 +259,14 @@ HRESULT CLevel_GamePlay::Ready_Background()
|
||||
else
|
||||
{
|
||||
/* 전체 맵 */
|
||||
CInfoInstance::GetInstance()->Load_MapObjects("Hogsmeade_MapContainer_Data");
|
||||
//CInfoInstance::GetInstance()->Load_MapObjects("Hogsmeade_MapContainer_Data");
|
||||
|
||||
/* 물 오브젝트 */
|
||||
if (FAILED(CInfoInstance::GetInstance()->Load_WaterElemet("Element_Water_Info")))
|
||||
return E_FAIL;
|
||||
|
||||
/* 조명 오브젝트 */
|
||||
CInfoInstance::GetInstance()->Load_LightElements("LightElement");
|
||||
/*CInfoInstance::GetInstance()->Load_LightElements("LightElement");*/
|
||||
|
||||
/* 상호작용 오브젝트 */
|
||||
CInfoInstance::GetInstance()->Load_InteractableElements("E_INTER_Barrel");
|
||||
|
||||
@@ -142,6 +142,9 @@
|
||||
#include "MageSide.h"
|
||||
|
||||
#include "StunEffect.h"
|
||||
#include "Box_Splesh.h"
|
||||
#include "Chair_Splesh.h"
|
||||
#include "Barral_Splesh.h"
|
||||
|
||||
#pragma endregion
|
||||
|
||||
@@ -310,7 +313,7 @@ HRESULT CLoader::Loading_For_GamePlay()
|
||||
isLoad_Background = false;
|
||||
#endif //
|
||||
#ifdef 진우
|
||||
isLoad_Background = false;
|
||||
isLoad_Background = true;
|
||||
#endif //
|
||||
#ifdef 기무리
|
||||
isLoad_Background = true;
|
||||
@@ -1566,6 +1569,17 @@ HRESULT CLoader::Loading_For_GamePlay()
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CBox_Splesh>(NEXT_LEVEL, CBox_Splesh::Create(m_pDevice, m_pContext)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CBarral_Splesh>(NEXT_LEVEL, CBarral_Splesh::Create(m_pDevice, m_pContext)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CChair_Splesh>(NEXT_LEVEL, CChair_Splesh::Create(m_pDevice, m_pContext)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CWandEnd>(NEXT_LEVEL, CWandEnd::Create(m_pDevice, m_pContext)))) {
|
||||
return E_FAIL;
|
||||
@@ -1578,6 +1592,17 @@ HRESULT CLoader::Loading_For_GamePlay()
|
||||
|
||||
m_strMessage = TEXT("Model Loading..");
|
||||
|
||||
|
||||
Asset_FileLoad("../Bin/Resources/Models/Effect/Box", L"Prototype_Instance_Model_", [&](_wstring wstrFileName, const _char* pFilePath) {
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(NEXT_LEVEL, wstrFileName,
|
||||
CInstance_Model::Create(m_pDevice, m_pContext, pFilePath, MODEL::NONANIM, XMMatrixScaling(0.1f, 0.1f, 0.1f) * XMMatrixIdentity(), 0))))
|
||||
return E_FAIL;
|
||||
|
||||
return S_OK;
|
||||
|
||||
});
|
||||
|
||||
Asset_FileLoad("../Bin/Resources/Models/Effect/ParticleMesh", L"Prototype_Instance_Model_", [&](_wstring wstrFileName, const _char* pFilePath) {
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(NEXT_LEVEL, wstrFileName,
|
||||
|
||||
@@ -3,6 +3,8 @@
|
||||
|
||||
#include "InfoInstance.h"
|
||||
#include "GameInstance.h"
|
||||
#include "EffectPool.h"
|
||||
#include "Layer.h"
|
||||
|
||||
CMapElement_Interactable::CMapElement_Interactable(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
: CMapElement{ pDevice, pContext }
|
||||
@@ -32,6 +34,25 @@ HRESULT CMapElement_Interactable::Initialize(void* pArg)
|
||||
//m_ModelPathIndices.push_back((*pDesc->pModelPathIndices)[i]);
|
||||
}
|
||||
|
||||
if (m_ModelPrototypeTags[0] == L"Prototype_GameObject_SM_Prop_Barrel_Breakable_B_Oppungo")
|
||||
{
|
||||
m_eInteractableID = ELEMENT_INTERACTABLE_ID::BARREL;
|
||||
}
|
||||
|
||||
else if (m_ModelPrototypeTags[0] == L"Prototype_GameObject_SM_HM_OwlPost_Package_B")
|
||||
{
|
||||
m_eInteractableID = ELEMENT_INTERACTABLE_ID::BOX;
|
||||
}
|
||||
else if (m_ModelPrototypeTags[0] == L"Prototype_GameObject_SM_HM_TeaShop_Table_B")
|
||||
{
|
||||
m_eInteractableID = ELEMENT_INTERACTABLE_ID::TABLE;
|
||||
}
|
||||
else if (m_ModelPrototypeTags[0] == L"Prototype_GameObject_SM_HM_TeaShop_Chair_B")
|
||||
{
|
||||
m_eInteractableID = ELEMENT_INTERACTABLE_ID::TABLE;
|
||||
}
|
||||
|
||||
|
||||
if (FAILED(__super::Initialize(pArg)))
|
||||
return E_FAIL;
|
||||
|
||||
@@ -59,19 +80,43 @@ HRESULT CMapElement_Interactable::Initialize(void* pArg)
|
||||
|
||||
m_pInfoInstance->Regist_ActiveInteractive(this);
|
||||
|
||||
|
||||
m_pEffectPool = m_pGameInstance->Get_Layer(NEXT_LEVEL, TEXT("Layer_EffectPool"))->Get_Object<CEffectPool>();
|
||||
SAFE_ADDREF(m_pEffectPool);
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CMapElement_Interactable::Priority_Update(_float fTimeDelta)
|
||||
{
|
||||
_float fRadius = m_pModelComs[0]->Get_Radius();
|
||||
|
||||
XMStoreFloat4(&m_vStartPos, Get_WorldPostion() + XMVectorSet(0.f , fRadius , 0.f , 0.f ));
|
||||
|
||||
}
|
||||
|
||||
void CMapElement_Interactable::Update(_float fTimeDelta)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
void CMapElement_Interactable::Late_Update(_float fTimeDelta)
|
||||
{
|
||||
|
||||
if (m_isGraped == true)
|
||||
{
|
||||
_float fRadius = m_pModelComs[0]->Get_Radius();
|
||||
|
||||
if (false == m_bHit) {
|
||||
_vector vStartPos = XMLoadFloat4(&m_vStartPos);
|
||||
_vector vEndPos = Get_WorldPostion() + XMVectorSet(0.f, fRadius, 0.f, 0.f);
|
||||
ON_COLLISION_INFO CollisionInfo = CollisionCheck(vStartPos, vEndPos, 1.f);
|
||||
|
||||
if (m_bHit == true)
|
||||
OnCollision(this, &CollisionInfo);
|
||||
}
|
||||
}
|
||||
|
||||
if (m_pGameInstance->isIn_WorldFrustum(Get_WorldPostion(), m_pModelComs[0]->Get_Radius())) {
|
||||
m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this);
|
||||
}
|
||||
@@ -119,8 +164,46 @@ void CMapElement_Interactable::GrapToPlayer(_fvector vPos, _float fRatio)
|
||||
{
|
||||
_vector vCurrentPosition = m_pTransformCom->Get_State(STATE::POSITION);
|
||||
m_pTransformCom->Set_State(STATE::POSITION, XMVectorLerp(vCurrentPosition, vPos, fRatio));
|
||||
|
||||
m_isGraped = true;
|
||||
|
||||
}
|
||||
|
||||
void CMapElement_Interactable::OnCollision(CGameObject* pOther, void* pDesc)
|
||||
{
|
||||
if (m_bHit == false)
|
||||
return;
|
||||
|
||||
ON_COLLISION_INFO CollisionDesc = *static_cast<ON_COLLISION_INFO*>(pDesc);
|
||||
|
||||
_vector vPos = XMLoadFloat4(&CollisionDesc.vWorldPos);
|
||||
|
||||
switch (m_eInteractableID)
|
||||
{
|
||||
case Client::ELEMENT_INTERACTABLE_ID::BARREL:
|
||||
|
||||
m_pEffectPool->Use_Skill(SKILL_TYPE::BARRAL_SPLASH, this);
|
||||
break;
|
||||
case Client::ELEMENT_INTERACTABLE_ID::BOX:
|
||||
|
||||
m_pEffectPool->Use_Skill(SKILL_TYPE::BOX_SPLESH, this);
|
||||
break;
|
||||
case Client::ELEMENT_INTERACTABLE_ID::TABLE:
|
||||
m_pEffectPool->Use_Skill(SKILL_TYPE::CHAIL_SPLESH, this);
|
||||
break;
|
||||
case Client::ELEMENT_INTERACTABLE_ID::END:
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Set_Dead();
|
||||
}
|
||||
|
||||
|
||||
|
||||
HRESULT CMapElement_Interactable::Ready_Components(void* pArg)
|
||||
{
|
||||
if (FAILED(__super::Ready_Components(pArg))) {
|
||||
@@ -241,6 +324,121 @@ void CMapElement_Interactable::Set_KinematicFlag(_bool bFlag)
|
||||
m_pRigidBody->Set_Kinematic(bFlag);
|
||||
}
|
||||
|
||||
ON_COLLISION_INFO CMapElement_Interactable::CollisionCheck(_fvector StartPos, _fvector EndPos, _float fRadius)
|
||||
{
|
||||
|
||||
_vector vStartPos = StartPos;
|
||||
_vector vEndPos = EndPos;
|
||||
_vector vDir = { vEndPos - vStartPos };
|
||||
|
||||
_float fDistance = XMVectorGetX(XMVector3Length(vEndPos - vStartPos));
|
||||
|
||||
PSX::PxSweepBuffer pxBuffer = {};
|
||||
|
||||
_bool bHit = m_pGameInstance->SphereCast(fRadius, vStartPos, vDir, fDistance, PSX::PxHitFlag::ePOSITION | PSX::PxHitFlag::eNORMAL, PSX::PxQueryFlag::eDYNAMIC, pxBuffer);
|
||||
|
||||
const PSX::PxSweepHit& hit = pxBuffer.block;
|
||||
PSX::PxRigidActor* pActor = hit.actor;
|
||||
PSX::PxShape* pShape = hit.shape;
|
||||
ON_COLLISION_INFO tagCollInfo = {};
|
||||
|
||||
tagCollInfo.vWorldPos.w = 1.f;
|
||||
|
||||
if (bHit) {
|
||||
|
||||
memcpy_s(&tagCollInfo.vWorldPos, sizeof(tagCollInfo.vWorldPos), &hit.position, sizeof(hit.position));
|
||||
|
||||
memcpy_s(&tagCollInfo.vWorldNomal, sizeof(tagCollInfo.vWorldNomal), &hit.normal, sizeof(hit.normal));
|
||||
XMStoreFloat4(&tagCollInfo.vHitDir, vDir);
|
||||
tagCollInfo.fLength = fDistance;
|
||||
|
||||
|
||||
if (nullptr != pActor && nullptr != pActor->userData)
|
||||
{
|
||||
PhsXUserData* pUserData = static_cast<PhsXUserData*>(pActor->userData);
|
||||
tagCollInfo.pObject = pUserData->pOwner;
|
||||
|
||||
switch (pUserData->eKind)
|
||||
{
|
||||
case PHYSX_KIND::CCTActor:
|
||||
{
|
||||
switch (PXOBJECT(pUserData->iSubKind))
|
||||
{
|
||||
case PXOBJECT::MONSTER:
|
||||
break;
|
||||
case PXOBJECT::GOBLIN_WARRIOR:
|
||||
{
|
||||
pUserData->pOwner->OnCollision(this, &tagCollInfo);
|
||||
m_bHit = true;
|
||||
}
|
||||
break;
|
||||
case PXOBJECT::GOBLIN_MAGICIAN:
|
||||
{
|
||||
pUserData->pOwner->OnCollision(this, &tagCollInfo);
|
||||
m_bHit = true;
|
||||
}
|
||||
break;
|
||||
case PXOBJECT::TROLL:
|
||||
{
|
||||
pUserData->pOwner->OnCollision(this, &tagCollInfo);
|
||||
m_bHit = true;
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
if (bHit == false)
|
||||
{
|
||||
memcpy_s(&tagCollInfo.vWorldPos, sizeof(tagCollInfo.vWorldPos), &hit.position, sizeof(hit.position));
|
||||
memcpy_s(&tagCollInfo.vWorldNomal, sizeof(tagCollInfo.vWorldNomal), &hit.normal, sizeof(hit.normal));
|
||||
XMStoreFloat4(&tagCollInfo.vHitDir, vDir);
|
||||
tagCollInfo.fLength = fDistance;
|
||||
tagCollInfo.pObject = this;
|
||||
|
||||
bHit = m_pGameInstance->SphereCast(fRadius, vStartPos, vDir, fDistance, PSX::PxHitFlag::ePOSITION | PSX::PxHitFlag::eNORMAL, PSX::PxQueryFlag::eSTATIC, pxBuffer);
|
||||
|
||||
const PSX::PxSweepHit& hit = pxBuffer.block;
|
||||
PSX::PxRigidActor* pActor = hit.actor;
|
||||
PSX::PxShape* pShape = hit.shape;
|
||||
|
||||
tagCollInfo.vWorldPos.w = 1.f;
|
||||
|
||||
if (bHit)
|
||||
{
|
||||
memcpy_s(&tagCollInfo.vWorldPos, sizeof(tagCollInfo.vWorldPos), &hit.position, sizeof(hit.position));
|
||||
memcpy_s(&tagCollInfo.vWorldNomal, sizeof(tagCollInfo.vWorldNomal), &hit.normal, sizeof(hit.normal));
|
||||
XMStoreFloat4(&tagCollInfo.vHitDir, vDir);
|
||||
tagCollInfo.fLength = fDistance;
|
||||
|
||||
if (nullptr != pActor && nullptr != pActor->userData)
|
||||
{
|
||||
PhsXUserData* pUserData = static_cast<PhsXUserData*>(pActor->userData);
|
||||
tagCollInfo.pObject = pUserData->pOwner;
|
||||
|
||||
switch (PXOBJECT(pUserData->iSubKind))
|
||||
{
|
||||
case PXOBJECT::TERRAIN:
|
||||
{
|
||||
/* TODO, 터레인 안됨 */
|
||||
m_bHit = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
return tagCollInfo;
|
||||
}
|
||||
|
||||
CMapElement_Interactable* CMapElement_Interactable::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
{
|
||||
CMapElement_Interactable* pInstance = new CMapElement_Interactable(pDevice, pContext);
|
||||
@@ -276,6 +474,7 @@ void CMapElement_Interactable::Free()
|
||||
|
||||
SAFE_RELEASE(m_pRigidBody);
|
||||
SAFE_RELEASE(m_pShaderCom);
|
||||
SAFE_RELEASE(m_pEffectPool);
|
||||
|
||||
if (nullptr != m_pInfoInstance) {
|
||||
CInfoInstance* pInfo = m_pInfoInstance;
|
||||
@@ -285,6 +484,8 @@ void CMapElement_Interactable::Free()
|
||||
for (auto& pModel : m_pModelComs){
|
||||
SAFE_RELEASE(pModel);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
#ifdef _DEBUG
|
||||
|
||||
@@ -78,9 +78,9 @@ void CStunEffect::Update(_float fTimeDelta)
|
||||
BoneMat.r[i] = XMVector3Normalize(BoneMat.r[i]);
|
||||
}
|
||||
|
||||
m_pStunEffect->Get_Component<CTransform>()->Set_WorldMatrix(BoneMat * m_pOwner->Get_Component<CTransform>()->Get_XMWorldMatrix());
|
||||
BoneMat *= m_pOwner->Get_Component<CTransform>()->Get_XMWorldMatrix();
|
||||
|
||||
m_pStunEffect->Get_Component<CTransform>()->Rotation(XMVectorSet(0.f, 0.f, XMConvertToRadians(180.f), 0.f));
|
||||
m_pStunEffect->Get_Component<CTransform>()->Set_State(STATE::POSITION, BoneMat.r[3]);
|
||||
|
||||
}
|
||||
|
||||
@@ -109,10 +109,11 @@ HRESULT CStunEffect::Pre_Setting(CGameObject* pObject, void* pArg)
|
||||
for (int i = 0; i < 3; ++i) {
|
||||
BoneMat.r[i] = XMVector3Normalize(BoneMat.r[i]);
|
||||
}
|
||||
BoneMat *= m_pOwner->Get_Component<CTransform>()->Get_XMWorldMatrix();
|
||||
|
||||
m_pStunEffect->Get_Component<CTransform>()->Set_State(STATE::POSITION, BoneMat.r[3]);
|
||||
|
||||
m_pStunEffect->Get_Component<CTransform>()->Set_WorldMatrix(BoneMat * m_pOwner->Get_Component<CTransform>()->Get_XMWorldMatrix());
|
||||
|
||||
m_pStunEffect->Get_Component<CTransform>()->Rotation(XMVectorSet(0.f, 0.f , 90.f, 0.f));
|
||||
|
||||
m_pStunEffect->Set_Visible(true);
|
||||
|
||||
|
||||
@@ -11,6 +11,7 @@
|
||||
#include "EffectPool.h"
|
||||
#include "Layer.h"
|
||||
#include "TrailObject.h"
|
||||
#include "MapElement_Interactable.h"
|
||||
|
||||
#pragma region STATE
|
||||
#include "State_Idle.h"
|
||||
@@ -281,25 +282,39 @@ void CTroll::OnCollision(CGameObject* pOther, void* pDesc)
|
||||
{
|
||||
ON_COLLISION_INFO* CollisionDesc = static_cast<ON_COLLISION_INFO*>(pDesc);
|
||||
|
||||
_uint iSkillType = dynamic_cast<CEffect_Container*>(pOther)->Get_SkillType();
|
||||
switch (iSkillType)
|
||||
CEffect_Container* pEffect = dynamic_cast<CEffect_Container*>(pOther);
|
||||
|
||||
if (pEffect != nullptr)
|
||||
{
|
||||
case ENUM_CLASS(SKILL_TYPE::DESCENDO):
|
||||
m_eHitSpell = ENUM_CLASS(SKILL_TYPE::DESCENDO);
|
||||
break;
|
||||
case ENUM_CLASS(SKILL_TYPE::BOMBARDA):
|
||||
m_eHitSpell = ENUM_CLASS(SKILL_TYPE::DESCENDO);
|
||||
break;
|
||||
case ENUM_CLASS(SKILL_TYPE::FLIPENDO):
|
||||
m_eHitSpell = ENUM_CLASS(SKILL_TYPE::FLIPENDO);
|
||||
break;
|
||||
case ENUM_CLASS(SKILL_TYPE::JAP):
|
||||
m_eHitSpell = ENUM_CLASS(SKILL_TYPE::JAP);
|
||||
break;
|
||||
default:
|
||||
m_eHitSpell = ENUM_CLASS(SKILL_TYPE::END);
|
||||
break;
|
||||
_uint iSkillType = dynamic_cast<CEffect_Container*>(pOther)->Get_SkillType();
|
||||
|
||||
switch (iSkillType)
|
||||
{
|
||||
case ENUM_CLASS(SKILL_TYPE::DESCENDO):
|
||||
m_eHitSpell = ENUM_CLASS(SKILL_TYPE::DESCENDO);
|
||||
break;
|
||||
case ENUM_CLASS(SKILL_TYPE::BOMBARDA):
|
||||
m_eHitSpell = ENUM_CLASS(SKILL_TYPE::DESCENDO);
|
||||
break;
|
||||
case ENUM_CLASS(SKILL_TYPE::FLIPENDO):
|
||||
m_eHitSpell = ENUM_CLASS(SKILL_TYPE::FLIPENDO);
|
||||
break;
|
||||
case ENUM_CLASS(SKILL_TYPE::JAP):
|
||||
m_eHitSpell = ENUM_CLASS(SKILL_TYPE::JAP);
|
||||
break;
|
||||
default:
|
||||
m_eHitSpell = ENUM_CLASS(SKILL_TYPE::END);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
CMapElement_Interactable* pProps = dynamic_cast<CMapElement_Interactable*>(pOther);
|
||||
|
||||
if (pProps != nullptr)
|
||||
{
|
||||
m_eHitSpell = STATEANIM::KNOCKDOWN_FWD;
|
||||
}
|
||||
|
||||
m_pFSM->Change_State(FSMSTATE::HIT);
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,42 @@
|
||||
#pragma once
|
||||
|
||||
#include "Client_Define.h"
|
||||
#include "Effect_Container.h"
|
||||
|
||||
NS_BEGIN(Engine)
|
||||
NS_END
|
||||
|
||||
NS_BEGIN(Client)
|
||||
|
||||
class CBarral_Splesh final : public CEffect_Container
|
||||
{
|
||||
private:
|
||||
CBarral_Splesh(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
CBarral_Splesh(const CBarral_Splesh& rhs);
|
||||
virtual ~CBarral_Splesh() = default;
|
||||
|
||||
public:
|
||||
virtual void Priority_Update(_float fTimeDelta) override;
|
||||
virtual void Update(_float fTimeDelta) override;
|
||||
virtual void Late_Update(_float fTimeDelta) override;
|
||||
|
||||
public:
|
||||
virtual HRESULT Pre_Setting(CGameObject* pObject, void* pArg = nullptr) override;
|
||||
|
||||
private:
|
||||
virtual HRESULT Initialize_Prototype() override;
|
||||
virtual HRESULT Initialize(void* pArg) override;
|
||||
virtual HRESULT Ready_Components(void* pArg) override;
|
||||
HRESULT Ready_Child();
|
||||
HRESULT Bind_ShaderResources() override;
|
||||
virtual void OnCollision(CGameObject* pOther = nullptr, void* pDesc = nullptr) override;
|
||||
private:
|
||||
_wstring m_wstrEffectName = {};
|
||||
public:
|
||||
static CBarral_Splesh* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
virtual void Free() override;
|
||||
CGameObject* Clone(void* pArg, CGameObject* pOwner) override;
|
||||
void Describe_Entity() override;
|
||||
};
|
||||
|
||||
NS_END
|
||||
@@ -0,0 +1,42 @@
|
||||
#pragma once
|
||||
|
||||
#include "Client_Define.h"
|
||||
#include "Effect_Container.h"
|
||||
|
||||
NS_BEGIN(Engine)
|
||||
NS_END
|
||||
|
||||
NS_BEGIN(Client)
|
||||
|
||||
class CBox_Splesh final : public CEffect_Container
|
||||
{
|
||||
private:
|
||||
CBox_Splesh(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
CBox_Splesh(const CBox_Splesh& rhs);
|
||||
virtual ~CBox_Splesh() = default;
|
||||
|
||||
public:
|
||||
virtual void Priority_Update(_float fTimeDelta) override;
|
||||
virtual void Update(_float fTimeDelta) override;
|
||||
virtual void Late_Update(_float fTimeDelta) override;
|
||||
|
||||
public:
|
||||
virtual HRESULT Pre_Setting(CGameObject* pObject, void* pArg = nullptr) override;
|
||||
|
||||
private:
|
||||
virtual HRESULT Initialize_Prototype() override;
|
||||
virtual HRESULT Initialize(void* pArg) override;
|
||||
virtual HRESULT Ready_Components(void* pArg) override;
|
||||
HRESULT Ready_Child();
|
||||
HRESULT Bind_ShaderResources() override;
|
||||
virtual void OnCollision(CGameObject* pOther = nullptr, void* pDesc = nullptr) override;
|
||||
private:
|
||||
_wstring m_wstrEffectName = {};
|
||||
public:
|
||||
static CBox_Splesh* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
virtual void Free() override;
|
||||
CGameObject* Clone(void* pArg, CGameObject* pOwner) override;
|
||||
void Describe_Entity() override;
|
||||
};
|
||||
|
||||
NS_END
|
||||
@@ -0,0 +1,42 @@
|
||||
#pragma once
|
||||
|
||||
#include "Client_Define.h"
|
||||
#include "Effect_Container.h"
|
||||
|
||||
NS_BEGIN(Engine)
|
||||
NS_END
|
||||
|
||||
NS_BEGIN(Client)
|
||||
|
||||
class CChair_Splesh final : public CEffect_Container
|
||||
{
|
||||
private:
|
||||
CChair_Splesh(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
CChair_Splesh(const CChair_Splesh& rhs);
|
||||
virtual ~CChair_Splesh() = default;
|
||||
|
||||
public:
|
||||
virtual void Priority_Update(_float fTimeDelta) override;
|
||||
virtual void Update(_float fTimeDelta) override;
|
||||
virtual void Late_Update(_float fTimeDelta) override;
|
||||
|
||||
public:
|
||||
virtual HRESULT Pre_Setting(CGameObject* pObject, void* pArg = nullptr) override;
|
||||
|
||||
private:
|
||||
virtual HRESULT Initialize_Prototype() override;
|
||||
virtual HRESULT Initialize(void* pArg) override;
|
||||
virtual HRESULT Ready_Components(void* pArg) override;
|
||||
HRESULT Ready_Child();
|
||||
HRESULT Bind_ShaderResources() override;
|
||||
virtual void OnCollision(CGameObject* pOther = nullptr, void* pDesc = nullptr) override;
|
||||
private:
|
||||
_wstring m_wstrEffectName = {};
|
||||
public:
|
||||
static CChair_Splesh* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
virtual void Free() override;
|
||||
CGameObject* Clone(void* pArg, CGameObject* pOwner) override;
|
||||
void Describe_Entity() override;
|
||||
};
|
||||
|
||||
NS_END
|
||||
@@ -31,6 +31,9 @@ namespace Client
|
||||
JAP, REVELIO, PROTEGO, STUPEFY, // 검은색
|
||||
ANCIENT_MAGIC_THROW, ANCIENT_MAGIC, ALOHOMORA, PETRIFICUS_TOTALUS,
|
||||
|
||||
/* PROPS */
|
||||
|
||||
BOX_SPLESH, CHAIL_SPLESH , BARRAL_SPLASH,
|
||||
/*상태 이펙트*/
|
||||
|
||||
STUN,
|
||||
|
||||
@@ -35,6 +35,9 @@ class CEffectPool final : public CGameObject
|
||||
HRESULT Bind_ShaderResources();
|
||||
HRESULT Ready_Effect();
|
||||
HRESULT Ready_MonsterEffect();
|
||||
private:
|
||||
_bool m_isActiveEffectCreate = { true };
|
||||
_bool m_isActiveMonsterEffectCreate = { true };
|
||||
public:
|
||||
static CEffectPool* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
virtual CGameObject* Clone(void* pArg, CGameObject* pOwner = nullptr) override;
|
||||
|
||||
@@ -27,11 +27,14 @@ class CMapElement_Interactable final : public CMapElement
|
||||
virtual void Late_Update(_float fTimeDelta) override;
|
||||
virtual HRESULT Render() override;
|
||||
virtual void GrapToPlayer(_fvector vPos, _float fRatio);
|
||||
virtual void OnCollision(CGameObject* pOther = nullptr, void* pDesc = nullptr) override;
|
||||
ON_COLLISION_INFO CollisionCheck(_fvector StartPos, _fvector EndPos, _float fRadius);
|
||||
_vector Get_LockOnPos();
|
||||
virtual void Set_DrawOutLine();
|
||||
virtual HRESULT Render_OutLine() override;
|
||||
void Set_KinematicFlag(_bool bFlag);
|
||||
|
||||
|
||||
private:
|
||||
ELEMENT_INTERACTABLE_ID m_eInteractableID = { ELEMENT_INTERACTABLE_ID::END };
|
||||
class CInfoInstance* m_pInfoInstance = { nullptr };
|
||||
@@ -44,7 +47,11 @@ class CMapElement_Interactable final : public CMapElement
|
||||
_float m_fOutLineScale = { 1.f };
|
||||
_float m_fOutLinePower = { 1.f };
|
||||
|
||||
|
||||
/* 충돌을 위한 변수*/
|
||||
_bool m_isGraped = { false };
|
||||
_bool m_bHit = { false };
|
||||
_float4 m_vStartPos = { 0.f, 0.f, 0.f, 1.f };
|
||||
class CEffectPool* m_pEffectPool = { nullptr };
|
||||
private:
|
||||
virtual HRESULT Initialize_Prototype() override;
|
||||
virtual HRESULT Initialize(void* pArg) override;
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
@@ -46,10 +46,12 @@ struct ParticleValue
|
||||
|
||||
bool isCompareStop;
|
||||
float fCollisionTime;
|
||||
float fDropAttenuation;
|
||||
float fDropAttenuation;
|
||||
|
||||
float3 vVelocity;
|
||||
float fAcceleration;
|
||||
|
||||
bool isStop;
|
||||
};
|
||||
|
||||
|
||||
@@ -82,7 +84,7 @@ cbuffer g_ConstantBuffer : register(b0) // b0 << 이 숫자와 컨스턴트 쉐
|
||||
|
||||
bool isMoveUp;
|
||||
bool isExcludePos;
|
||||
bool isPadding1;
|
||||
bool isStopMove_For_Depth_Compare;
|
||||
bool isPadding2;
|
||||
|
||||
float fTimeDelta;
|
||||
@@ -108,8 +110,6 @@ void CS_MAIN(
|
||||
{
|
||||
int iIndex = DispatchThreadID.x; // 배열 인덱스
|
||||
|
||||
|
||||
|
||||
Particle particle = g_ParticleBufferInput[iIndex];
|
||||
ParticleValue particleValue = g_ParticleValueBufferInput[iIndex];
|
||||
|
||||
@@ -152,7 +152,7 @@ void CS_MAIN(
|
||||
/* 내 z가 가려지는 상황이었다면 연산하지않음*/
|
||||
|
||||
|
||||
if (particle.vLifeTime.x >= particle.vLifeTime.y)
|
||||
if (particle.vLifeTime.x >= particle.vLifeTime.y || particleValue.isStop == true)
|
||||
{
|
||||
|
||||
particleValue.isCompareStop = false;
|
||||
@@ -165,6 +165,7 @@ void CS_MAIN(
|
||||
|
||||
return ;
|
||||
}
|
||||
|
||||
//초기화
|
||||
particle.vRight = particleValue.vOriginRight;
|
||||
particle.vUp = particleValue.vOriginUp;
|
||||
@@ -173,6 +174,7 @@ void CS_MAIN(
|
||||
|
||||
particle.vLifeTime.x = 0.f;
|
||||
particleValue.vDelay.x = 0.f;
|
||||
particleValue.isStop = false;
|
||||
|
||||
if (isRandomAniIndex == false)
|
||||
particleValue.vAniIndex.x = 0.f;
|
||||
@@ -307,10 +309,15 @@ void CS_MAIN(
|
||||
|
||||
if (isTurn == true)
|
||||
{
|
||||
float fRotationSpeed = 1.f;
|
||||
|
||||
if (particleValue.fRotaionSpeed > FLT_EPSILON5)
|
||||
fRotationSpeed = particleValue.fRotaionSpeed;
|
||||
|
||||
/* ROTATE */
|
||||
float4x4 RotateXMat = RotateX(particleValue.vDeltaAngle.x * fTimeDelta);
|
||||
float4x4 RotateYMat = RotateY(particleValue.vDeltaAngle.y * fTimeDelta);
|
||||
float4x4 RotateZMat = RotateZ(particleValue.vDeltaAngle.z * fTimeDelta);
|
||||
float4x4 RotateXMat = RotateX(particleValue.vDeltaAngle.x * fTimeDelta * fRotationSpeed);
|
||||
float4x4 RotateYMat = RotateY(particleValue.vDeltaAngle.y * fTimeDelta * fRotationSpeed);
|
||||
float4x4 RotateZMat = RotateZ(particleValue.vDeltaAngle.z * fTimeDelta * fRotationSpeed);
|
||||
|
||||
|
||||
float4x4 CombinedRotMat = mul(RotateZMat, mul(RotateYMat, RotateXMat));
|
||||
@@ -329,9 +336,14 @@ void CS_MAIN(
|
||||
|
||||
if (isAxisTurn)
|
||||
{
|
||||
float4x4 RotateAxisRightMat = RotateAxis(particle.vRight, particleValue.vDeltaAxisAngle.x * fTimeDelta);
|
||||
float4x4 RotateAxisUpMat = RotateAxis(particle.vUp, particleValue.vDeltaAxisAngle.y * fTimeDelta);
|
||||
float4x4 RotateAxisLookMat = RotateAxis(particle.vLook, particleValue.vDeltaAxisAngle.z * fTimeDelta);
|
||||
float fRotationSpeed = 1.f;
|
||||
|
||||
if (particleValue.fRotaionSpeed > FLT_EPSILON5)
|
||||
fRotationSpeed = particleValue.fRotaionSpeed;
|
||||
|
||||
float4x4 RotateAxisRightMat = RotateAxis(particle.vRight, particleValue.vDeltaAxisAngle.x * fRotationSpeed * fTimeDelta);
|
||||
float4x4 RotateAxisUpMat = RotateAxis(particle.vUp, particleValue.vDeltaAxisAngle.y * fRotationSpeed * fTimeDelta);
|
||||
float4x4 RotateAxisLookMat = RotateAxis(particle.vLook, particleValue.vDeltaAxisAngle.z * fRotationSpeed * fTimeDelta);
|
||||
|
||||
|
||||
float4x4 CombinedRotMat = mul(RotateAxisLookMat, mul(RotateAxisUpMat, RotateAxisRightMat));
|
||||
@@ -382,15 +394,22 @@ void CS_MAIN(
|
||||
particleValue.isCompareStop = true; // 내가 지면에 사라지는 순간
|
||||
particleValue.fCollisionTime = particle.vLifeTime.x;
|
||||
|
||||
if (isStopMove_For_Depth_Compare == true)
|
||||
{
|
||||
particleValue.isStop = true;
|
||||
particle.vTranslation.y += 0.2f;
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
if (particleValue.isCompareStop == true) // 지면에 부딪혔을 때
|
||||
if (particleValue.isCompareStop == true && isStopMove_For_Depth_Compare == false) // 지면에 부딪혔을 때
|
||||
{
|
||||
particle.vTranslation.y = fOnlyDropY; // 지면에 부딪혓을때 이제 y연산은 오직 drop으로만 수행함
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
/*가속력*/
|
||||
|
||||
@@ -15,30 +15,33 @@ struct ParticleValue
|
||||
float2 vDiffuseUVMoveTime;
|
||||
float2 vDistortionUVMoveTime;
|
||||
float2 vNoiseUVMoveTime;
|
||||
float2 vAniTime;
|
||||
float2 vDissolveUVMoveTime;
|
||||
float2 vAniTime;
|
||||
|
||||
|
||||
float2 vAniIndex;
|
||||
float fGravity;
|
||||
float fGravity;
|
||||
|
||||
float3 vSinAmount;
|
||||
float3 vDeltaAngle;
|
||||
float3 vDeltaAxisAngle;
|
||||
|
||||
float fDrag;
|
||||
float fDrag;
|
||||
float3 vPivot;
|
||||
|
||||
float fSizeDrag;
|
||||
float fSizeDrag;
|
||||
float3 vDeltaSize;
|
||||
float2 vDelay;
|
||||
|
||||
bool isCompareStop;
|
||||
|
||||
bool isCompareStop;
|
||||
float fCollisionTime;
|
||||
float fDropAttenuation;
|
||||
|
||||
float3 vVelocity;
|
||||
float fAcceleration;
|
||||
float fAcceleration;
|
||||
|
||||
bool isStop;
|
||||
};
|
||||
|
||||
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 217 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 112 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 1.1 MiB |
@@ -191,6 +191,7 @@ call Update_Shaders.bat
|
||||
<ClInclude Include="..\Public\State_Slam.h" />
|
||||
<ClInclude Include="..\Public\State_Swing.h" />
|
||||
<ClInclude Include="..\Public\State_Throw.h" />
|
||||
<ClInclude Include="..\Public\StunEffect.h" />
|
||||
<ClInclude Include="..\Public\Troll.h" />
|
||||
<ClInclude Include="..\Public\Troll_Rush_Hit.h" />
|
||||
<ClInclude Include="..\Public\Troll_Nomal_Smoke.h" />
|
||||
@@ -394,6 +395,7 @@ call Update_Shaders.bat
|
||||
<ClCompile Include="..\Private\State_Slam.cpp" />
|
||||
<ClCompile Include="..\Private\State_Swing.cpp" />
|
||||
<ClCompile Include="..\Private\State_Throw.cpp" />
|
||||
<ClCompile Include="..\Private\StunEffect.cpp" />
|
||||
<ClCompile Include="..\Private\Troll.cpp" />
|
||||
<ClCompile Include="..\Private\Troll_Rush_Hit.cpp" />
|
||||
<ClCompile Include="..\Private\Troll_Nomal_Smoke.cpp" />
|
||||
|
||||
@@ -562,6 +562,9 @@
|
||||
<Filter Include="50.UI\GamePlay_Canvas\Enemy_Panel\Boss_HpBar">
|
||||
<UniqueIdentifier>{49575102-9b08-494e-bf3f-bdc98774913e}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="02.GameObjects\Layer_Effect\Effect\State_Effect">
|
||||
<UniqueIdentifier>{d276d751-77aa-423e-9499-c63875e36266}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="50.UI\GamePlay_Canvas\Enemy_Panel\Enemy_Detection">
|
||||
<UniqueIdentifier>{81c6b163-6c8b-47ac-a4b6-e86088ce709f}</UniqueIdentifier>
|
||||
</Filter>
|
||||
@@ -1125,6 +1128,9 @@
|
||||
<ClInclude Include="..\public\Boss_HpBer.h">
|
||||
<Filter>50.UI\GamePlay_Canvas\Enemy_Panel\Boss_HpBar</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\StunEffect.h">
|
||||
<Filter>02.GameObjects\Layer_Effect\Effect\State_Effect</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\public\Enemy_Detection.h">
|
||||
<Filter>50.UI\GamePlay_Canvas\Enemy_Panel\Enemy_Detection</Filter>
|
||||
</ClInclude>
|
||||
@@ -1690,6 +1696,9 @@
|
||||
<ClCompile Include="..\private\Boss_HpBer.cpp">
|
||||
<Filter>50.UI\GamePlay_Canvas\Enemy_Panel\Boss_HpBar</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\StunEffect.cpp">
|
||||
<Filter>02.GameObjects\Layer_Effect\Effect\State_Effect</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\Enemy_Detection.cpp">
|
||||
<Filter>50.UI\GamePlay_Canvas\Enemy_Panel\Enemy_Detection</Filter>
|
||||
</ClCompile>
|
||||
|
||||
@@ -19,6 +19,7 @@
|
||||
#include "Troll_Rush_Hit.h"
|
||||
#include "Troll_Nomal_Smoke.h"
|
||||
#include "TrollSwing.h"
|
||||
#include "StunEffect.h"
|
||||
|
||||
CEffectPool::CEffectPool(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
: CGameObject(pDevice, pContext)
|
||||
@@ -44,11 +45,38 @@ HRESULT CEffectPool::Initialize(void* pArg)
|
||||
if (FAILED(Ready_Components()))
|
||||
return E_FAIL;
|
||||
|
||||
if (FAILED(Ready_Effect()))
|
||||
return E_FAIL;
|
||||
#ifdef gimch
|
||||
m_isActiveEffectCreate = false;
|
||||
m_isActiveMonsterEffectCreate = false;
|
||||
#endif // gimch
|
||||
#ifdef Bin
|
||||
m_isActiveEffectCreate = false;
|
||||
m_isActiveMonsterEffectCreate = false;
|
||||
#endif //
|
||||
#ifdef 진우
|
||||
m_isActiveEffectCreate = false;
|
||||
m_isActiveMonsterEffectCreate = false;
|
||||
#endif //
|
||||
#ifdef 기무리
|
||||
m_isActiveEffectCreate = false;
|
||||
m_isActiveMonsterEffectCreate = false;
|
||||
#endif //
|
||||
#ifdef 인혁
|
||||
m_isActiveEffectCreate = false;
|
||||
m_isActiveMonsterEffectCreate = false;
|
||||
#endif //
|
||||
|
||||
//if (FAILED(Ready_MonsterEffect()))
|
||||
// return E_FAIL;
|
||||
if (m_isActiveEffectCreate)
|
||||
{
|
||||
if (FAILED(Ready_Effect()))
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (m_isActiveMonsterEffectCreate)
|
||||
{
|
||||
if (FAILED(Ready_MonsterEffect()))
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
@@ -253,6 +281,16 @@ HRESULT CEffectPool::Ready_MonsterEffect()
|
||||
return pEffect; }
|
||||
))) return E_FAIL;
|
||||
|
||||
|
||||
if (FAILED(Create_Effect(SKILL_TYPE::STUN, 5, NEXT_LEVEL, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
|
||||
|
||||
CStunEffect* pEffect = nullptr;
|
||||
|
||||
pEffect = m_pGameInstance->Clone_Prototype<CStunEffect>(iPrototypeLevel, nullptr);
|
||||
|
||||
return pEffect; }
|
||||
))) return E_FAIL;
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
@@ -377,6 +415,7 @@ void CEffectPool::Free()
|
||||
|
||||
void CEffectPool::Describe_Entity()
|
||||
{
|
||||
|
||||
if(GUI::Button("Reset Pool"))
|
||||
{
|
||||
Reset_Pool();
|
||||
|
||||
@@ -108,12 +108,6 @@ void CEffect_Editor::Update(_float fTimeDelta)
|
||||
|
||||
/* 이펙트 컨테이너 업데이트 */
|
||||
//Update_Event(fTimeDelta);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
void CEffect_Editor::Late_Update(_float fTimeDelta)
|
||||
|
||||
@@ -53,6 +53,8 @@ HRESULT CLevel_EffectViewer::Initialize()
|
||||
Desc.iAlphaSizeX = 2048;
|
||||
Desc.iAlphaSizeY = 2048;
|
||||
Desc.vPosition = _float3(-194, 18.5f, -153.f);
|
||||
Desc.strAlphaMapTag = "Hogsmeade_AlphaMap.bin";
|
||||
Desc.strHeightMapTag = "Hogsmeade_HeightMap.bin";
|
||||
Desc.strBufferTag = TEXT("Prototype_Component_VIBuffer_Terrain_Hogsmeade");
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CTerrain>(g_iStaticLevel, NEXT_LEVEL, TEXT("Layer_Terrain"), &Desc)))
|
||||
|
||||
@@ -156,6 +156,7 @@
|
||||
#include "Goblin_Dagger.h"
|
||||
#include "Goblin_BattleAxe.h"
|
||||
#include "Goblin_Spector.h"
|
||||
#include "StunEffect.h"
|
||||
#pragma endregion
|
||||
|
||||
#pragma region PHYSX_HEADER
|
||||
@@ -1274,6 +1275,16 @@ HRESULT CLoader::Loading_For_Effect()
|
||||
return E_FAIL;
|
||||
|
||||
|
||||
Asset_FileLoad("../Bin/Resources/Models/Effect/Box", L"Prototype_Instance_Model_", [&](_wstring wstrFileName, const _char* pFilePath) {
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::EFFECT), wstrFileName,
|
||||
CInstance_Model::Create(m_pDevice, m_pContext, pFilePath, MODEL::NONANIM, XMMatrixScaling(0.1f, 0.1f, 0.1f) * XMMatrixIdentity(), 0))))
|
||||
return E_FAIL;
|
||||
|
||||
return S_OK;
|
||||
|
||||
});
|
||||
|
||||
Asset_FileLoad("../Bin/Resources/Models/Effect/Rock", L"Prototype_Instance_Model_", [&](_wstring wstrFileName, const _char* pFilePath) {
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::EFFECT), wstrFileName,
|
||||
@@ -1474,6 +1485,9 @@ HRESULT CLoader::Loading_For_Effect()
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CTroll_Weapon>(g_iStaticLevel, CTroll_Weapon::Create(m_pDevice, m_pContext))))
|
||||
return E_FAIL;
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CStunEffect>(g_iStaticLevel, CStunEffect::Create(m_pDevice, m_pContext))))
|
||||
return E_FAIL;
|
||||
|
||||
|
||||
/* For.Prototype_GameObject_DummySkyBox */
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CDummySkyBox>(g_iStaticLevel, CDummySkyBox::Create(m_pDevice, m_pContext))))
|
||||
|
||||
@@ -0,0 +1,206 @@
|
||||
#include "pch.h"
|
||||
#include "StunEffect.h"
|
||||
|
||||
#include "GameInstance.h"
|
||||
#include "EditEffect.h"
|
||||
#include "Wand.h"
|
||||
#include "Player.h"
|
||||
|
||||
CStunEffect::CStunEffect(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
: CEffect_Container{ pDevice, pContext }
|
||||
{
|
||||
}
|
||||
|
||||
CStunEffect::CStunEffect(const CStunEffect& rhs)
|
||||
: CEffect_Container(rhs)
|
||||
{
|
||||
}
|
||||
|
||||
HRESULT CStunEffect::Initialize_Prototype()
|
||||
{
|
||||
|
||||
return S_OK;
|
||||
|
||||
}
|
||||
|
||||
HRESULT CStunEffect::Initialize(void* pArg)
|
||||
{
|
||||
if (FAILED(__super::Initialize(pArg)))
|
||||
return E_FAIL;
|
||||
|
||||
if (FAILED(Ready_Components(pArg)))
|
||||
return E_FAIL;
|
||||
|
||||
|
||||
if (FAILED(Load_Package("../Bin/Resources/Data/Effect/Package/Stun")))
|
||||
return E_FAIL;
|
||||
|
||||
|
||||
m_wstrEffectName = L"Stun";
|
||||
|
||||
|
||||
m_fDuration = 3.f;
|
||||
|
||||
m_pStunEffect = Get_PartObject<CEditEffect>("StunEffect");
|
||||
SAFE_ADDREF(m_pStunEffect);
|
||||
|
||||
|
||||
m_Events.emplace(3.f, [&]() {
|
||||
|
||||
m_BoneMat = nullptr;
|
||||
|
||||
});
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CStunEffect::Priority_Update(_float fTimeDelta)
|
||||
{
|
||||
__super::Priority_Update(fTimeDelta);
|
||||
|
||||
}
|
||||
|
||||
void CStunEffect::Update(_float fTimeDelta)
|
||||
{
|
||||
if (m_bVisible == false)
|
||||
return;
|
||||
|
||||
__super::Update(fTimeDelta);
|
||||
|
||||
Update_Event(fTimeDelta);
|
||||
|
||||
if (m_BoneMat == nullptr)
|
||||
return;
|
||||
|
||||
_matrix BoneMat = XMLoadFloat4x4(m_BoneMat);
|
||||
|
||||
for (int i = 0; i < 3; ++i) {
|
||||
BoneMat.r[i] = XMVector3Normalize(BoneMat.r[i]);
|
||||
}
|
||||
|
||||
m_pStunEffect->Get_Component<CTransform>()->Set_WorldMatrix(BoneMat * m_pOwner->Get_Component<CTransform>()->Get_XMWorldMatrix());
|
||||
|
||||
//m_pStunEffect->Get_Component<CTransform>()->Rotation(XMVectorSet(0.f, 0.f, XMConvertToRadians(180.f), 0.f));
|
||||
|
||||
}
|
||||
|
||||
void CStunEffect::Late_Update(_float fTimeDelta)
|
||||
{
|
||||
if (m_bVisible == false)
|
||||
return;
|
||||
|
||||
__super::Late_Update(fTimeDelta);
|
||||
|
||||
|
||||
}
|
||||
|
||||
HRESULT CStunEffect::Pre_Setting(CGameObject* pObject, void* pArg)
|
||||
{
|
||||
|
||||
if (FAILED(__super::Pre_Setting(pObject, nullptr)))
|
||||
return E_FAIL;
|
||||
|
||||
_string strBoneName = *static_cast<_string*>(pArg);
|
||||
|
||||
m_BoneMat = m_pOwner->Get_Component<CModel>()->Get_BoneMatrixPtr(strBoneName.c_str()) ; // 위치 넘기기
|
||||
|
||||
_matrix BoneMat = XMLoadFloat4x4(m_BoneMat);
|
||||
|
||||
for (int i = 0; i < 3; ++i) {
|
||||
BoneMat.r[i] = XMVector3Normalize(BoneMat.r[i]);
|
||||
}
|
||||
|
||||
m_pStunEffect->Get_Component<CTransform>()->Set_WorldMatrix(BoneMat * m_pOwner->Get_Component<CTransform>()->Get_XMWorldMatrix());
|
||||
|
||||
m_pStunEffect->Get_Component<CTransform>()->Rotation(XMVectorSet(0.f, 0.f , 90.f, 0.f));
|
||||
|
||||
m_pStunEffect->Set_Visible(true);
|
||||
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CStunEffect::Ready_Components(void* pArg)
|
||||
{
|
||||
if (FAILED(__super::Ready_Components(pArg))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CStunEffect::Ready_Child()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
CStunEffect* CStunEffect::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
{
|
||||
CStunEffect* pInstance = new CStunEffect(pDevice, pContext);
|
||||
|
||||
if (FAILED(pInstance->Initialize_Prototype()))
|
||||
{
|
||||
MSG_BOX("Failed to Created : CStunEffect");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
|
||||
CGameObject* CStunEffect::Clone(void* pArg, CGameObject* pOwner)
|
||||
{
|
||||
CStunEffect* pInstance = new CStunEffect(*this);
|
||||
pInstance->m_pOwner = pOwner;
|
||||
if (FAILED(pInstance->Initialize(pArg)))
|
||||
{
|
||||
MSG_BOX("Failed to Cloned : CStunEffect");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
void CStunEffect::OnCollision(CGameObject* pOther, void* pDesc)
|
||||
{
|
||||
_int iIndex = CollisionCheck();
|
||||
|
||||
if (iIndex < 0)
|
||||
return;
|
||||
|
||||
if (m_isCollisionEnter == true)
|
||||
return;
|
||||
|
||||
m_isCollisionEnter = true;
|
||||
|
||||
_vector vPos = XMVectorSet(m_Hitbuffer.touches[iIndex].position.x, m_Hitbuffer.touches[iIndex].position.y, m_Hitbuffer.touches[iIndex].position.z, 1.f);
|
||||
|
||||
|
||||
for (auto& pPair : m_PartObjects)
|
||||
{
|
||||
pPair.second->Set_Visible(true);
|
||||
pPair.second->Get_Component<CTransform>()->Set_State(STATE::POSITION, vPos);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
void CStunEffect::Free()
|
||||
{
|
||||
__super::Free();
|
||||
Safe_Release(m_pStunEffect);
|
||||
|
||||
}
|
||||
#ifdef _DEBUG
|
||||
void CStunEffect::Describe_Entity()
|
||||
{
|
||||
|
||||
}
|
||||
#endif
|
||||
|
||||
HRESULT CStunEffect::Bind_ShaderResources()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -412,6 +412,15 @@ HRESULT CTroll::Ready_Parts()
|
||||
m_pWeaponTrail->Load_Trail("../Bin/Resources/Data/Effect/Troll/TrollSide/Troll_Swing_Trail", static_cast<LEVEL>(NEXT_LEVEL));
|
||||
m_pWeaponTrail->Set_Visible(false);
|
||||
|
||||
|
||||
if (FAILED(Add_PartObject<CEditEffect>("Stun", NEXT_LEVEL, &m_pStunEffect, &PartsDesc)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
m_pStunEffect->Load("../Bin/Resources/Data/Effect/Stun/StunEffect", static_cast<LEVEL>(NEXT_LEVEL));
|
||||
m_pStunEffect->FollowParants(m_pModelCom->Get_BoneMatrixPtr("HeadEnd"));
|
||||
|
||||
|
||||
#pragma endregion
|
||||
return S_OK;
|
||||
@@ -489,6 +498,7 @@ void CTroll::Free()
|
||||
SAFE_RELEASE(m_pLeftTrail);
|
||||
SAFE_RELEASE(m_pRightTrail);
|
||||
SAFE_RELEASE(m_pWeaponTrail);
|
||||
SAFE_RELEASE(m_pStunEffect);
|
||||
}
|
||||
#ifdef _DEBUG
|
||||
|
||||
@@ -502,6 +512,23 @@ void CTroll::Describe_Entity()
|
||||
|
||||
GUI::Text(strSocket.c_str());
|
||||
|
||||
_uint iindex = {};
|
||||
|
||||
for (auto& pChild : m_PartObjects)
|
||||
{
|
||||
_string strName = to_string(iindex++) + pChild.first;
|
||||
|
||||
if(GUI::TreeNode(strName.c_str()))
|
||||
{
|
||||
|
||||
pChild.second->Describe_Entity();
|
||||
|
||||
GUI::TreePop();
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
m_pTransformCom->Describe_Entity();
|
||||
}
|
||||
|
||||
@@ -43,6 +43,7 @@ namespace Editor
|
||||
ANCIENT_MAGIC_THROW, ANCIENT_MAGIC, ALOHOMORA, PETRIFICUS_TOTALUS,
|
||||
JAP_SIDE, BOMBARDA_SIDE, DESCENDO_SIDE, LEVIOSO_SIDE,
|
||||
|
||||
STUN,
|
||||
TROLL_ATTACK, TROLL_RUSH_HIT, TROLL_NOMAL_SMOKE,
|
||||
END
|
||||
};
|
||||
|
||||
@@ -34,6 +34,9 @@ class CEffectPool final : public CGameObject
|
||||
private:
|
||||
list<class CEffect_Container*> m_EffectList[ENUM_CLASS(SKILL_TYPE::END)] = {};
|
||||
list<class CEffect_Container*> m_ActiveEffectList = {};
|
||||
|
||||
_bool m_isActiveEffectCreate = {};
|
||||
_bool m_isActiveMonsterEffectCreate = {};
|
||||
private:
|
||||
HRESULT Ready_Components();
|
||||
HRESULT Bind_ShaderResources();
|
||||
|
||||
@@ -0,0 +1,44 @@
|
||||
#pragma once
|
||||
|
||||
#include "Editor_Define.h"
|
||||
#include "Effect_Container.h"
|
||||
|
||||
NS_BEGIN(Engine)
|
||||
NS_END
|
||||
|
||||
NS_BEGIN(Editor)
|
||||
|
||||
class CStunEffect final : public CEffect_Container
|
||||
{
|
||||
private:
|
||||
CStunEffect(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
CStunEffect(const CStunEffect& rhs);
|
||||
virtual ~CStunEffect() = default;
|
||||
|
||||
public:
|
||||
virtual void Priority_Update(_float fTimeDelta) override;
|
||||
virtual void Update(_float fTimeDelta) override;
|
||||
virtual void Late_Update(_float fTimeDelta) override;
|
||||
|
||||
public:
|
||||
virtual HRESULT Pre_Setting(CGameObject* pObject, void* pArg = nullptr) override;
|
||||
|
||||
private:
|
||||
virtual HRESULT Initialize_Prototype() override;
|
||||
virtual HRESULT Initialize(void* pArg) override;
|
||||
virtual HRESULT Ready_Components(void* pArg) override;
|
||||
HRESULT Ready_Child();
|
||||
HRESULT Bind_ShaderResources() override;
|
||||
virtual void OnCollision(CGameObject* pOther = nullptr, void* pDesc = nullptr) override;
|
||||
private:
|
||||
_wstring m_wstrEffectName = {};
|
||||
class CEditEffect* m_pStunEffect = { nullptr };
|
||||
const _float4x4* m_BoneMat = { nullptr };
|
||||
public:
|
||||
static CStunEffect* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
virtual void Free() override;
|
||||
CGameObject* Clone(void* pArg, CGameObject* pOwner) override;
|
||||
void Describe_Entity() override;
|
||||
};
|
||||
|
||||
NS_END
|
||||
@@ -48,6 +48,8 @@ class CTroll final : public CMonster
|
||||
class CEditEffect* m_pTroll_Particle = { nullptr };
|
||||
class CEditEffect* m_pTroll_Particle2 = { nullptr };
|
||||
|
||||
class CEditEffect* m_pStunEffect = { nullptr };
|
||||
|
||||
class CTrailObject* m_pLeftTrail = { nullptr };
|
||||
class CTrailObject* m_pRightTrail = { nullptr };
|
||||
class CTrailObject* m_pWeaponTrail = { nullptr };
|
||||
|
||||
@@ -46,10 +46,12 @@ struct ParticleValue
|
||||
|
||||
bool isCompareStop;
|
||||
float fCollisionTime;
|
||||
float fDropAttenuation;
|
||||
float fDropAttenuation;
|
||||
|
||||
float3 vVelocity;
|
||||
float fAcceleration;
|
||||
|
||||
bool isStop;
|
||||
};
|
||||
|
||||
|
||||
@@ -82,7 +84,7 @@ cbuffer g_ConstantBuffer : register(b0) // b0 << 이 숫자와 컨스턴트 쉐
|
||||
|
||||
bool isMoveUp;
|
||||
bool isExcludePos;
|
||||
bool isPadding1;
|
||||
bool isStopMove_For_Depth_Compare;
|
||||
bool isPadding2;
|
||||
|
||||
float fTimeDelta;
|
||||
@@ -108,8 +110,6 @@ void CS_MAIN(
|
||||
{
|
||||
int iIndex = DispatchThreadID.x; // 배열 인덱스
|
||||
|
||||
|
||||
|
||||
Particle particle = g_ParticleBufferInput[iIndex];
|
||||
ParticleValue particleValue = g_ParticleValueBufferInput[iIndex];
|
||||
|
||||
@@ -152,7 +152,7 @@ void CS_MAIN(
|
||||
/* 내 z가 가려지는 상황이었다면 연산하지않음*/
|
||||
|
||||
|
||||
if (particle.vLifeTime.x >= particle.vLifeTime.y)
|
||||
if (particle.vLifeTime.x >= particle.vLifeTime.y || particleValue.isStop == true)
|
||||
{
|
||||
|
||||
particleValue.isCompareStop = false;
|
||||
@@ -165,6 +165,7 @@ void CS_MAIN(
|
||||
|
||||
return ;
|
||||
}
|
||||
|
||||
//초기화
|
||||
particle.vRight = particleValue.vOriginRight;
|
||||
particle.vUp = particleValue.vOriginUp;
|
||||
@@ -173,6 +174,7 @@ void CS_MAIN(
|
||||
|
||||
particle.vLifeTime.x = 0.f;
|
||||
particleValue.vDelay.x = 0.f;
|
||||
particleValue.isStop = false;
|
||||
|
||||
if (isRandomAniIndex == false)
|
||||
particleValue.vAniIndex.x = 0.f;
|
||||
@@ -307,10 +309,15 @@ void CS_MAIN(
|
||||
|
||||
if (isTurn == true)
|
||||
{
|
||||
float fRotationSpeed = 1.f;
|
||||
|
||||
if (particleValue.fRotaionSpeed > FLT_EPSILON5)
|
||||
fRotationSpeed = particleValue.fRotaionSpeed;
|
||||
|
||||
/* ROTATE */
|
||||
float4x4 RotateXMat = RotateX(particleValue.vDeltaAngle.x * fTimeDelta);
|
||||
float4x4 RotateYMat = RotateY(particleValue.vDeltaAngle.y * fTimeDelta);
|
||||
float4x4 RotateZMat = RotateZ(particleValue.vDeltaAngle.z * fTimeDelta);
|
||||
float4x4 RotateXMat = RotateX(particleValue.vDeltaAngle.x * fTimeDelta * fRotationSpeed);
|
||||
float4x4 RotateYMat = RotateY(particleValue.vDeltaAngle.y * fTimeDelta * fRotationSpeed);
|
||||
float4x4 RotateZMat = RotateZ(particleValue.vDeltaAngle.z * fTimeDelta * fRotationSpeed);
|
||||
|
||||
|
||||
float4x4 CombinedRotMat = mul(RotateZMat, mul(RotateYMat, RotateXMat));
|
||||
@@ -329,9 +336,14 @@ void CS_MAIN(
|
||||
|
||||
if (isAxisTurn)
|
||||
{
|
||||
float4x4 RotateAxisRightMat = RotateAxis(particle.vRight, particleValue.vDeltaAxisAngle.x * fTimeDelta);
|
||||
float4x4 RotateAxisUpMat = RotateAxis(particle.vUp, particleValue.vDeltaAxisAngle.y * fTimeDelta);
|
||||
float4x4 RotateAxisLookMat = RotateAxis(particle.vLook, particleValue.vDeltaAxisAngle.z * fTimeDelta);
|
||||
float fRotationSpeed = 1.f;
|
||||
|
||||
if (particleValue.fRotaionSpeed > FLT_EPSILON5)
|
||||
fRotationSpeed = particleValue.fRotaionSpeed;
|
||||
|
||||
float4x4 RotateAxisRightMat = RotateAxis(particle.vRight, particleValue.vDeltaAxisAngle.x * fRotationSpeed * fTimeDelta);
|
||||
float4x4 RotateAxisUpMat = RotateAxis(particle.vUp, particleValue.vDeltaAxisAngle.y * fRotationSpeed * fTimeDelta);
|
||||
float4x4 RotateAxisLookMat = RotateAxis(particle.vLook, particleValue.vDeltaAxisAngle.z * fRotationSpeed * fTimeDelta);
|
||||
|
||||
|
||||
float4x4 CombinedRotMat = mul(RotateAxisLookMat, mul(RotateAxisUpMat, RotateAxisRightMat));
|
||||
@@ -382,15 +394,22 @@ void CS_MAIN(
|
||||
particleValue.isCompareStop = true; // 내가 지면에 사라지는 순간
|
||||
particleValue.fCollisionTime = particle.vLifeTime.x;
|
||||
|
||||
if (isStopMove_For_Depth_Compare == true)
|
||||
{
|
||||
particleValue.isStop = true;
|
||||
particle.vTranslation.y += 0.2f;
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
if (particleValue.isCompareStop == true) // 지면에 부딪혔을 때
|
||||
if (particleValue.isCompareStop == true && isStopMove_For_Depth_Compare == false) // 지면에 부딪혔을 때
|
||||
{
|
||||
particle.vTranslation.y = fOnlyDropY; // 지면에 부딪혓을때 이제 y연산은 오직 drop으로만 수행함
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
/*가속력*/
|
||||
|
||||
@@ -546,7 +546,7 @@ void CInstance_Model::Compute_CS(_float fTimeDelta)
|
||||
pDesc->isDetphCompareStop = m_InstanceDesc.isDetphCompareStop;
|
||||
pDesc->isRandomAniIndex = m_InstanceDesc.isRandomAniIndex;
|
||||
pDesc->isExcludePos = m_InstanceDesc.isExcludePos;
|
||||
|
||||
pDesc->isStop_Move_For_Depth_Compare = m_InstanceDesc.isStop_Move_For_Depth_Compare;
|
||||
|
||||
pDesc->WorldMatrix = *m_pOwner->Get_Component<CTransform>()->Get_WorldMatrixPtr();
|
||||
pDesc->fSizeLerpOption = m_InstanceDesc.fSizeLerpOption;
|
||||
@@ -722,7 +722,7 @@ void CInstance_Model::Instane_Buffer_ReStruct()
|
||||
|
||||
pParticleValues[i].fCollisionTime = 0.f;
|
||||
pParticleValues[i].isCompareStop = false;
|
||||
|
||||
pParticleValues[i].isStop = false;
|
||||
|
||||
memcpy(&pParticleValues[i].vOriginRight, SRMatrix.m[0], sizeof(_float4));
|
||||
memcpy(&pParticleValues[i].vOriginUp, SRMatrix.m[1], sizeof(_float4));
|
||||
@@ -828,58 +828,6 @@ void CInstance_Model::Describe_Entity()
|
||||
Instane_Buffer_ReStruct();
|
||||
}
|
||||
|
||||
if (GUI::Checkbox("Drop", &m_InstanceDesc.isDrop))
|
||||
{
|
||||
Instane_Buffer_ReStruct();
|
||||
}
|
||||
|
||||
if (GUI::Checkbox("Forward Move", &m_InstanceDesc.isMoveForward))
|
||||
{
|
||||
Instane_Buffer_ReStruct();
|
||||
}
|
||||
|
||||
if (GUI::Checkbox("Up Move", &m_InstanceDesc.isMoveUp))
|
||||
{
|
||||
Instane_Buffer_ReStruct();
|
||||
}
|
||||
|
||||
if (GUI::Checkbox("Right Move", &m_InstanceDesc.isMoveRight))
|
||||
{
|
||||
Instane_Buffer_ReStruct();
|
||||
}
|
||||
|
||||
|
||||
if (GUI::Checkbox("Sin Wave", &m_InstanceDesc.isSinWave))
|
||||
{
|
||||
Instane_Buffer_ReStruct();
|
||||
}
|
||||
|
||||
if (GUI::Checkbox("Turn", &m_InstanceDesc.isTurn))
|
||||
{
|
||||
Instane_Buffer_ReStruct();
|
||||
}
|
||||
|
||||
if (GUI::Checkbox("AxisTurn", &m_InstanceDesc.isAxisTurn))
|
||||
{
|
||||
Instane_Buffer_ReStruct();
|
||||
}
|
||||
|
||||
|
||||
if (GUI::Checkbox("ExcludePos From PibotMove", &m_InstanceDesc.isExcludePos))
|
||||
{
|
||||
Instane_Buffer_ReStruct();
|
||||
}
|
||||
|
||||
if (GUI::Checkbox("PivotMove", &m_InstanceDesc.isPivotMove))
|
||||
{
|
||||
Instane_Buffer_ReStruct();
|
||||
}
|
||||
|
||||
if (GUI::Checkbox("SizeLerp", &m_InstanceDesc.isSizeLerp))
|
||||
{
|
||||
Instane_Buffer_ReStruct();
|
||||
}
|
||||
|
||||
if (GUI::Checkbox("NoWorld", &m_InstanceDesc.isNoWorld))
|
||||
{
|
||||
Instane_Buffer_ReStruct();
|
||||
@@ -890,193 +838,333 @@ void CInstance_Model::Describe_Entity()
|
||||
Instane_Buffer_ReStruct();
|
||||
}
|
||||
|
||||
if (GUI::Checkbox("DetphCompareStop", &m_InstanceDesc.isDetphCompareStop))
|
||||
{
|
||||
Instane_Buffer_ReStruct();
|
||||
}
|
||||
|
||||
if (ImGui::DragFloat3("SizeMin", reinterpret_cast<_float*>(&m_InstanceDesc.vSizeMin)))
|
||||
{
|
||||
Instane_Buffer_ReStruct();
|
||||
}
|
||||
|
||||
if (ImGui::DragFloat3("SizeMax", reinterpret_cast<_float*>(&m_InstanceDesc.vSizeMax)))
|
||||
if (GUI::TreeNode("Transform"))
|
||||
{
|
||||
Instane_Buffer_ReStruct();
|
||||
|
||||
if (ImGui::DragFloat3("Center", reinterpret_cast<_float*>(&m_InstanceDesc.vCenter)))
|
||||
{
|
||||
Instane_Buffer_ReStruct();
|
||||
}
|
||||
|
||||
if (ImGui::DragFloat3("Range", reinterpret_cast<_float*>(&m_InstanceDesc.vRange)))
|
||||
{
|
||||
Instane_Buffer_ReStruct();
|
||||
}
|
||||
|
||||
if (ImGui::DragFloat3("SizeMin", reinterpret_cast<_float*>(&m_InstanceDesc.vSizeMin)))
|
||||
{
|
||||
Instane_Buffer_ReStruct();
|
||||
}
|
||||
|
||||
if (ImGui::DragFloat3("SizeMax", reinterpret_cast<_float*>(&m_InstanceDesc.vSizeMax)))
|
||||
{
|
||||
Instane_Buffer_ReStruct();
|
||||
}
|
||||
|
||||
if (ImGui::DragFloat3("RotationMin", reinterpret_cast<_float*>(&m_InstanceDesc.vRotationAngleMin)))
|
||||
{
|
||||
Instane_Buffer_ReStruct();
|
||||
}
|
||||
|
||||
if (ImGui::DragFloat3("RotationMax", reinterpret_cast<_float*>(&m_InstanceDesc.vRotationAngleMax)))
|
||||
{
|
||||
Instane_Buffer_ReStruct();
|
||||
}
|
||||
|
||||
GUI::TreePop();
|
||||
}
|
||||
|
||||
|
||||
if (ImGui::DragFloat3("Center", reinterpret_cast<_float*>(&m_InstanceDesc.vCenter)))
|
||||
if (GUI::TreeNode("Move"))
|
||||
{
|
||||
Instane_Buffer_ReStruct();
|
||||
}
|
||||
_int iMoveLerpOption = (_int)m_InstanceDesc.fMoveLerpOption;
|
||||
|
||||
if (ImGui::DragFloat3("Range", reinterpret_cast<_float*>(&m_InstanceDesc.vRange)))
|
||||
{
|
||||
Instane_Buffer_ReStruct();
|
||||
}
|
||||
if (ImGui::Combo("Move Lerp Option", &iMoveLerpOption, pLerp, 9))
|
||||
{
|
||||
Instane_Buffer_ReStruct();
|
||||
|
||||
if (ImGui::DragFloat2("Speed", reinterpret_cast<_float*>(&m_InstanceDesc.vSpeed)))
|
||||
{
|
||||
Instane_Buffer_ReStruct();
|
||||
}
|
||||
m_InstanceDesc.fMoveLerpOption = (_float)iMoveLerpOption;
|
||||
}
|
||||
|
||||
if (ImGui::DragFloat2("RotationSpeed", reinterpret_cast<_float*>(&m_InstanceDesc.vRotationSpeed)))
|
||||
{
|
||||
Instane_Buffer_ReStruct();
|
||||
}
|
||||
if (ImGui::DragFloat2("Speed", reinterpret_cast<_float*>(&m_InstanceDesc.vSpeed)))
|
||||
{
|
||||
Instane_Buffer_ReStruct();
|
||||
}
|
||||
|
||||
if (ImGui::DragFloat3("RotationMin", reinterpret_cast<_float*>(&m_InstanceDesc.vRotationAngleMin)))
|
||||
{
|
||||
Instane_Buffer_ReStruct();
|
||||
}
|
||||
if (ImGui::DragFloat2("Drag", reinterpret_cast<_float*>(&m_InstanceDesc.vDrag)))
|
||||
{
|
||||
Instane_Buffer_ReStruct();
|
||||
}
|
||||
|
||||
if (ImGui::DragFloat3("RotationMax", reinterpret_cast<_float*>(&m_InstanceDesc.vRotationAngleMax)))
|
||||
{
|
||||
Instane_Buffer_ReStruct();
|
||||
}
|
||||
if (ImGui::DragFloat2("Acceleration", reinterpret_cast<_float*>(&m_InstanceDesc.vAcceleration)))
|
||||
{
|
||||
Instane_Buffer_ReStruct();
|
||||
}
|
||||
|
||||
if (ImGui::DragFloat2("LifeTime", reinterpret_cast<_float*>(&m_InstanceDesc.vLifeTime)))
|
||||
{
|
||||
Instane_Buffer_ReStruct();
|
||||
}
|
||||
if (ImGui::DragFloat3("VelocityMin", reinterpret_cast<_float*>(&m_InstanceDesc.vVelocityMin)))
|
||||
{
|
||||
Instane_Buffer_ReStruct();
|
||||
}
|
||||
|
||||
if (ImGui::DragFloat2("Delay", reinterpret_cast<_float*>(&m_InstanceDesc.vDelay)))
|
||||
{
|
||||
Instane_Buffer_ReStruct();
|
||||
}
|
||||
if (ImGui::DragFloat3("VelocityMax", reinterpret_cast<_float*>(&m_InstanceDesc.vVelocityMax)))
|
||||
{
|
||||
Instane_Buffer_ReStruct();
|
||||
}
|
||||
|
||||
if (ImGui::DragFloat2("DiffuseUVMoveTime", reinterpret_cast<_float*>(&m_InstanceDesc.vDiffuseUVMoveTime)))
|
||||
{
|
||||
Instane_Buffer_ReStruct();
|
||||
}
|
||||
|
||||
if (ImGui::DragFloat2("MaskingUVMoveTime", reinterpret_cast<_float*>(&m_InstanceDesc.vMaskingUVMoveTime)))
|
||||
{
|
||||
Instane_Buffer_ReStruct();
|
||||
if (GUI::TreeNode("Dir Move"))
|
||||
{
|
||||
|
||||
|
||||
if (GUI::Checkbox("Forward Move", &m_InstanceDesc.isMoveForward))
|
||||
{
|
||||
Instane_Buffer_ReStruct();
|
||||
}
|
||||
|
||||
if (GUI::Checkbox("Up Move", &m_InstanceDesc.isMoveUp))
|
||||
{
|
||||
Instane_Buffer_ReStruct();
|
||||
}
|
||||
|
||||
if (GUI::Checkbox("Right Move", &m_InstanceDesc.isMoveRight))
|
||||
{
|
||||
Instane_Buffer_ReStruct();
|
||||
}
|
||||
|
||||
GUI::TreePop();
|
||||
}
|
||||
|
||||
if (GUI::TreeNode("Pivot Move"))
|
||||
{
|
||||
|
||||
if (GUI::Checkbox("PivotMove", &m_InstanceDesc.isPivotMove))
|
||||
{
|
||||
Instane_Buffer_ReStruct();
|
||||
}
|
||||
|
||||
if (ImGui::DragFloat3("PivotMin", reinterpret_cast<_float*>(&m_InstanceDesc.vPivotMin)))
|
||||
{
|
||||
Instane_Buffer_ReStruct();
|
||||
}
|
||||
|
||||
if (ImGui::DragFloat3("PivotMax", reinterpret_cast<_float*>(&m_InstanceDesc.vPivotMax)))
|
||||
{
|
||||
Instane_Buffer_ReStruct();
|
||||
}
|
||||
|
||||
|
||||
GUI::TreePop();
|
||||
}
|
||||
|
||||
if (GUI::TreeNode("Drop Move"))
|
||||
{
|
||||
if (GUI::Checkbox("Drop", &m_InstanceDesc.isDrop))
|
||||
{
|
||||
Instane_Buffer_ReStruct();
|
||||
}
|
||||
|
||||
if (ImGui::DragFloat2("Gravity", reinterpret_cast<_float*>(&m_InstanceDesc.vGravity)))
|
||||
{
|
||||
Instane_Buffer_ReStruct();
|
||||
}
|
||||
|
||||
if (ImGui::DragFloat2("DropAttenuation", reinterpret_cast<_float*>(&m_InstanceDesc.vDropAttenuation)))
|
||||
{
|
||||
Instane_Buffer_ReStruct();
|
||||
}
|
||||
|
||||
GUI::TreePop();
|
||||
}
|
||||
GUI::TreePop();
|
||||
}
|
||||
|
||||
|
||||
if (ImGui::DragFloat2("DistortionUVMoveTime", reinterpret_cast<_float*>(&m_InstanceDesc.vDistortionUVMoveTime)))
|
||||
if (GUI::TreeNode("Rotate"))
|
||||
{
|
||||
Instane_Buffer_ReStruct();
|
||||
}
|
||||
|
||||
if (ImGui::DragFloat2("NoiseUVMoveTime", reinterpret_cast<_float*>(&m_InstanceDesc.vNoiseUVMoveTime)))
|
||||
{
|
||||
Instane_Buffer_ReStruct();
|
||||
}
|
||||
if (ImGui::DragFloat2("RotationSpeed", reinterpret_cast<_float*>(&m_InstanceDesc.vRotationSpeed)))
|
||||
{
|
||||
Instane_Buffer_ReStruct();
|
||||
}
|
||||
|
||||
if (ImGui::DragFloat2("AniTime", reinterpret_cast<_float*>(&m_InstanceDesc.vAniTime)))
|
||||
{
|
||||
Instane_Buffer_ReStruct();
|
||||
}
|
||||
if (GUI::TreeNode("Nomal Turn"))
|
||||
{
|
||||
if (GUI::Checkbox("Turn", &m_InstanceDesc.isTurn))
|
||||
{
|
||||
Instane_Buffer_ReStruct();
|
||||
}
|
||||
|
||||
if (ImGui::DragFloat2("AniIndex", reinterpret_cast<_float*>(&m_InstanceDesc.vAniIndex)))
|
||||
{
|
||||
Instane_Buffer_ReStruct();
|
||||
}
|
||||
if (ImGui::DragFloat3("DeltaAngleMin", reinterpret_cast<_float*>(&m_InstanceDesc.vDeltaAngleMin)))
|
||||
{
|
||||
Instane_Buffer_ReStruct();
|
||||
}
|
||||
|
||||
if (ImGui::DragFloat2("Gravity", reinterpret_cast<_float*>(&m_InstanceDesc.vGravity)))
|
||||
{
|
||||
Instane_Buffer_ReStruct();
|
||||
}
|
||||
if (ImGui::DragFloat3("DeltaAngleMax", reinterpret_cast<_float*>(&m_InstanceDesc.vDeltaAngleMax)))
|
||||
{
|
||||
Instane_Buffer_ReStruct();
|
||||
}
|
||||
|
||||
if (ImGui::DragFloat3("SinWaveMin", reinterpret_cast<_float*>(&m_InstanceDesc.vSinMinAmount)))
|
||||
{
|
||||
Instane_Buffer_ReStruct();
|
||||
}
|
||||
GUI::TreePop();
|
||||
}
|
||||
|
||||
if (ImGui::DragFloat3("SinWaveMax", reinterpret_cast<_float*>(&m_InstanceDesc.vSinMaxAmount)))
|
||||
{
|
||||
Instane_Buffer_ReStruct();
|
||||
}
|
||||
|
||||
if (ImGui::DragFloat3("VelocityMin", reinterpret_cast<_float*>(&m_InstanceDesc.vVelocityMin)))
|
||||
{
|
||||
Instane_Buffer_ReStruct();
|
||||
}
|
||||
if (GUI::TreeNode("Axis Turn"))
|
||||
{
|
||||
|
||||
if (ImGui::DragFloat3("VelocityMax", reinterpret_cast<_float*>(&m_InstanceDesc.vVelocityMax)))
|
||||
{
|
||||
Instane_Buffer_ReStruct();
|
||||
}
|
||||
if (GUI::Checkbox("AxisTurn", &m_InstanceDesc.isAxisTurn))
|
||||
{
|
||||
Instane_Buffer_ReStruct();
|
||||
}
|
||||
|
||||
if (ImGui::DragFloat3("DeltaAngleMin", reinterpret_cast<_float*>(&m_InstanceDesc.vDeltaAngleMin)))
|
||||
{
|
||||
Instane_Buffer_ReStruct();
|
||||
}
|
||||
|
||||
if (ImGui::DragFloat3("DeltaAngleMax", reinterpret_cast<_float*>(&m_InstanceDesc.vDeltaAngleMax)))
|
||||
{
|
||||
Instane_Buffer_ReStruct();
|
||||
if (GUI::Checkbox("ExcludePos From PibotMove", &m_InstanceDesc.isExcludePos))
|
||||
{
|
||||
Instane_Buffer_ReStruct();
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
if (ImGui::DragFloat3("DeltaAxisAngleMin", reinterpret_cast<_float*>(&m_InstanceDesc.vDeltaAxisAngleMin)))
|
||||
{
|
||||
Instane_Buffer_ReStruct();
|
||||
}
|
||||
|
||||
if (ImGui::DragFloat3("DeltaAxisAngleMax", reinterpret_cast<_float*>(&m_InstanceDesc.vDeltaAxisAngleMax)))
|
||||
{
|
||||
Instane_Buffer_ReStruct();
|
||||
}
|
||||
|
||||
|
||||
GUI::TreePop();
|
||||
}
|
||||
|
||||
if (GUI::TreeNode("Sin Turn"))
|
||||
{
|
||||
|
||||
|
||||
if (GUI::Checkbox("Sin Wave", &m_InstanceDesc.isSinWave))
|
||||
{
|
||||
Instane_Buffer_ReStruct();
|
||||
}
|
||||
|
||||
if (ImGui::DragFloat3("SinWaveMin", reinterpret_cast<_float*>(&m_InstanceDesc.vSinMinAmount)))
|
||||
{
|
||||
Instane_Buffer_ReStruct();
|
||||
}
|
||||
|
||||
if (ImGui::DragFloat3("SinWaveMax", reinterpret_cast<_float*>(&m_InstanceDesc.vSinMaxAmount)))
|
||||
{
|
||||
Instane_Buffer_ReStruct();
|
||||
}
|
||||
|
||||
|
||||
GUI::TreePop();
|
||||
}
|
||||
|
||||
GUI::TreePop();
|
||||
}
|
||||
|
||||
|
||||
if (ImGui::DragFloat3("DeltaAxisAngleMin", reinterpret_cast<_float*>(&m_InstanceDesc.vDeltaAxisAngleMin)))
|
||||
if (GUI::TreeNode("Size"))
|
||||
{
|
||||
Instane_Buffer_ReStruct();
|
||||
}
|
||||
|
||||
if (ImGui::DragFloat3("DeltaAxisAngleMax", reinterpret_cast<_float*>(&m_InstanceDesc.vDeltaAxisAngleMax)))
|
||||
{
|
||||
Instane_Buffer_ReStruct();
|
||||
}
|
||||
if (GUI::Checkbox("SizeLerp", &m_InstanceDesc.isSizeLerp))
|
||||
{
|
||||
Instane_Buffer_ReStruct();
|
||||
}
|
||||
|
||||
_int iMoveLerpOption = (_int)m_InstanceDesc.fMoveLerpOption;
|
||||
_int iSizeLerpOption = (_int)m_InstanceDesc.fSizeLerpOption;
|
||||
|
||||
if (ImGui::Combo("Move Lerp Option", &iMoveLerpOption, pLerp, 9))
|
||||
{
|
||||
Instane_Buffer_ReStruct();
|
||||
if (ImGui::Combo("Size Lerp Option", &iSizeLerpOption, pLerp, 9))
|
||||
{
|
||||
Instane_Buffer_ReStruct();
|
||||
|
||||
m_InstanceDesc.fMoveLerpOption = (_float)iMoveLerpOption;
|
||||
}
|
||||
m_InstanceDesc.fSizeLerpOption = (_float)iSizeLerpOption;
|
||||
}
|
||||
|
||||
if (ImGui::DragFloat3("PivotMin", reinterpret_cast<_float*>(&m_InstanceDesc.vPivotMin)))
|
||||
{
|
||||
Instane_Buffer_ReStruct();
|
||||
}
|
||||
if (ImGui::DragFloat3("LerpSizeAmount", reinterpret_cast<_float*>(&m_InstanceDesc.vDeltaSize)))
|
||||
{
|
||||
Instane_Buffer_ReStruct();
|
||||
}
|
||||
|
||||
if (ImGui::DragFloat3("PivotMax", reinterpret_cast<_float*>(&m_InstanceDesc.vPivotMax)))
|
||||
{
|
||||
Instane_Buffer_ReStruct();
|
||||
}
|
||||
if (ImGui::DragFloat2("Size Drag", reinterpret_cast<_float*>(&m_InstanceDesc.vSizeDrag)))
|
||||
{
|
||||
Instane_Buffer_ReStruct();
|
||||
}
|
||||
|
||||
if (ImGui::DragFloat2("Drag", reinterpret_cast<_float*>(&m_InstanceDesc.vDrag)))
|
||||
{
|
||||
Instane_Buffer_ReStruct();
|
||||
|
||||
GUI::TreePop();
|
||||
}
|
||||
|
||||
|
||||
_int iSizeLerpOption = (_int)m_InstanceDesc.fSizeLerpOption;
|
||||
|
||||
if (ImGui::Combo("Size Lerp Option", &iSizeLerpOption, pLerp, 9))
|
||||
if (GUI::TreeNode("Time"))
|
||||
{
|
||||
Instane_Buffer_ReStruct();
|
||||
if (ImGui::DragFloat2("LifeTime", reinterpret_cast<_float*>(&m_InstanceDesc.vLifeTime)))
|
||||
{
|
||||
Instane_Buffer_ReStruct();
|
||||
}
|
||||
|
||||
m_InstanceDesc.fSizeLerpOption = (_float)iSizeLerpOption;
|
||||
if (ImGui::DragFloat2("Delay", reinterpret_cast<_float*>(&m_InstanceDesc.vDelay)))
|
||||
{
|
||||
Instane_Buffer_ReStruct();
|
||||
}
|
||||
|
||||
if (ImGui::DragFloat2("DiffuseUVMoveTime", reinterpret_cast<_float*>(&m_InstanceDesc.vDiffuseUVMoveTime)))
|
||||
{
|
||||
Instane_Buffer_ReStruct();
|
||||
}
|
||||
|
||||
if (ImGui::DragFloat2("MaskingUVMoveTime", reinterpret_cast<_float*>(&m_InstanceDesc.vMaskingUVMoveTime)))
|
||||
{
|
||||
Instane_Buffer_ReStruct();
|
||||
}
|
||||
|
||||
|
||||
if (ImGui::DragFloat2("DistortionUVMoveTime", reinterpret_cast<_float*>(&m_InstanceDesc.vDistortionUVMoveTime)))
|
||||
{
|
||||
Instane_Buffer_ReStruct();
|
||||
}
|
||||
|
||||
if (ImGui::DragFloat2("NoiseUVMoveTime", reinterpret_cast<_float*>(&m_InstanceDesc.vNoiseUVMoveTime)))
|
||||
{
|
||||
Instane_Buffer_ReStruct();
|
||||
}
|
||||
|
||||
if (ImGui::DragFloat2("AniTime", reinterpret_cast<_float*>(&m_InstanceDesc.vAniTime)))
|
||||
{
|
||||
Instane_Buffer_ReStruct();
|
||||
}
|
||||
|
||||
if (ImGui::DragFloat2("AniIndex", reinterpret_cast<_float*>(&m_InstanceDesc.vAniIndex)))
|
||||
{
|
||||
Instane_Buffer_ReStruct();
|
||||
}
|
||||
|
||||
GUI::TreePop();
|
||||
}
|
||||
|
||||
if (ImGui::DragFloat3("LerpSizeAmount", reinterpret_cast<_float*>(&m_InstanceDesc.vDeltaSize)))
|
||||
if (GUI::TreeNode("Depth Compare"))
|
||||
{
|
||||
Instane_Buffer_ReStruct();
|
||||
}
|
||||
|
||||
if (ImGui::DragFloat2("Size Drag", reinterpret_cast<_float*>(&m_InstanceDesc.vSizeDrag)))
|
||||
{
|
||||
Instane_Buffer_ReStruct();
|
||||
}
|
||||
if (GUI::Checkbox("DetphCompareStop", &m_InstanceDesc.isDetphCompareStop))
|
||||
{
|
||||
Instane_Buffer_ReStruct();
|
||||
}
|
||||
|
||||
|
||||
if (ImGui::DragFloat2("DropAttenuation", reinterpret_cast<_float*>(&m_InstanceDesc.vDropAttenuation)))
|
||||
{
|
||||
Instane_Buffer_ReStruct();
|
||||
}
|
||||
if (GUI::Checkbox("Stop_Move_For_Depth_Compare", &m_InstanceDesc.isStop_Move_For_Depth_Compare))
|
||||
{
|
||||
Instane_Buffer_ReStruct();
|
||||
}
|
||||
|
||||
if (ImGui::DragFloat2("Acceleration", reinterpret_cast<_float*>(&m_InstanceDesc.vAcceleration)))
|
||||
{
|
||||
Instane_Buffer_ReStruct();
|
||||
GUI::TreePop();
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
ImGui::PopItemWidth();
|
||||
|
||||
@@ -145,8 +145,7 @@ constexpr unsigned int g_iMaxShadowHeight = 9216;
|
||||
unsigned int iRefCnt = {}; \
|
||||
if(nullptr != s_pInstance) { \
|
||||
iRefCnt = s_pInstance->Release(); \
|
||||
if(0 == iRefCnt) \
|
||||
s_pInstance = nullptr; \
|
||||
s_pInstance = nullptr; \
|
||||
} \
|
||||
return iRefCnt; \
|
||||
}
|
||||
|
||||
@@ -83,7 +83,7 @@ class ENGINE_DLL CInstance_Model final : public CComponent
|
||||
_bool isMoveUp = {};
|
||||
_bool isMoveRight = {};
|
||||
_bool isExcludePos = {};
|
||||
_bool isPadding5 = {};
|
||||
_bool isStop_Move_For_Depth_Compare = {};
|
||||
|
||||
}INSTANCE_DESC;
|
||||
|
||||
@@ -108,7 +108,7 @@ class ENGINE_DLL CInstance_Model final : public CComponent
|
||||
_float2 vDiffuseUVMoveTime = { 1.f, 1.f };
|
||||
_float2 vDistortionUVMoveTime = { 1.f , 1.f };
|
||||
_float2 vNoiseUVMoveTime = { 1.f ,1.f };
|
||||
_float2 vAniTime = { 1.f , 1.f };
|
||||
_float2 vAniTime = { 0.01f , 0.01f };
|
||||
_float2 vAniIndex = {};
|
||||
|
||||
_bool isMoveForward = {};
|
||||
@@ -175,7 +175,7 @@ class ENGINE_DLL CInstance_Model final : public CComponent
|
||||
|
||||
_int isMoveUp = {};
|
||||
_int isExcludePos = {};
|
||||
_int isPadding1 = {};
|
||||
_int isStop_Move_For_Depth_Compare = {};
|
||||
_int isPadding2 = {};
|
||||
|
||||
_float fTimeDelta = {};
|
||||
@@ -230,6 +230,8 @@ class ENGINE_DLL CInstance_Model final : public CComponent
|
||||
_float3 vVelocity = {};
|
||||
_float fAcceleration = {};
|
||||
|
||||
_bool isStop = {};
|
||||
|
||||
}CS_PARTICLE_VALUE_DESC;
|
||||
|
||||
public:
|
||||
|
||||
Reference in New Issue
Block a user