diff --git a/Jusin154_Team3D/Client/Default/Client.vcxproj b/Jusin154_Team3D/Client/Default/Client.vcxproj
index b9144b985..9d4ab8cb3 100644
--- a/Jusin154_Team3D/Client/Default/Client.vcxproj
+++ b/Jusin154_Team3D/Client/Default/Client.vcxproj
@@ -328,6 +328,7 @@ call Update_Resources.bat
+
@@ -634,6 +635,7 @@ call Update_Resources.bat
+
diff --git a/Jusin154_Team3D/Client/Default/Client.vcxproj.filters b/Jusin154_Team3D/Client/Default/Client.vcxproj.filters
index ed0262e02..e970fcc8c 100644
--- a/Jusin154_Team3D/Client/Default/Client.vcxproj.filters
+++ b/Jusin154_Team3D/Client/Default/Client.vcxproj.filters
@@ -913,7 +913,7 @@
02.GameObjects\Effect\MonsterEffect\Duelist_Protego\Duelist_ProtegoHit
-
+
02.GameObjects\Effect\MonsterEffect\Ranrok\Ranrok_Prop
@@ -923,6 +923,7 @@
02.GameObjects\NPC\Hostile\Monster\Ranrok
+
@@ -2778,6 +2779,7 @@
04.Mechanic\State\State_Combat\State_Block
+
diff --git a/Jusin154_Team3D/Client/Private/CutSceneInfo.cpp b/Jusin154_Team3D/Client/Private/CutSceneInfo.cpp
index d13e19a7f..a68e0dc99 100644
--- a/Jusin154_Team3D/Client/Private/CutSceneInfo.cpp
+++ b/Jusin154_Team3D/Client/Private/CutSceneInfo.cpp
@@ -146,22 +146,7 @@ HRESULT CCutSceneInfo::Ready_GameplayCutScenes()
HRESULT CCutSceneInfo::Ready_FieldCutScenes()
{
{
- CMonster* pMonster = { nullptr };
- CCamera* pCamera = { nullptr };
- {
- CLayer* pLayer = m_pGameInstance->Get_Layer(NEXT_LEVEL, LAYER_MONSTER);
- if (nullptr != pLayer) {
- pMonster = pLayer->Get_Object();
- }
- }
- {
- pCamera = m_pGameInstance->Get_Camera(NEXT_LEVEL, CAMERA_CINEMATIC);
- }
-
- if (nullptr == pMonster || nullptr == pCamera) {
- return E_FAIL;
- }
- Load_CutSceneXML("../Bin/Resources/Data/CutScene/RanrokCutScene.xml", pCamera, pMonster);
+ Load_CutSceneXML("../Bin/Resources/Data/CutScene/RanrokCutScene.xml");
}
return S_OK;
}
@@ -332,7 +317,7 @@ static void ReadFloat4(tinyxml2::XMLElement* param11Node, _float4& outValue)
}
-void CCutSceneInfo::Load_CutSceneXML(const string& path, CCamera* pCamera)
+void CCutSceneInfo::Load_CutSceneXML(const string& path)
{
tinyxml2::XMLDocument doc;
if (doc.LoadFile(path.c_str()) != tinyxml2::XML_SUCCESS) {
@@ -387,7 +372,7 @@ void CCutSceneInfo::Load_CutSceneXML(const string& path, CCamera* pCamera)
{
if (strcmp(pTargetText, "CAMERA_CINEMATIC") == 0)
{
- CCamera* pEventTarget = pCamera;
+ CCamera* pEventTarget = m_pGameInstance->Get_Camera(NEXT_LEVEL, CAMERA_CINEMATIC);
SocketContents.pEventTarget = pEventTarget;
SocketContents.funcEvent = [pEventTarget](CTimeSocket& Socket) { pEventTarget->Trigger(Socket); };
}
@@ -439,7 +424,7 @@ void CCutSceneInfo::Load_CutSceneXML(const string& path, CCamera* pCamera)
}
else if (string_view(pTypeIdText) == "CAMERA_CINEMATIC")
{
- SocketContents.pOtherTarget = pCamera;
+ SocketContents.pOtherTarget = m_pGameInstance->Get_Camera(NEXT_LEVEL, CAMERA_CINEMATIC);
}
else if (string_view(pTypeIdText) == "CAMERA_SHOULDER")
{
@@ -473,6 +458,9 @@ void CCutSceneInfo::Load_CutSceneXML(const string& path, CCamera* pCamera)
}
pTimeLine->m_Sockets.push_back(pSocket);
}
+ tinyxml2::XMLElement* pTriggerNode = pContentsNode->FirstChildElement("Trigger");
+
+ //pTriggerNode->QueryIntAttribute("W", )
pTimeLine->m_Sockets.sort([](CTimeSocket* a, CTimeSocket* b) {
return a->m_Contents.fRatio < b->m_Contents.fRatio;
});
diff --git a/Jusin154_Team3D/Client/Private/MapElement_Static.cpp b/Jusin154_Team3D/Client/Private/MapElement_Static.cpp
index d8aa5aaea..8975df7f8 100644
--- a/Jusin154_Team3D/Client/Private/MapElement_Static.cpp
+++ b/Jusin154_Team3D/Client/Private/MapElement_Static.cpp
@@ -151,13 +151,11 @@ void CMapElement_Static::ReadyForPhysX()
}
m_bConverted = true;
_uint iLevel = NEXT_LEVEL;
- for (_uint iIndexLOD = 0; iIndexLOD < m_iMaxLodLevel + 1; ++iIndexLOD)
- {
- CModel* pModel = m_pModelComs[iIndexLOD];
- if (FAILED(pModel->Ready_PhysXMeshes(XMMatrixIdentity(), iLevel))) {
- assert(false);
- }
+ CModel* pModel = m_pModelComs[0];
+
+ if (FAILED(pModel->Ready_PhysXMeshes(XMMatrixIdentity(), iLevel))) {
+ assert(false);
}
}
@@ -169,25 +167,23 @@ void CMapElement_Static::ConvertToPhysX()
m_bReadyToCreatePhysX = true;
m_RigidBodies.resize(m_iMaxLodLevel + 1);
- for (_uint iIndexLOD = 0; iIndexLOD < m_iMaxLodLevel + 1; ++iIndexLOD)
+
+ CModel* pModel = m_pModelComs[0];
+
+ _uint iNumMeshes = pModel->Get_NumMeshes();
+
+ for (_uint iIndex = 0; iIndex < iNumMeshes; ++iIndex)
{
- CModel* pModel = m_pModelComs[iIndexLOD];
-
- _uint iNumMeshes = pModel->Get_NumMeshes();
-
- for (_uint iIndex = 0; iIndex < iNumMeshes; ++iIndex)
- {
- _wstring wstrName = CMyTools::ToWstring(pModel->Get_MeshName(iIndex)) + to_wstring(iIndex);
- CRigidBody_Static* pRigidBody = { nullptr };
- CRigidBody_Static::RIGIDBODY_STATIC_DESC Desc = {};
- Desc.iSubKind = ENUM_CLASS(PXOBJECT::TERRAIN);
- Desc.pMeshName = wstrName.c_str();
- Desc.pWorldMatrix = m_pTransformCom->Get_WorldMatrixPtr();
- if (FAILED(__super::Add_Asset_Component(NEXT_LEVEL, wstrName, (CComponent**)&pRigidBody, &Desc))) {
- assert(false);
- }
- m_RigidBodies[iIndexLOD].push_back(pRigidBody);
+ _wstring wstrName = CMyTools::ToWstring(pModel->Get_MeshName(iIndex)) + to_wstring(iIndex);
+ CRigidBody_Static* pRigidBody = { nullptr };
+ CRigidBody_Static::RIGIDBODY_STATIC_DESC Desc = {};
+ Desc.iSubKind = ENUM_CLASS(PXOBJECT::TERRAIN);
+ Desc.pMeshName = wstrName.c_str();
+ Desc.pWorldMatrix = m_pTransformCom->Get_WorldMatrixPtr();
+ if (FAILED(__super::Add_Asset_Component(NEXT_LEVEL, wstrName, (CComponent**)&pRigidBody, &Desc))) {
+ assert(false);
}
+ m_RigidBodies[iIndex].push_back(pRigidBody);
}
}
diff --git a/Jusin154_Team3D/Client/Private/MapObject_Collision.cpp b/Jusin154_Team3D/Client/Private/MapObject_Collision.cpp
index 805c557be..b4d3e004c 100644
--- a/Jusin154_Team3D/Client/Private/MapObject_Collision.cpp
+++ b/Jusin154_Team3D/Client/Private/MapObject_Collision.cpp
@@ -143,26 +143,23 @@ void CMapObject_Collision::ReadyForPhysX()
}
m_bConverted = true;
_uint iLevel = NEXT_LEVEL;
- for (_uint iIndexLOD = 0; iIndexLOD < m_iMaxLodLevel + 1; ++iIndexLOD)
- {
- CModel* pModel = m_pModelComs[iIndexLOD];
- _matrix parentMatrix = m_pParentTransformCom->Get_XMWorldMatrix();
- _matrix idenMatrix = XMMatrixIdentity();
- _bool bSkip = { false };
- for (_int i = 0; i < 4; ++i) {
- if (false == XMVector4NearEqual(idenMatrix.r[i], parentMatrix.r[i], XMVectorReplicate(FLT_EPSILON5))) {
- if (FAILED(pModel->Ready_PhysXMeshes(XMLoadFloat4x4(&m_CombinedWorldMatrix), iLevel))) {
- assert(false);
- }
- bSkip = true;
- break;
- }
- }
- if (false == bSkip) {
- if (FAILED(pModel->Ready_PhysXMeshes(m_pParentTransformCom->Get_XMWorldMatrix(), iLevel))) {
+ CModel* pModel = m_pModelComs[0];
+ _matrix parentMatrix = m_pParentTransformCom->Get_XMWorldMatrix();
+ _matrix idenMatrix = XMMatrixIdentity();
+ _bool bSkip = { false };
+ for (_int i = 0; i < 4; ++i) {
+ if (false == XMVector4NearEqual(idenMatrix.r[i], parentMatrix.r[i], XMVectorReplicate(FLT_EPSILON5))) {
+ if (FAILED(pModel->Ready_PhysXMeshes(XMLoadFloat4x4(&m_CombinedWorldMatrix), iLevel))) {
assert(false);
}
+ bSkip = true;
+ break;
+ }
+ }
+ if (false == bSkip) {
+ if (FAILED(pModel->Ready_PhysXMeshes(m_pParentTransformCom->Get_XMWorldMatrix(), iLevel))) {
+ assert(false);
}
}
}
@@ -174,26 +171,22 @@ void CMapObject_Collision::ConvertToPhysX()
}
m_bReadyToCreatePhysX = true;
- m_RigidBodies.resize(m_iMaxLodLevel + 1);
- for (_uint iIndexLOD = 0; iIndexLOD < m_iMaxLodLevel + 1; ++iIndexLOD)
- {
- CModel* pModel = m_pModelComs[iIndexLOD];
+ CModel* pModel = m_pModelComs[0];
- _uint iNumMeshes = pModel->Get_NumMeshes();
-
- for (_uint iIndex = 0; iIndex < iNumMeshes; ++iIndex)
- {
- _wstring wstrName = CMyTools::ToWstring(pModel->Get_MeshName(iIndex)) + to_wstring(iIndex);
- CRigidBody_Static* pRigidBody = { nullptr };
- CRigidBody_Static::RIGIDBODY_STATIC_DESC Desc = {};
- Desc.iSubKind = ENUM_CLASS(PXOBJECT::TERRAIN);
- Desc.pMeshName = wstrName.c_str();
- Desc.pWorldMatrix = m_pTransformCom->Get_WorldMatrixPtr();
- if (FAILED(__super::Add_Asset_Component(NEXT_LEVEL, wstrName, (CComponent**)&pRigidBody, &Desc))) {
- assert(false);
- }
- m_RigidBodies[iIndexLOD].push_back(pRigidBody);
+ _uint iNumMeshes = pModel->Get_NumMeshes();
+
+ for (_uint iIndex = 0; iIndex < iNumMeshes; ++iIndex)
+ {
+ _wstring wstrName = CMyTools::ToWstring(pModel->Get_MeshName(iIndex)) + to_wstring(iIndex);
+ CRigidBody_Static* pRigidBody = { nullptr };
+ CRigidBody_Static::RIGIDBODY_STATIC_DESC Desc = {};
+ Desc.iSubKind = ENUM_CLASS(PXOBJECT::TERRAIN);
+ Desc.pMeshName = wstrName.c_str();
+ Desc.pWorldMatrix = m_pTransformCom->Get_WorldMatrixPtr();
+ if (FAILED(__super::Add_Asset_Component(NEXT_LEVEL, wstrName, (CComponent**)&pRigidBody, &Desc))) {
+ assert(false);
}
+ m_RigidBodies[iIndex] = pRigidBody;
}
}
@@ -278,10 +271,7 @@ void CMapObject_Collision::Free()
} m_pModelComs.clear();
for (_uint i = 0; i < m_RigidBodies.size(); ++i) {
- for (_uint j = 0; j < m_RigidBodies[i].size(); ++j) {
- SAFE_RELEASE(m_RigidBodies[i][j]);
- }
- m_RigidBodies[i].clear();
+ SAFE_RELEASE(m_RigidBodies[i]);
} m_RigidBodies.clear();
m_ModelPrototypeTags.clear();
diff --git a/Jusin154_Team3D/Client/Private/MapObject_Render.cpp b/Jusin154_Team3D/Client/Private/MapObject_Render.cpp
index 8a83927a3..959450ce1 100644
--- a/Jusin154_Team3D/Client/Private/MapObject_Render.cpp
+++ b/Jusin154_Team3D/Client/Private/MapObject_Render.cpp
@@ -158,13 +158,11 @@ void CMapObject_Render::ReadyForPhysX()
m_bConverted = true;
_uint iLevel = NEXT_LEVEL;
- for (_uint iIndexLOD = 0; iIndexLOD < m_iMaxLodLevel + 1; ++iIndexLOD)
- {
- CModel* pModel = m_pModelComs[iIndexLOD];
- if (FAILED(pModel->Ready_PhysXMeshes(XMMatrixIdentity(), iLevel))) {
- assert(false);
- }
+ CModel* pModel = m_pModelComs[0];
+
+ if (FAILED(pModel->Ready_PhysXMeshes(XMMatrixIdentity(), iLevel))) {
+ assert(false);
}
}
@@ -176,25 +174,23 @@ void CMapObject_Render::ConvertToPhysX()
m_bReadyToCreatePhysX = true;
m_RigidBodies.resize(m_iMaxLodLevel + 1);
- for (_uint iIndexLOD = 0; iIndexLOD < m_iMaxLodLevel + 1; ++iIndexLOD)
+
+ CModel* pModel = m_pModelComs[0];
+
+ _uint iNumMeshes = pModel->Get_NumMeshes();
+
+ for (_uint iIndex = 0; iIndex < iNumMeshes; ++iIndex)
{
- CModel* pModel = m_pModelComs[iIndexLOD];
-
- _uint iNumMeshes = pModel->Get_NumMeshes();
-
- for (_uint iIndex = 0; iIndex < iNumMeshes; ++iIndex)
- {
- _wstring wstrName = CMyTools::ToWstring(pModel->Get_MeshName(iIndex)) + to_wstring(iIndex);
- CRigidBody_Static* pRigidBody = { nullptr };
- CRigidBody_Static::RIGIDBODY_STATIC_DESC Desc = {};
- Desc.iSubKind = ENUM_CLASS(PXOBJECT::TERRAIN);
- Desc.pMeshName = wstrName.c_str();
- Desc.pWorldMatrix = &m_CombinedWorldMatrix;
- if (FAILED(__super::Add_Asset_Component(NEXT_LEVEL, wstrName, (CComponent**)&pRigidBody, &Desc))) {
- assert(false);
- }
- m_RigidBodies[iIndexLOD].push_back(pRigidBody);
+ _wstring wstrName = CMyTools::ToWstring(pModel->Get_MeshName(iIndex)) + to_wstring(iIndex);
+ CRigidBody_Static* pRigidBody = { nullptr };
+ CRigidBody_Static::RIGIDBODY_STATIC_DESC Desc = {};
+ Desc.iSubKind = ENUM_CLASS(PXOBJECT::TERRAIN);
+ Desc.pMeshName = wstrName.c_str();
+ Desc.pWorldMatrix = &m_CombinedWorldMatrix;
+ if (FAILED(__super::Add_Asset_Component(NEXT_LEVEL, wstrName, (CComponent**)&pRigidBody, &Desc))) {
+ assert(false);
}
+ m_RigidBodies[iIndex] = pRigidBody;
}
}
@@ -305,9 +301,7 @@ void CMapObject_Render::Free()
SAFE_RELEASE(m_pDefaultGlassTextureCom);
for (_uint i = 0; i < m_RigidBodies.size(); ++i) {
- for (_uint j = 0; j < m_RigidBodies[i].size(); ++j) {
- SAFE_RELEASE(m_RigidBodies[i][j]);
- }
+ SAFE_RELEASE(m_RigidBodies[i]);
} m_RigidBodies.clear();
for (auto& pModel : m_pModelComs)
diff --git a/Jusin154_Team3D/Client/Private/TriggerBox.cpp b/Jusin154_Team3D/Client/Private/TriggerBox.cpp
new file mode 100644
index 000000000..2f4600ea4
--- /dev/null
+++ b/Jusin154_Team3D/Client/Private/TriggerBox.cpp
@@ -0,0 +1,2 @@
+#include "pch.h"
+#include "TriggerBox.h"
diff --git a/Jusin154_Team3D/Client/Public/Client_Struct.h b/Jusin154_Team3D/Client/Public/Client_Struct.h
index 976bf729e..6c8cc40ba 100644
--- a/Jusin154_Team3D/Client/Public/Client_Struct.h
+++ b/Jusin154_Team3D/Client/Public/Client_Struct.h
@@ -375,6 +375,7 @@ typedef struct tagEffectInfo
struct TimeLine {
_float2 m_vTimer = {};
_uint m_eTypeTimeLine = {};
+
list m_Sockets = {};
};
NS_END
diff --git a/Jusin154_Team3D/Client/Public/CutSceneInfo.h b/Jusin154_Team3D/Client/Public/CutSceneInfo.h
index 595c0a5d3..ee38c973b 100644
--- a/Jusin154_Team3D/Client/Public/CutSceneInfo.h
+++ b/Jusin154_Team3D/Client/Public/CutSceneInfo.h
@@ -37,7 +37,7 @@ class CCutSceneInfo final : public CBase
private:
HRESULT Initialize(ID3D11Device* pDevice, ID3D11DeviceContext* pContex);
- void Load_CutSceneXML(const string& path, CCamera* pCamera);
+ void Load_CutSceneXML(const string& path);
#ifdef _DEBUG
public:
diff --git a/Jusin154_Team3D/Client/Public/MapObject_Collision.h b/Jusin154_Team3D/Client/Public/MapObject_Collision.h
index 0623898d3..dbcea9ea0 100644
--- a/Jusin154_Team3D/Client/Public/MapObject_Collision.h
+++ b/Jusin154_Team3D/Client/Public/MapObject_Collision.h
@@ -25,7 +25,7 @@ class CMapObject_Collision final : public CMapPartObject // 충돌용 Mesh
void ConvertToPhysX();
private:
CShader* m_pShaderCom = { nullptr };
- vector> m_RigidBodies;
+ vector m_RigidBodies;
vector m_pModelComs;
_bool m_bReadyToCreatePhysX = { false };
diff --git a/Jusin154_Team3D/Client/Public/MapObject_Render.h b/Jusin154_Team3D/Client/Public/MapObject_Render.h
index ace3bd001..35f91ed18 100644
--- a/Jusin154_Team3D/Client/Public/MapObject_Render.h
+++ b/Jusin154_Team3D/Client/Public/MapObject_Render.h
@@ -48,7 +48,7 @@ class CMapObject_Render final : public CMapPartObject // Render PartObject
CShader* m_pShaderCom = { nullptr };
CTexture* m_pDefaultGlassTextureCom = { nullptr };
vector m_pModelComs;
- vector> m_RigidBodies;
+ vector m_RigidBodies;
vector<_wstring> m_ModelPrototypeTags;
vector<_uint> m_ModelPathIndices = {};
diff --git a/Jusin154_Team3D/Client/Public/TriggerBox.h b/Jusin154_Team3D/Client/Public/TriggerBox.h
new file mode 100644
index 000000000..be2eea670
--- /dev/null
+++ b/Jusin154_Team3D/Client/Public/TriggerBox.h
@@ -0,0 +1,23 @@
+#pragma once
+
+#include "Client_Define.h"
+#include "GameInstance.h"
+NS_BEGIN(Engine)
+NS_END
+
+NS_BEGIN(Client)
+
+class CTriggerBox final : public CBase
+{
+private:
+ CTriggerBox();
+ virtual ~CTriggerBox() = default;
+
+
+
+public:
+ static CTriggerBox Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, LEVEL eLevelID, void* pArg);
+ virtual void Free() override;
+};
+
+NS_END
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/CutScene/RanrokCutScene.xml b/Jusin154_Team3D/Editor/Bin/Resources/Data/CutScene/RanrokCutScene.xml
index 028c85fe9..abcc32007 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/CutScene/RanrokCutScene.xml
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/CutScene/RanrokCutScene.xml
@@ -702,4 +702,5 @@
+