diff --git a/Jusin154_Team3D/Client/Default/Client.vcxproj b/Jusin154_Team3D/Client/Default/Client.vcxproj
index eea9ad819..54a164fcd 100644
--- a/Jusin154_Team3D/Client/Default/Client.vcxproj
+++ b/Jusin154_Team3D/Client/Default/Client.vcxproj
@@ -163,6 +163,7 @@ call Update_Resources.bat
+
@@ -475,6 +476,7 @@ call Update_Resources.bat
+
diff --git a/Jusin154_Team3D/Client/Default/Client.vcxproj.filters b/Jusin154_Team3D/Client/Default/Client.vcxproj.filters
index b49271f9f..f8ef4e342 100644
--- a/Jusin154_Team3D/Client/Default/Client.vcxproj.filters
+++ b/Jusin154_Team3D/Client/Default/Client.vcxproj.filters
@@ -952,13 +952,16 @@
02.GameObjects\Effect\Effects\Reparo
-
+
04.Mechanic\State\Focus\Spell_Learning
02.GameObjects\Environment\Prop\SkyBox\TriggerBox
+
+ 02.GameObjects\Cameras\CameraPosition\CamPosition_WorldLook
+
@@ -1965,9 +1968,6 @@
{9263815e-9651-4ba2-813f-c2a7f207522d}
-
- {44a8eee1-6b7f-4c9a-bf92-21f6b90e84c3}
-
{5599bbbd-12f7-4b40-8e3d-24f869cce464}
@@ -1976,10 +1976,13 @@
{88c3bc02-a51d-4cd8-87a2-197722d48f83}
-
-
+
+
{26d7f6f4-0b5f-4b9a-9cef-df91b8a485bf}
+
+ {b3924c52-0c0d-4cd1-94f4-1eb61d2c6c99}
+
@@ -2852,10 +2855,13 @@
02.GameObjects\Effect\Effects\Reparo
-
+
04.Mechanic\State\Focus\Spell_Learning
+
+ 02.GameObjects\Cameras\CameraPosition\CamPosition_WorldLook
+
02.GameObjects\Environment\Prop\SkyBox\TriggerBox
diff --git a/Jusin154_Team3D/Client/Private/CamPosition_Target.cpp b/Jusin154_Team3D/Client/Private/CamPosition_Target.cpp
index d7289191b..f8cc08ba6 100644
--- a/Jusin154_Team3D/Client/Private/CamPosition_Target.cpp
+++ b/Jusin154_Team3D/Client/Private/CamPosition_Target.cpp
@@ -47,7 +47,7 @@ _bool CCamPosition_Target::IsStalking()
return nullptr != m_pStalkingTarget;
}
-void CCamPosition_Target::Stalking_Target(CUnit* pStalkingTarget, const _float4x4* pTargetSocketMatrix)
+void CCamPosition_Target::Stalking_Target(CGameObject* pStalkingTarget, const _float4x4* pTargetSocketMatrix)
{
SAFE_RELEASE(m_pStalkingTarget);
m_pStalkingTarget = pStalkingTarget;
diff --git a/Jusin154_Team3D/Client/Private/CamPosition_WorldLook.cpp b/Jusin154_Team3D/Client/Private/CamPosition_WorldLook.cpp
new file mode 100644
index 000000000..82d6bb165
--- /dev/null
+++ b/Jusin154_Team3D/Client/Private/CamPosition_WorldLook.cpp
@@ -0,0 +1,139 @@
+#include "pch.h"
+#include "CamPosition_WorldLook.h"
+#include "GameInstance.h"
+
+CCamPosition_WorldLook::CCamPosition_WorldLook(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+ : CCamPosition(pDevice, pContext)
+{
+}
+CCamPosition_WorldLook::CCamPosition_WorldLook(const CCamPosition_WorldLook& rhs)
+ : CCamPosition(rhs)
+{
+}
+HRESULT CCamPosition_WorldLook::Initialize_Prototype()
+{
+ return S_OK;
+}
+
+HRESULT CCamPosition_WorldLook::Initialize(void* pArg)
+{
+ if (FAILED(__super::Initialize(pArg))) {
+ return E_FAIL;
+ }
+ if (FAILED(Ready_Components(pArg))) {
+ return E_FAIL;
+ }
+ CameraWorldLook_DESC* pDesc = static_cast(pArg);
+ Set_Position(pDesc->vPosition);
+#ifdef _DEBUG
+ m_pSubShape = (GeometricPrimitive::CreateSphere(m_pContext, 1.f, 12, false, false));
+ m_Batch = make_unique>(m_pContext);
+#endif // _DEBUG
+ return S_OK;
+}
+
+void CCamPosition_WorldLook::Priority_Update(_float fTimeDelta)
+{
+}
+
+void CCamPosition_WorldLook::Update(_float fTimeDelta)
+{
+}
+
+void CCamPosition_WorldLook::Late_Update(_float fTimeDelta)
+{
+#ifdef _DEBUG
+ m_pGameInstance->Add_RenderGroup(RENDER::NONLIGHT, this);
+#endif // _DEBUG
+}
+
+HRESULT CCamPosition_WorldLook::Render()
+{
+#ifdef _DEBUG
+ m_Batch->Begin();
+ _matrix ViewMatrix = m_pGameInstance->Get_Transform_Matrix(D3DTS::VIEW);
+ _matrix ProjMatrix = m_pGameInstance->Get_Transform_Matrix(D3DTS::PROJ);
+ _vector vColor = CMyTools::ColorRGB_A_HEXtoVECTOR(0x0f000f, 1.f);
+ m_pSubShape->Draw(m_pTransformCom->Get_XMWorldMatrix(), ViewMatrix, ProjMatrix, vColor, nullptr, true);
+ m_Batch->End();
+#endif // _DEBUG
+ return S_OK;
+}
+
+void CCamPosition_WorldLook::Set_Position(PSX::PxVec3 vPosition)
+{
+ Set_Position(_float3(vPosition.x, vPosition.y, vPosition.z));
+}
+
+void CCamPosition_WorldLook::Set_Position(_float3 vPosition)
+{
+ Set_Position(XMVectorSetW(XMLoadFloat3(&vPosition), 1.f));
+}
+
+void CCamPosition_WorldLook::Set_Position(_float4 vPosition)
+{
+ Set_Position(XMLoadFloat4(&vPosition));
+}
+
+void CCamPosition_WorldLook::Set_Position(_fvector vPosition)
+{
+ m_pTransformCom->Set_State(STATE::POSITION, XMVectorSetW(vPosition, 1.f));
+}
+
+_vector CCamPosition_WorldLook::Get_WorldPostion()
+{
+ return m_pTransformCom->Get_State(STATE::POSITION);
+}
+
+HRESULT CCamPosition_WorldLook::Ready_Components(void* pArg)
+{
+ CTransform::TRANSFORM_DESC DescTransfrom = {};
+ DescTransfrom.fRadius = 30.f;
+ DescTransfrom.fRotationPerSec = 0.f;
+ DescTransfrom.fSpeedPerSec = 0.f;
+ if (FAILED(__super::Ready_Components(&DescTransfrom))) {
+ return E_FAIL;
+ }
+ return S_OK;
+}
+
+HRESULT CCamPosition_WorldLook::Bind_ShaderResources()
+{
+ return S_OK;
+}
+
+CCamPosition_WorldLook* CCamPosition_WorldLook::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+{
+ CCamPosition_WorldLook* pInstance = new CCamPosition_WorldLook(pDevice, pContext);
+
+ if (FAILED(pInstance->Initialize_Prototype()))
+ {
+ MSG_BOX("Failed to Created : CCamPosition_WorldLook");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+CCamPosition_WorldLook* CCamPosition_WorldLook::Clone(void* pArg, class CGameObject* pOWner)
+{
+ CCamPosition_WorldLook* pInstance = new CCamPosition_WorldLook(*this);
+ pInstance->m_pOwner = pOWner;
+ if (FAILED(pInstance->Initialize(pArg)))
+ {
+ MSG_BOX("Failed to Cloned : CCamPosition_WorldLook");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+void CCamPosition_WorldLook::Free()
+{
+ __super::Free();
+}
+#ifdef _DEBUG
+
+void CCamPosition_WorldLook::Describe_Entity()
+{
+}
+
+#endif // _DEBUG
diff --git a/Jusin154_Team3D/Client/Private/Camera_Cinematic.cpp b/Jusin154_Team3D/Client/Private/Camera_Cinematic.cpp
index 3cd0a371b..94175f264 100644
--- a/Jusin154_Team3D/Client/Private/Camera_Cinematic.cpp
+++ b/Jusin154_Team3D/Client/Private/Camera_Cinematic.cpp
@@ -114,8 +114,8 @@ void CCamera_Cinematic::Active_Camera(pair<_float4, _float3>& pairTransitionInfo
void CCamera_Cinematic::Update_LerpTimer(_float fTimeDelta)
{
- Lerp_Translation(fTimeDelta);
Lerp_Rotation(fTimeDelta);
+ Lerp_Translation(fTimeDelta);
Lerp_FovY(fTimeDelta);
if (false == m_bActive) {
return;
@@ -127,12 +127,12 @@ void CCamera_Cinematic::Set_Priority(_uint iPriority)
m_iPriority = iPriority;
}
-void CCamera_Cinematic::Set_LookTarget(CUnit* pTarget, const _float4x4* pTargetSocketMatrix)
+void CCamera_Cinematic::Set_LookTarget(CGameObject* pTarget, const _float4x4* pTargetSocketMatrix)
{
m_pLookTargetPart->Stalking_Target(pTarget, pTargetSocketMatrix);
}
-void CCamera_Cinematic::Set_FollowTarget(CUnit* pTarget, const _float4x4* pTargetSocketMatrix)
+void CCamera_Cinematic::Set_FollowTarget(CGameObject* pTarget, const _float4x4* pTargetSocketMatrix)
{
m_pFollowTargetPart->Stalking_Target(pTarget, pTargetSocketMatrix);
}
@@ -173,11 +173,22 @@ void CCamera_Cinematic::Trigger(CTimeSocket& Socket)
} break;
case TIMESOCKET_FUNC::LOOK_AT:
{
+ SAFE_RELEASE(m_pWORLD_LOCK_TargetPart);
CUnit* pUnit = (CUnit*)pContents->pOtherTarget;
Set_LookTarget(pUnit, pUnit->Get_SocketMatrixPtr(pContents->vParam_12.c_str()));
}break;
+ case TIMESOCKET_FUNC::SET_WORLD_LOCKPOSITION:
+ {
+ SAFE_RELEASE(m_pWORLD_LOCK_TargetPart);
+ CCamPosition_WorldLook::CameraWorldLook_DESC Desc{};
+ Desc.pParentTransform = m_pTransformCom;
+ Desc.vPosition = pContents->pxTransform.p;
+ m_pWORLD_LOCK_TargetPart = m_pGameInstance->Clone_Prototype(g_iStaticLevel, &Desc, this);
+ Set_LookTarget(m_pWORLD_LOCK_TargetPart, nullptr);
+ }break;
case TIMESOCKET_FUNC::DONT_LOOK_AT:
{
+ SAFE_RELEASE(m_pWORLD_LOCK_TargetPart);
m_pLookTargetPart->Stop_Stalking();
}break;
case TIMESOCKET_FUNC::FOLLOW:
@@ -451,6 +462,7 @@ void CCamera_Cinematic::Free()
SAFE_RELEASE(m_pModelCom);
SAFE_RELEASE(m_pShaderCom);
#endif // _DEBUG
+ SAFE_RELEASE(m_pWORLD_LOCK_TargetPart);
SAFE_RELEASE(m_pLookTargetPart);
SAFE_RELEASE(m_pFollowTargetPart);
}
diff --git a/Jusin154_Team3D/Client/Private/CutSceneInfo.cpp b/Jusin154_Team3D/Client/Private/CutSceneInfo.cpp
index d5dc22430..ef6fed292 100644
--- a/Jusin154_Team3D/Client/Private/CutSceneInfo.cpp
+++ b/Jusin154_Team3D/Client/Private/CutSceneInfo.cpp
@@ -6,6 +6,7 @@
#include "TriggerBox.h"
#include "Layer.h"
#include "Player.h"
+#include "Troll.h"
#include "TimeSocket.h"
#include "Camera_Cinematic.h"
#include "Ranrok.h"
@@ -175,6 +176,7 @@ HRESULT CCutSceneInfo::Ready_GameplayCutScenes()
{
{
Load_CutSceneXML("../Bin/Resources/Data/CutScene/CarriageIntro.xml");
+ Load_CutSceneXML("../Bin/Resources/Data/CutScene/TrollIntroCutScene.xml");
}
return S_OK;
}
@@ -437,6 +439,12 @@ void CCutSceneInfo::Load_CutSceneXML(const string& path)
SocketContents.pEventTarget = pEventTarget;
SocketContents.funcEvent = [pEventTarget](CTimeSocket& Socket) { pEventTarget->Trigger(Socket); };
}
+ else if (strcmp(pTargetText, "ACTOR_TROLL") == 0)
+ {
+ CTroll* pEventTarget = m_pGameInstance->Get_Layer(NEXT_LEVEL, LAYER_MONSTER)->Get_Object();
+ SocketContents.pEventTarget = pEventTarget;
+ SocketContents.funcEvent = [pEventTarget](CTimeSocket& Socket) { pEventTarget->Trigger(Socket); };
+ }
else if (strcmp(pTargetText, "SYSTEM") == 0)
{
bUseSystem = true;
@@ -481,6 +489,10 @@ void CCutSceneInfo::Load_CutSceneXML(const string& path)
{
SocketContents.pOtherTarget = m_pGameInstance->Get_Layer(NEXT_LEVEL, SocketContents.wstrLayerName)->Get_Object();
}
+ else if (string_view(pTypeIdText) == "ACTOR_TROLL")
+ {
+ SocketContents.pOtherTarget = m_pGameInstance->Get_Layer(NEXT_LEVEL, SocketContents.wstrLayerName)->Get_Object();
+ }
else if (string_view(pTypeIdText) == "ACTOR_CARRIAGE")
{
SocketContents.pOtherTarget = m_pGameInstance->Get_Layer(NEXT_LEVEL, SocketContents.wstrLayerName)->Get_Object();
diff --git a/Jusin154_Team3D/Client/Private/EffectPool.cpp b/Jusin154_Team3D/Client/Private/EffectPool.cpp
index c489367f8..22a9df155 100644
--- a/Jusin154_Team3D/Client/Private/EffectPool.cpp
+++ b/Jusin154_Team3D/Client/Private/EffectPool.cpp
@@ -115,8 +115,8 @@ HRESULT CEffectPool::Initialize(void* pArg)
m_isActiveMonsterEffectCreate = true;
#endif //
#ifdef 기무리
- m_isActiveEffectCreate = true;
- m_isActiveMonsterEffectCreate = true;
+ m_isActiveEffectCreate = false;
+ m_isActiveMonsterEffectCreate = false;
#endif //
#ifdef 나
m_isActiveEffectCreate = true;
diff --git a/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp b/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp
index d6ae45ca6..2cf9347e1 100644
--- a/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp
+++ b/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp
@@ -126,7 +126,7 @@ HRESULT CLevel_GamePlay::Initialize(void* pArg)
_bool bLoadNPC = { true };
#ifdef _DEBUG
#ifdef 기무리
- bLoadNPC = true;
+ bLoadNPC = false;
#endif
#endif // _DEBUG
if (true == bLoadNPC) {
@@ -365,7 +365,7 @@ HRESULT CLevel_GamePlay::Ready_Background()
#ifdef 기무리
isReady_Background = true;
isReady_Hogsmeade = true;
- isReady_Hogwart = true;
+ isReady_Hogwart = false;
#endif //
#ifdef 나
isReady_Background = false;
@@ -1140,8 +1140,8 @@ HRESULT CLevel_GamePlay::Ready_Layer_Npc()
isLoad_NPC = false;
#endif //
#ifdef 기무리
- isLoad_NPC = true;
- isLoad_RandomNPC = true;
+ isLoad_NPC = false;
+ isLoad_RandomNPC = false;
#endif //
#ifdef 나
isLoad_RandomNPC = true;
diff --git a/Jusin154_Team3D/Client/Private/Loader.cpp b/Jusin154_Team3D/Client/Private/Loader.cpp
index 95108b6fa..092dad3b3 100644
--- a/Jusin154_Team3D/Client/Private/Loader.cpp
+++ b/Jusin154_Team3D/Client/Private/Loader.cpp
@@ -6,6 +6,7 @@
#include "Light_Main.h"
#include "Loader.h"
#include "MainApp.h"
+#include "CamPosition_WorldLook.h"
#include "Model.h"
#include "Broom.h"
@@ -558,9 +559,9 @@ HRESULT CLoader::Loading_For_GamePlay()
#endif //
#ifdef 기무리
isLoad_Background = true;
- isLoad_Hogwart = true;
+ isLoad_Hogwart = false;
isLoad_UI_SEQUANTIAL = false;
- isLoad_NPC = true;
+ isLoad_NPC = false;
isLoad_Monster = true;
#endif //
#ifdef 나
@@ -2950,6 +2951,10 @@ HRESULT CLoader::Loading_For_GamePlay()
if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CEffectPool::Create(m_pDevice, m_pContext)))) {
return E_FAIL;
}
+
+ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CCamPosition_WorldLook::Create(m_pDevice, m_pContext)))) {
+ return E_FAIL;
+ }
m_strMessage = TEXT("Model Loading..");
diff --git a/Jusin154_Team3D/Client/Private/Player.cpp b/Jusin154_Team3D/Client/Private/Player.cpp
index 82504467e..9f7f4cc4b 100644
--- a/Jusin154_Team3D/Client/Private/Player.cpp
+++ b/Jusin154_Team3D/Client/Private/Player.cpp
@@ -542,6 +542,11 @@ void CPlayer::Trigger(CTimeSocket& Socket)
SOCKETCONTENTS* pContents = &Socket.m_Contents;
switch (pContents->eTypeFunc)
{
+ case TIMESOCKET_FUNC::TELEPORTATION:
+ {
+ m_pTransformCom->Set_WorldMatrix(pContents->pxTransform);
+ m_pCharacter_Controller->Set_Position(XMVectorSetW(XMLoadFloat3((_float3*)&pContents->pxTransform.p), 1.f));
+ } break;
case TIMESOCKET_FUNC::TRANSLATION:
{
_vector vNewPos = XMVectorSetW(XMLoadFloat3((_float3*)&pContents->pxTransform.p), 1.f);
diff --git a/Jusin154_Team3D/Client/Private/TriggerBox.cpp b/Jusin154_Team3D/Client/Private/TriggerBox.cpp
index f0aaf170e..fa9e6c735 100644
--- a/Jusin154_Team3D/Client/Private/TriggerBox.cpp
+++ b/Jusin154_Team3D/Client/Private/TriggerBox.cpp
@@ -58,12 +58,12 @@ HRESULT CTriggerBox::Initialize(TRIGGERBOX_DESC* pDesc)
m_pTransformCom->Set_State(STATE::POSITION, XMVectorSetW(XMLoadFloat4(&pDesc->vPosition_Radius), 1.f));
#ifdef _DEBUG
- m_pSubShape = (GeometricPrimitive::CreateSphere(m_pContext, m_pTransformCom->Get_Radius() * 2.f, 12, false, false));
+ m_pSubShape = (GeometricPrimitive::CreateSphere(m_pContext, m_pTransformCom->Get_Radius(), 3, false, false));
m_Batch = make_unique>(m_pContext);
#endif // _DEBUG
- _float3 vScale = { Desc.fRadius * 2.f, Desc.fRadius * 2.f, Desc.fRadius * 2.f };
+ _float3 vScale = { Desc.fRadius * 0.5f, Desc.fRadius * 0.5f, Desc.fRadius * 0.5f };
m_pTransformCom->Set_Scale(vScale);
m_vScanTimer.y += m_pGameInstance->Real_Random_Float(0.f, 0.2f);
return S_OK;
@@ -74,7 +74,7 @@ HRESULT CTriggerBox::Scan()
_float fRadius = m_pTransformCom->Get_Radius();
PSX::PxOverlapBufferN<32> pxBuffer = {};
- _bool bHit = m_pGameInstance->Overlap(fRadius, m_pTransformCom->Get_State(STATE::POSITION),
+ _bool bHit = m_pGameInstance->Overlap(fRadius * 2.f, m_pTransformCom->Get_State(STATE::POSITION),
PSX::PxQueryFlag::eDYNAMIC | PSX::PxQueryFlag::eNO_BLOCK, pxBuffer);
diff --git a/Jusin154_Team3D/Client/Private/Troll.cpp b/Jusin154_Team3D/Client/Private/Troll.cpp
index 259f72037..d45b069d0 100644
--- a/Jusin154_Team3D/Client/Private/Troll.cpp
+++ b/Jusin154_Team3D/Client/Private/Troll.cpp
@@ -9,6 +9,7 @@
#include "CallBack_Troll_HitReport.h"
#include "EffectParts.h"
#include "EffectPool.h"
+#include "TimeSocket.h"
#include "Layer.h"
#include "TrailObject.h"
#include "MapElement_Interactable.h"
@@ -65,7 +66,7 @@ HRESULT CTroll::Initialize(void* pArg)
- m_pCharacter_Controller->Set_Position(XMVectorSet(96.927f, 15.f, 129.544f, 1.f));
+ m_pCharacter_Controller->Set_Position(XMVectorSet(96.927f, -15.f, 129.544f, 1.f));
m_pEffectPool = m_pGameInstance->Get_Layer(NEXT_LEVEL, TEXT("Layer_EffectPool"))->Get_Object();
SAFE_ADDREF(m_pEffectPool);
@@ -438,6 +439,39 @@ void CTroll::OnHit(CGameObject* pOther, CGameObject* pCaller)
{
}
+void CTroll::Trigger(CTimeSocket& Socket)
+{
+
+ SOCKETCONTENTS* pContents = &Socket.m_Contents;
+ switch (pContents->eTypeFunc)
+ {
+ case TIMESOCKET_FUNC::TELEPORTATION:
+ {
+ m_pTransformCom->Set_WorldMatrix(pContents->pxTransform);
+ m_pCharacter_Controller->Set_Position(XMVectorSetW(XMLoadFloat3((_float3*)&pContents->pxTransform.p), 1.f));
+ } break;
+ case TIMESOCKET_FUNC::SET_FSMSTATE:
+ {
+ if (pContents->vFlags.b[0]){
+ m_pFSM->Change_State(FSMSTATE::RUSH);
+ }
+ } break;
+ case TIMESOCKET_FUNC::SET_ANIMSTATE:
+ {
+ if (pContents->vFlags.b[0]){
+ auto& pairAnimation = m_Animation[STATEANIM::RUSH_LOOP];
+ m_pModelCom->Set_AnimationIndex(pairAnimation.first, pairAnimation.second);
+ }
+ } break;
+ case TIMESOCKET_FUNC::END_CINEMATIC:
+ {
+ m_pGameInstance->Bind_Camera(CURRENT_LEVEL, Socket.m_Contents.wstrKeyName, true);
+ }break;
+ default:
+ break;
+ }
+}
+
HRESULT CTroll::Ready_Components()
{
CTransform::TRANSFORM_DESC Desc = {};
diff --git a/Jusin154_Team3D/Client/Public/CamPosition_Target.h b/Jusin154_Team3D/Client/Public/CamPosition_Target.h
index 39de6c30f..de01414f4 100644
--- a/Jusin154_Team3D/Client/Public/CamPosition_Target.h
+++ b/Jusin154_Team3D/Client/Public/CamPosition_Target.h
@@ -26,7 +26,7 @@ class CCamPosition_Target final : public CCamPosition
virtual _vector Get_WorldPostion() override;
virtual void Set_WorldPostion(_vector vPos);
virtual _bool IsStalking();
- virtual void Stalking_Target(CUnit* pStalkingTarget, const _float4x4* pTargetSocketMatrix);
+ virtual void Stalking_Target(CGameObject* pStalkingTarget, const _float4x4* pTargetSocketMatrix);
virtual void Stop_Stalking();
_matrix Get_XMWorldMatrix();
@@ -37,7 +37,7 @@ class CCamPosition_Target final : public CCamPosition
HRESULT Ready_Components(void* pArg);
HRESULT Bind_ShaderResources() override;
- CUnit* m_pStalkingTarget = { nullptr };
+ CGameObject* m_pStalkingTarget = { nullptr };
const _float4x4* m_pTargetSocketMatrix = { nullptr };
public:
static CCamPosition_Target* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
diff --git a/Jusin154_Team3D/Client/Public/CamPosition_WorldLook.h b/Jusin154_Team3D/Client/Public/CamPosition_WorldLook.h
new file mode 100644
index 000000000..a8f9de542
--- /dev/null
+++ b/Jusin154_Team3D/Client/Public/CamPosition_WorldLook.h
@@ -0,0 +1,49 @@
+#pragma once
+#include "Client_Define.h"
+#include "CamPosition.h"
+
+NS_BEGIN(Client)
+
+class CCamPosition_WorldLook final : public CCamPosition
+{
+public:
+ typedef struct tagCameraWorldLook_DESC : public CCamPosition::CAMERAPOSITION_DESC
+ {
+ PSX::PxVec3 vPosition = {};
+ }CameraWorldLook_DESC;
+private:
+ CCamPosition_WorldLook(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ CCamPosition_WorldLook(const CCamPosition_WorldLook& rhs);
+ virtual ~CCamPosition_WorldLook() = default;
+
+public:
+ virtual void Priority_Update(_float fTimeDelta) override;
+ virtual void Update(_float fTimeDelta) override;
+ virtual void Late_Update(_float fTimeDelta) override;
+ virtual HRESULT Render() override;
+ virtual void Set_Position(PSX::PxVec3 vPosition);
+ virtual void Set_Position(_float3 vPosition);
+ virtual void Set_Position(_float4 vPosition);
+ virtual void Set_Position(_fvector vPosition);
+ virtual _vector Get_WorldPostion()override;
+
+private:
+ virtual HRESULT Initialize_Prototype() override;
+ virtual HRESULT Initialize(void* pArg) override;
+ HRESULT Ready_Components(void* pArg);
+ HRESULT Bind_ShaderResources();
+ _float m_fAccDegreeY = { };
+#ifdef _DEBUG
+ unique_ptr m_pSubShape = { nullptr };
+ unique_ptr> m_Batch = { nullptr };
+#endif // _DEBUG
+public:
+ static CCamPosition_WorldLook* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ virtual CCamPosition_WorldLook* Clone(void* pArg, class CGameObject* pOWner) override;
+ virtual void Free() override;
+#ifdef _DEBUG
+ void Describe_Entity() override;
+#endif // _DEBUG
+};
+
+NS_END
diff --git a/Jusin154_Team3D/Client/Public/Camera_Cinematic.h b/Jusin154_Team3D/Client/Public/Camera_Cinematic.h
index 0366b791a..102fd0af0 100644
--- a/Jusin154_Team3D/Client/Public/Camera_Cinematic.h
+++ b/Jusin154_Team3D/Client/Public/Camera_Cinematic.h
@@ -2,6 +2,7 @@
#include "Client_Define.h"
#include "Camera.h"
+#include "CamPosition_WorldLook.h"
NS_BEGIN(Engine)
class CUnit;
@@ -32,8 +33,8 @@ class CCamera_Cinematic final : public CCamera
virtual void Active_Camera(pair<_float4, _float3>& pairTransitionInfo)override;
void Update_LerpTimer(_float fTimeDelta);
void Set_Priority(_uint iPriority);
- void Set_LookTarget(CUnit* pTarget, const _float4x4* pTargetSocketMatrix);
- void Set_FollowTarget(CUnit* pTarget, const _float4x4* pTargetSocketMatrix);
+ void Set_LookTarget(CGameObject* pTarget, const _float4x4* pTargetSocketMatrix);
+ void Set_FollowTarget(CGameObject* pTarget, const _float4x4* pTargetSocketMatrix);
private:
@@ -65,8 +66,7 @@ class CCamera_Cinematic final : public CCamera
CInfoInstance* m_pInfoInstance = { nullptr };
CCamPosition_Target* m_pLookTargetPart = { nullptr };
CCamPosition_Target* m_pFollowTargetPart = { nullptr };
-
-
+ CCamPosition_WorldLook* m_pWORLD_LOCK_TargetPart = { nullptr };
_bool m_bLerpTranslation = { false };
_float2 m_vLerpTranslationTimer = {};
@@ -84,7 +84,7 @@ class CCamera_Cinematic final : public CCamera
_float2 m_vLerpFovYTimer = { };
#ifdef _DEBUG
unique_ptr m_pSubShape = { nullptr };
- unique_ptr> m_Batch;
+ unique_ptr> m_Batch = { nullptr };
class CModel* m_pModelCom = { nullptr };
class CShader* m_pShaderCom = { nullptr };
#endif // _DEBUG
diff --git a/Jusin154_Team3D/Client/Public/Troll.h b/Jusin154_Team3D/Client/Public/Troll.h
index cbf8a6a45..3d2b19391 100644
--- a/Jusin154_Team3D/Client/Public/Troll.h
+++ b/Jusin154_Team3D/Client/Public/Troll.h
@@ -34,6 +34,7 @@ class CTroll final : public CMonster
virtual _vector Get_LockOnPos() override;
virtual void OnCollision(CGameObject* pOther = nullptr, void* pDesc = nullptr)override;
virtual void OnHit(CGameObject* pOther, CGameObject* pCaller = nullptr)override;
+ virtual void Trigger(CTimeSocket& Socket)override;
private:
void Troll_Trail_Visible(_bool isTrailVisible);
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/CutScene/CarriageIntro.xml b/Jusin154_Team3D/Editor/Bin/Resources/Data/CutScene/CarriageIntro.xml
index 8aed2eae7..4982d2544 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/CutScene/CarriageIntro.xml
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/CutScene/CarriageIntro.xml
@@ -1044,7 +1044,7 @@
-
+
@@ -1193,7 +1193,6 @@
-
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/CutScene/TrollIntroCutScene.xml b/Jusin154_Team3D/Editor/Bin/Resources/Data/CutScene/TrollIntroCutScene.xml
new file mode 100644
index 000000000..acc7e4ff4
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/CutScene/TrollIntroCutScene.xml
@@ -0,0 +1,1277 @@
+
+
+
+
+
+
+
+
+
+
+
+
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ true
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ true
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+ false
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/Jusin154_Team3D/Engine/Private/Transform.cpp b/Jusin154_Team3D/Engine/Private/Transform.cpp
index 4bebf38dc..8d387ab66 100644
--- a/Jusin154_Team3D/Engine/Private/Transform.cpp
+++ b/Jusin154_Team3D/Engine/Private/Transform.cpp
@@ -598,6 +598,48 @@ void CTransform::Free()
}
#ifdef _DEBUG
+void TransformXMLInput(CTransform* pTransform)
+{
+ static _char szInput[256] = "";
+
+ GUI::TextUnformatted("Transform XML:");
+ GUI::InputTextMultiline("##TransformXml", szInput, IM_ARRAYSIZE(szInput), ImVec2(-1.0f, 140.0f));
+
+ GUI::SameLine();
+ GUI::Separator();
+ if (GUI::Button("Parse"))
+ {
+ _string strInput = szInput;
+ string wrapped;
+ wrapped.reserve(strInput.size() + 32);
+ wrapped += "";
+ wrapped += strInput;
+ wrapped += "";
+
+ tinyxml2::XMLDocument doc;
+ doc.Parse(wrapped.c_str());
+ tinyxml2::XMLElement* root = doc.FirstChildElement("Root");
+
+ tinyxml2::XMLElement* transformNode = root->FirstChildElement("Transform");
+
+ tinyxml2::XMLElement* rotNode = transformNode->FirstChildElement("RotQ");
+ tinyxml2::XMLElement* transNode = transformNode->FirstChildElement("Trans");
+
+ _float qx, qy, qz, qw;
+ _float tx, ty, tz;
+ rotNode->QueryFloatAttribute("X", &qx);
+ rotNode->QueryFloatAttribute("Y", &qy);
+ rotNode->QueryFloatAttribute("Z", &qz);
+ rotNode->QueryFloatAttribute("W", &qw);
+ transNode->QueryFloatAttribute("X", &tx);
+ transNode->QueryFloatAttribute("Y", &ty);
+ transNode->QueryFloatAttribute("Z", &tz);
+
+ pTransform->Set_State(STATE::POSITION, XMVectorSet(tx, ty, tz, 1.f));
+ pTransform->RotationQ(XMQuaternionNormalize(XMVectorSet(qx, qy, qz, qw)));
+ }
+}
+
void CTransform::Describe_Entity()
{
//#ifdef 기무리
@@ -609,6 +651,7 @@ void CTransform::Describe_Entity()
XMStoreFloat4(&scale, vScale);
XMStoreFloat4(&rotQ, vRotQ);
XMStoreFloat4(&trans, vTrans);
+ TransformXMLInput(this);
if (GUI::SmallButton("Copy")) {
_char buf[512] = {};
sprintf_s(
diff --git a/Jusin154_Team3D/Engine/Public/TimeSocket.h b/Jusin154_Team3D/Engine/Public/TimeSocket.h
index 762a52fc2..d6ce50e17 100644
--- a/Jusin154_Team3D/Engine/Public/TimeSocket.h
+++ b/Jusin154_Team3D/Engine/Public/TimeSocket.h
@@ -29,6 +29,7 @@ typedef enum class typeTimeSocket_Func {
ROTATION_LERP,
AFFINE_LERP,
TOGGLE_FLAGS,
+ SET_WORLD_LOCKPOSITION,
// CAMERA
SETTING_CAMERA,
@@ -70,13 +71,14 @@ typedef enum class typeTimeSocket_Func {
static constexpr pair g_SocketFuncTypeTable[ENUM_CLASS(TIMESOCKET_FUNC::END) + 1] =
{
// COMMON
- {"TELEPORTATION", TIMESOCKET_FUNC::TELEPORTATION},
- {"TRANSLATION", TIMESOCKET_FUNC::TRANSLATION},
- {"TRANSLATION_LERP", TIMESOCKET_FUNC::TRANSLATION_LERP},
- {"ROTATION", TIMESOCKET_FUNC::ROTATION},
- {"ROTATION_LERP", TIMESOCKET_FUNC::ROTATION_LERP},
- {"AFFINE_LERP", TIMESOCKET_FUNC::AFFINE_LERP},
- {"TOGGLE_FLAGS", TIMESOCKET_FUNC::TOGGLE_FLAGS},
+ {"TELEPORTATION", TIMESOCKET_FUNC::TELEPORTATION},
+ {"TRANSLATION", TIMESOCKET_FUNC::TRANSLATION},
+ {"TRANSLATION_LERP", TIMESOCKET_FUNC::TRANSLATION_LERP},
+ {"ROTATION", TIMESOCKET_FUNC::ROTATION},
+ {"ROTATION_LERP", TIMESOCKET_FUNC::ROTATION_LERP},
+ {"AFFINE_LERP", TIMESOCKET_FUNC::AFFINE_LERP},
+ {"TOGGLE_FLAGS", TIMESOCKET_FUNC::TOGGLE_FLAGS},
+ {"SET_WORLD_LOCKPOSITION", TIMESOCKET_FUNC::SET_WORLD_LOCKPOSITION},
// CAMERA
{"SETTING_CAMERA", TIMESOCKET_FUNC::SETTING_CAMERA},