@@ -163,6 +163,7 @@ call Update_Resources.bat
|
|||||||
<ClInclude Include="..\Public\Barral_Splesh.h" />
|
<ClInclude Include="..\Public\Barral_Splesh.h" />
|
||||||
<ClInclude Include="..\Public\Avadakedavra.h" />
|
<ClInclude Include="..\Public\Avadakedavra.h" />
|
||||||
<ClInclude Include="..\Public\AvadakedavraSide.h" />
|
<ClInclude Include="..\Public\AvadakedavraSide.h" />
|
||||||
|
<ClInclude Include="..\Public\CamPosition_WorldLook.h" />
|
||||||
<ClInclude Include="..\Public\Reparo.h" />
|
<ClInclude Include="..\Public\Reparo.h" />
|
||||||
<ClInclude Include="..\Public\Elf.h" />
|
<ClInclude Include="..\Public\Elf.h" />
|
||||||
<ClInclude Include="..\public\MapElement_Cave.h" />
|
<ClInclude Include="..\public\MapElement_Cave.h" />
|
||||||
@@ -475,6 +476,7 @@ call Update_Resources.bat
|
|||||||
<ClCompile Include="..\Private\Action_Panel.cpp" />
|
<ClCompile Include="..\Private\Action_Panel.cpp" />
|
||||||
<ClCompile Include="..\Private\Avadakedavra.cpp" />
|
<ClCompile Include="..\Private\Avadakedavra.cpp" />
|
||||||
<ClCompile Include="..\Private\AvadakedavraSide.cpp" />
|
<ClCompile Include="..\Private\AvadakedavraSide.cpp" />
|
||||||
|
<ClCompile Include="..\Private\CamPosition_WorldLook.cpp" />
|
||||||
<ClCompile Include="..\Private\Reparo.cpp" />
|
<ClCompile Include="..\Private\Reparo.cpp" />
|
||||||
<ClCompile Include="..\Private\Elf.cpp" />
|
<ClCompile Include="..\Private\Elf.cpp" />
|
||||||
<ClCompile Include="..\private\MapElement_Cave.cpp" />
|
<ClCompile Include="..\private\MapElement_Cave.cpp" />
|
||||||
|
|||||||
@@ -959,6 +959,9 @@
|
|||||||
<ClInclude Include="..\Public\TriggerBox.h">
|
<ClInclude Include="..\Public\TriggerBox.h">
|
||||||
<Filter>02.GameObjects\Environment\Prop\SkyBox\TriggerBox</Filter>
|
<Filter>02.GameObjects\Environment\Prop\SkyBox\TriggerBox</Filter>
|
||||||
</ClInclude>
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\Public\CamPosition_WorldLook.h">
|
||||||
|
<Filter>02.GameObjects\Cameras\CameraPosition\CamPosition_WorldLook</Filter>
|
||||||
|
</ClInclude>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Image Include="Client.ico">
|
<Image Include="Client.ico">
|
||||||
@@ -1965,9 +1968,6 @@
|
|||||||
<Filter Include="02.GameObjects\NPC\Ally\Elf">
|
<Filter Include="02.GameObjects\NPC\Ally\Elf">
|
||||||
<UniqueIdentifier>{9263815e-9651-4ba2-813f-c2a7f207522d}</UniqueIdentifier>
|
<UniqueIdentifier>{9263815e-9651-4ba2-813f-c2a7f207522d}</UniqueIdentifier>
|
||||||
</Filter>
|
</Filter>
|
||||||
<Filter Include="03.InfoInstance\NewFilter1">
|
|
||||||
<UniqueIdentifier>{44a8eee1-6b7f-4c9a-bf92-21f6b90e84c3}</UniqueIdentifier>
|
|
||||||
</Filter>
|
|
||||||
<Filter Include="02.GameObjects\Environment\03.MapElement\Cave">
|
<Filter Include="02.GameObjects\Environment\03.MapElement\Cave">
|
||||||
<UniqueIdentifier>{5599bbbd-12f7-4b40-8e3d-24f869cce464}</UniqueIdentifier>
|
<UniqueIdentifier>{5599bbbd-12f7-4b40-8e3d-24f869cce464}</UniqueIdentifier>
|
||||||
</Filter>
|
</Filter>
|
||||||
@@ -1980,6 +1980,9 @@
|
|||||||
<Filter Include="04.Mechanic\State\Focus\Spell_Learning">
|
<Filter Include="04.Mechanic\State\Focus\Spell_Learning">
|
||||||
<UniqueIdentifier>{26d7f6f4-0b5f-4b9a-9cef-df91b8a485bf}</UniqueIdentifier>
|
<UniqueIdentifier>{26d7f6f4-0b5f-4b9a-9cef-df91b8a485bf}</UniqueIdentifier>
|
||||||
</Filter>
|
</Filter>
|
||||||
|
<Filter Include="02.GameObjects\Cameras\CameraPosition\CamPosition_WorldLook">
|
||||||
|
<UniqueIdentifier>{b3924c52-0c0d-4cd1-94f4-1eb61d2c6c99}</UniqueIdentifier>
|
||||||
|
</Filter>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ClCompile Include="Client.cpp">
|
<ClCompile Include="Client.cpp">
|
||||||
@@ -2856,6 +2859,9 @@
|
|||||||
<ClCompile Include="..\Private\State_Spell_Learning.cpp">
|
<ClCompile Include="..\Private\State_Spell_Learning.cpp">
|
||||||
<Filter>04.Mechanic\State\Focus\Spell_Learning</Filter>
|
<Filter>04.Mechanic\State\Focus\Spell_Learning</Filter>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
|
<ClCompile Include="..\Private\CamPosition_WorldLook.cpp">
|
||||||
|
<Filter>02.GameObjects\Cameras\CameraPosition\CamPosition_WorldLook</Filter>
|
||||||
|
</ClCompile>
|
||||||
<ClCompile Include="..\Private\TriggerBox.cpp">
|
<ClCompile Include="..\Private\TriggerBox.cpp">
|
||||||
<Filter>02.GameObjects\Environment\Prop\SkyBox\TriggerBox</Filter>
|
<Filter>02.GameObjects\Environment\Prop\SkyBox\TriggerBox</Filter>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
|
|||||||
@@ -47,7 +47,7 @@ _bool CCamPosition_Target::IsStalking()
|
|||||||
return nullptr != m_pStalkingTarget;
|
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);
|
SAFE_RELEASE(m_pStalkingTarget);
|
||||||
m_pStalkingTarget = pStalkingTarget;
|
m_pStalkingTarget = pStalkingTarget;
|
||||||
|
|||||||
@@ -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<CameraWorldLook_DESC*>(pArg);
|
||||||
|
Set_Position(pDesc->vPosition);
|
||||||
|
#ifdef _DEBUG
|
||||||
|
m_pSubShape = (GeometricPrimitive::CreateSphere(m_pContext, 1.f, 12, false, false));
|
||||||
|
m_Batch = make_unique<PrimitiveBatch<VertexPositionColor>>(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
|
||||||
@@ -114,8 +114,8 @@ void CCamera_Cinematic::Active_Camera(pair<_float4, _float3>& pairTransitionInfo
|
|||||||
|
|
||||||
void CCamera_Cinematic::Update_LerpTimer(_float fTimeDelta)
|
void CCamera_Cinematic::Update_LerpTimer(_float fTimeDelta)
|
||||||
{
|
{
|
||||||
Lerp_Translation(fTimeDelta);
|
|
||||||
Lerp_Rotation(fTimeDelta);
|
Lerp_Rotation(fTimeDelta);
|
||||||
|
Lerp_Translation(fTimeDelta);
|
||||||
Lerp_FovY(fTimeDelta);
|
Lerp_FovY(fTimeDelta);
|
||||||
if (false == m_bActive) {
|
if (false == m_bActive) {
|
||||||
return;
|
return;
|
||||||
@@ -127,12 +127,12 @@ void CCamera_Cinematic::Set_Priority(_uint iPriority)
|
|||||||
m_iPriority = 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);
|
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);
|
m_pFollowTargetPart->Stalking_Target(pTarget, pTargetSocketMatrix);
|
||||||
}
|
}
|
||||||
@@ -173,11 +173,22 @@ void CCamera_Cinematic::Trigger(CTimeSocket& Socket)
|
|||||||
} break;
|
} break;
|
||||||
case TIMESOCKET_FUNC::LOOK_AT:
|
case TIMESOCKET_FUNC::LOOK_AT:
|
||||||
{
|
{
|
||||||
|
SAFE_RELEASE(m_pWORLD_LOCK_TargetPart);
|
||||||
CUnit* pUnit = (CUnit*)pContents->pOtherTarget;
|
CUnit* pUnit = (CUnit*)pContents->pOtherTarget;
|
||||||
Set_LookTarget(pUnit, pUnit->Get_SocketMatrixPtr(pContents->vParam_12.c_str()));
|
Set_LookTarget(pUnit, pUnit->Get_SocketMatrixPtr(pContents->vParam_12.c_str()));
|
||||||
}break;
|
}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<CCamPosition_WorldLook>(g_iStaticLevel, &Desc, this);
|
||||||
|
Set_LookTarget(m_pWORLD_LOCK_TargetPart, nullptr);
|
||||||
|
}break;
|
||||||
case TIMESOCKET_FUNC::DONT_LOOK_AT:
|
case TIMESOCKET_FUNC::DONT_LOOK_AT:
|
||||||
{
|
{
|
||||||
|
SAFE_RELEASE(m_pWORLD_LOCK_TargetPart);
|
||||||
m_pLookTargetPart->Stop_Stalking();
|
m_pLookTargetPart->Stop_Stalking();
|
||||||
}break;
|
}break;
|
||||||
case TIMESOCKET_FUNC::FOLLOW:
|
case TIMESOCKET_FUNC::FOLLOW:
|
||||||
@@ -451,6 +462,7 @@ void CCamera_Cinematic::Free()
|
|||||||
SAFE_RELEASE(m_pModelCom);
|
SAFE_RELEASE(m_pModelCom);
|
||||||
SAFE_RELEASE(m_pShaderCom);
|
SAFE_RELEASE(m_pShaderCom);
|
||||||
#endif // _DEBUG
|
#endif // _DEBUG
|
||||||
|
SAFE_RELEASE(m_pWORLD_LOCK_TargetPart);
|
||||||
SAFE_RELEASE(m_pLookTargetPart);
|
SAFE_RELEASE(m_pLookTargetPart);
|
||||||
SAFE_RELEASE(m_pFollowTargetPart);
|
SAFE_RELEASE(m_pFollowTargetPart);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -6,6 +6,7 @@
|
|||||||
#include "TriggerBox.h"
|
#include "TriggerBox.h"
|
||||||
#include "Layer.h"
|
#include "Layer.h"
|
||||||
#include "Player.h"
|
#include "Player.h"
|
||||||
|
#include "Troll.h"
|
||||||
#include "TimeSocket.h"
|
#include "TimeSocket.h"
|
||||||
#include "Camera_Cinematic.h"
|
#include "Camera_Cinematic.h"
|
||||||
#include "Ranrok.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/CarriageIntro.xml");
|
||||||
|
Load_CutSceneXML("../Bin/Resources/Data/CutScene/TrollIntroCutScene.xml");
|
||||||
}
|
}
|
||||||
return S_OK;
|
return S_OK;
|
||||||
}
|
}
|
||||||
@@ -437,6 +439,12 @@ void CCutSceneInfo::Load_CutSceneXML(const string& path)
|
|||||||
SocketContents.pEventTarget = pEventTarget;
|
SocketContents.pEventTarget = pEventTarget;
|
||||||
SocketContents.funcEvent = [pEventTarget](CTimeSocket& Socket) { pEventTarget->Trigger(Socket); };
|
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<CTroll>();
|
||||||
|
SocketContents.pEventTarget = pEventTarget;
|
||||||
|
SocketContents.funcEvent = [pEventTarget](CTimeSocket& Socket) { pEventTarget->Trigger(Socket); };
|
||||||
|
}
|
||||||
else if (strcmp(pTargetText, "SYSTEM") == 0)
|
else if (strcmp(pTargetText, "SYSTEM") == 0)
|
||||||
{
|
{
|
||||||
bUseSystem = true;
|
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<CPlayer>();
|
SocketContents.pOtherTarget = m_pGameInstance->Get_Layer(NEXT_LEVEL, SocketContents.wstrLayerName)->Get_Object<CPlayer>();
|
||||||
}
|
}
|
||||||
|
else if (string_view(pTypeIdText) == "ACTOR_TROLL")
|
||||||
|
{
|
||||||
|
SocketContents.pOtherTarget = m_pGameInstance->Get_Layer(NEXT_LEVEL, SocketContents.wstrLayerName)->Get_Object<CTroll>();
|
||||||
|
}
|
||||||
else if (string_view(pTypeIdText) == "ACTOR_CARRIAGE")
|
else if (string_view(pTypeIdText) == "ACTOR_CARRIAGE")
|
||||||
{
|
{
|
||||||
SocketContents.pOtherTarget = m_pGameInstance->Get_Layer(NEXT_LEVEL, SocketContents.wstrLayerName)->Get_Object<CThestralCarriage>();
|
SocketContents.pOtherTarget = m_pGameInstance->Get_Layer(NEXT_LEVEL, SocketContents.wstrLayerName)->Get_Object<CThestralCarriage>();
|
||||||
|
|||||||
@@ -115,8 +115,8 @@ HRESULT CEffectPool::Initialize(void* pArg)
|
|||||||
m_isActiveMonsterEffectCreate = true;
|
m_isActiveMonsterEffectCreate = true;
|
||||||
#endif //
|
#endif //
|
||||||
#ifdef 기무리
|
#ifdef 기무리
|
||||||
m_isActiveEffectCreate = true;
|
m_isActiveEffectCreate = false;
|
||||||
m_isActiveMonsterEffectCreate = true;
|
m_isActiveMonsterEffectCreate = false;
|
||||||
#endif //
|
#endif //
|
||||||
#ifdef 나
|
#ifdef 나
|
||||||
m_isActiveEffectCreate = true;
|
m_isActiveEffectCreate = true;
|
||||||
|
|||||||
@@ -126,7 +126,7 @@ HRESULT CLevel_GamePlay::Initialize(void* pArg)
|
|||||||
_bool bLoadNPC = { true };
|
_bool bLoadNPC = { true };
|
||||||
#ifdef _DEBUG
|
#ifdef _DEBUG
|
||||||
#ifdef 기무리
|
#ifdef 기무리
|
||||||
bLoadNPC = true;
|
bLoadNPC = false;
|
||||||
#endif
|
#endif
|
||||||
#endif // _DEBUG
|
#endif // _DEBUG
|
||||||
if (true == bLoadNPC) {
|
if (true == bLoadNPC) {
|
||||||
@@ -365,7 +365,7 @@ HRESULT CLevel_GamePlay::Ready_Background()
|
|||||||
#ifdef 기무리
|
#ifdef 기무리
|
||||||
isReady_Background = true;
|
isReady_Background = true;
|
||||||
isReady_Hogsmeade = true;
|
isReady_Hogsmeade = true;
|
||||||
isReady_Hogwart = true;
|
isReady_Hogwart = false;
|
||||||
#endif //
|
#endif //
|
||||||
#ifdef 나
|
#ifdef 나
|
||||||
isReady_Background = false;
|
isReady_Background = false;
|
||||||
@@ -1140,8 +1140,8 @@ HRESULT CLevel_GamePlay::Ready_Layer_Npc()
|
|||||||
isLoad_NPC = false;
|
isLoad_NPC = false;
|
||||||
#endif //
|
#endif //
|
||||||
#ifdef 기무리
|
#ifdef 기무리
|
||||||
isLoad_NPC = true;
|
isLoad_NPC = false;
|
||||||
isLoad_RandomNPC = true;
|
isLoad_RandomNPC = false;
|
||||||
#endif //
|
#endif //
|
||||||
#ifdef 나
|
#ifdef 나
|
||||||
isLoad_RandomNPC = true;
|
isLoad_RandomNPC = true;
|
||||||
|
|||||||
@@ -6,6 +6,7 @@
|
|||||||
#include "Light_Main.h"
|
#include "Light_Main.h"
|
||||||
#include "Loader.h"
|
#include "Loader.h"
|
||||||
#include "MainApp.h"
|
#include "MainApp.h"
|
||||||
|
#include "CamPosition_WorldLook.h"
|
||||||
#include "Model.h"
|
#include "Model.h"
|
||||||
|
|
||||||
#include "Broom.h"
|
#include "Broom.h"
|
||||||
@@ -558,9 +559,9 @@ HRESULT CLoader::Loading_For_GamePlay()
|
|||||||
#endif //
|
#endif //
|
||||||
#ifdef 기무리
|
#ifdef 기무리
|
||||||
isLoad_Background = true;
|
isLoad_Background = true;
|
||||||
isLoad_Hogwart = true;
|
isLoad_Hogwart = false;
|
||||||
isLoad_UI_SEQUANTIAL = false;
|
isLoad_UI_SEQUANTIAL = false;
|
||||||
isLoad_NPC = true;
|
isLoad_NPC = false;
|
||||||
isLoad_Monster = true;
|
isLoad_Monster = true;
|
||||||
#endif //
|
#endif //
|
||||||
#ifdef 나
|
#ifdef 나
|
||||||
@@ -2951,6 +2952,10 @@ HRESULT CLoader::Loading_For_GamePlay()
|
|||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (FAILED(m_pGameInstance->Add_Prototype<CCamPosition_WorldLook>(g_iStaticLevel, CCamPosition_WorldLook::Create(m_pDevice, m_pContext)))) {
|
||||||
|
return E_FAIL;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
m_strMessage = TEXT("Model Loading..");
|
m_strMessage = TEXT("Model Loading..");
|
||||||
|
|
||||||
|
|||||||
@@ -542,6 +542,11 @@ void CPlayer::Trigger(CTimeSocket& Socket)
|
|||||||
SOCKETCONTENTS* pContents = &Socket.m_Contents;
|
SOCKETCONTENTS* pContents = &Socket.m_Contents;
|
||||||
switch (pContents->eTypeFunc)
|
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:
|
case TIMESOCKET_FUNC::TRANSLATION:
|
||||||
{
|
{
|
||||||
_vector vNewPos = XMVectorSetW(XMLoadFloat3((_float3*)&pContents->pxTransform.p), 1.f);
|
_vector vNewPos = XMVectorSetW(XMLoadFloat3((_float3*)&pContents->pxTransform.p), 1.f);
|
||||||
|
|||||||
@@ -58,12 +58,12 @@ HRESULT CTriggerBox::Initialize(TRIGGERBOX_DESC* pDesc)
|
|||||||
m_pTransformCom->Set_State(STATE::POSITION, XMVectorSetW(XMLoadFloat4(&pDesc->vPosition_Radius), 1.f));
|
m_pTransformCom->Set_State(STATE::POSITION, XMVectorSetW(XMLoadFloat4(&pDesc->vPosition_Radius), 1.f));
|
||||||
|
|
||||||
#ifdef _DEBUG
|
#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<PrimitiveBatch<VertexPositionColor>>(m_pContext);
|
m_Batch = make_unique<PrimitiveBatch<VertexPositionColor>>(m_pContext);
|
||||||
#endif // _DEBUG
|
#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_pTransformCom->Set_Scale(vScale);
|
||||||
m_vScanTimer.y += m_pGameInstance->Real_Random_Float(0.f, 0.2f);
|
m_vScanTimer.y += m_pGameInstance->Real_Random_Float(0.f, 0.2f);
|
||||||
return S_OK;
|
return S_OK;
|
||||||
@@ -74,7 +74,7 @@ HRESULT CTriggerBox::Scan()
|
|||||||
_float fRadius = m_pTransformCom->Get_Radius();
|
_float fRadius = m_pTransformCom->Get_Radius();
|
||||||
|
|
||||||
PSX::PxOverlapBufferN<32> pxBuffer = {};
|
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);
|
PSX::PxQueryFlag::eDYNAMIC | PSX::PxQueryFlag::eNO_BLOCK, pxBuffer);
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -9,6 +9,7 @@
|
|||||||
#include "CallBack_Troll_HitReport.h"
|
#include "CallBack_Troll_HitReport.h"
|
||||||
#include "EffectParts.h"
|
#include "EffectParts.h"
|
||||||
#include "EffectPool.h"
|
#include "EffectPool.h"
|
||||||
|
#include "TimeSocket.h"
|
||||||
#include "Layer.h"
|
#include "Layer.h"
|
||||||
#include "TrailObject.h"
|
#include "TrailObject.h"
|
||||||
#include "MapElement_Interactable.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<CEffectPool>();
|
m_pEffectPool = m_pGameInstance->Get_Layer(NEXT_LEVEL, TEXT("Layer_EffectPool"))->Get_Object<CEffectPool>();
|
||||||
SAFE_ADDREF(m_pEffectPool);
|
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()
|
HRESULT CTroll::Ready_Components()
|
||||||
{
|
{
|
||||||
CTransform::TRANSFORM_DESC Desc = {};
|
CTransform::TRANSFORM_DESC Desc = {};
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ class CCamPosition_Target final : public CCamPosition
|
|||||||
virtual _vector Get_WorldPostion() override;
|
virtual _vector Get_WorldPostion() override;
|
||||||
virtual void Set_WorldPostion(_vector vPos);
|
virtual void Set_WorldPostion(_vector vPos);
|
||||||
virtual _bool IsStalking();
|
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();
|
virtual void Stop_Stalking();
|
||||||
|
|
||||||
_matrix Get_XMWorldMatrix();
|
_matrix Get_XMWorldMatrix();
|
||||||
@@ -37,7 +37,7 @@ class CCamPosition_Target final : public CCamPosition
|
|||||||
HRESULT Ready_Components(void* pArg);
|
HRESULT Ready_Components(void* pArg);
|
||||||
HRESULT Bind_ShaderResources() override;
|
HRESULT Bind_ShaderResources() override;
|
||||||
|
|
||||||
CUnit* m_pStalkingTarget = { nullptr };
|
CGameObject* m_pStalkingTarget = { nullptr };
|
||||||
const _float4x4* m_pTargetSocketMatrix = { nullptr };
|
const _float4x4* m_pTargetSocketMatrix = { nullptr };
|
||||||
public:
|
public:
|
||||||
static CCamPosition_Target* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
static CCamPosition_Target* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||||
|
|||||||
@@ -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<GeometricPrimitive> m_pSubShape = { nullptr };
|
||||||
|
unique_ptr<PrimitiveBatch<VertexPositionColor>> 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
|
||||||
@@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
#include "Client_Define.h"
|
#include "Client_Define.h"
|
||||||
#include "Camera.h"
|
#include "Camera.h"
|
||||||
|
#include "CamPosition_WorldLook.h"
|
||||||
|
|
||||||
NS_BEGIN(Engine)
|
NS_BEGIN(Engine)
|
||||||
class CUnit;
|
class CUnit;
|
||||||
@@ -32,8 +33,8 @@ class CCamera_Cinematic final : public CCamera
|
|||||||
virtual void Active_Camera(pair<_float4, _float3>& pairTransitionInfo)override;
|
virtual void Active_Camera(pair<_float4, _float3>& pairTransitionInfo)override;
|
||||||
void Update_LerpTimer(_float fTimeDelta);
|
void Update_LerpTimer(_float fTimeDelta);
|
||||||
void Set_Priority(_uint iPriority);
|
void Set_Priority(_uint iPriority);
|
||||||
void Set_LookTarget(CUnit* pTarget, const _float4x4* pTargetSocketMatrix);
|
void Set_LookTarget(CGameObject* pTarget, const _float4x4* pTargetSocketMatrix);
|
||||||
void Set_FollowTarget(CUnit* pTarget, const _float4x4* pTargetSocketMatrix);
|
void Set_FollowTarget(CGameObject* pTarget, const _float4x4* pTargetSocketMatrix);
|
||||||
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
@@ -65,8 +66,7 @@ class CCamera_Cinematic final : public CCamera
|
|||||||
CInfoInstance* m_pInfoInstance = { nullptr };
|
CInfoInstance* m_pInfoInstance = { nullptr };
|
||||||
CCamPosition_Target* m_pLookTargetPart = { nullptr };
|
CCamPosition_Target* m_pLookTargetPart = { nullptr };
|
||||||
CCamPosition_Target* m_pFollowTargetPart = { nullptr };
|
CCamPosition_Target* m_pFollowTargetPart = { nullptr };
|
||||||
|
CCamPosition_WorldLook* m_pWORLD_LOCK_TargetPart = { nullptr };
|
||||||
|
|
||||||
|
|
||||||
_bool m_bLerpTranslation = { false };
|
_bool m_bLerpTranslation = { false };
|
||||||
_float2 m_vLerpTranslationTimer = {};
|
_float2 m_vLerpTranslationTimer = {};
|
||||||
@@ -84,7 +84,7 @@ class CCamera_Cinematic final : public CCamera
|
|||||||
_float2 m_vLerpFovYTimer = { };
|
_float2 m_vLerpFovYTimer = { };
|
||||||
#ifdef _DEBUG
|
#ifdef _DEBUG
|
||||||
unique_ptr<GeometricPrimitive> m_pSubShape = { nullptr };
|
unique_ptr<GeometricPrimitive> m_pSubShape = { nullptr };
|
||||||
unique_ptr<PrimitiveBatch<VertexPositionColor>> m_Batch;
|
unique_ptr<PrimitiveBatch<VertexPositionColor>> m_Batch = { nullptr };
|
||||||
class CModel* m_pModelCom = { nullptr };
|
class CModel* m_pModelCom = { nullptr };
|
||||||
class CShader* m_pShaderCom = { nullptr };
|
class CShader* m_pShaderCom = { nullptr };
|
||||||
#endif // _DEBUG
|
#endif // _DEBUG
|
||||||
|
|||||||
@@ -34,6 +34,7 @@ class CTroll final : public CMonster
|
|||||||
virtual _vector Get_LockOnPos() override;
|
virtual _vector Get_LockOnPos() override;
|
||||||
virtual void OnCollision(CGameObject* pOther = nullptr, void* pDesc = nullptr)override;
|
virtual void OnCollision(CGameObject* pOther = nullptr, void* pDesc = nullptr)override;
|
||||||
virtual void OnHit(CGameObject* pOther, CGameObject* pCaller = nullptr)override;
|
virtual void OnHit(CGameObject* pOther, CGameObject* pCaller = nullptr)override;
|
||||||
|
virtual void Trigger(CTimeSocket& Socket)override;
|
||||||
private:
|
private:
|
||||||
void Troll_Trail_Visible(_bool isTrailVisible);
|
void Troll_Trail_Visible(_bool isTrailVisible);
|
||||||
|
|
||||||
|
|||||||
@@ -1044,7 +1044,7 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
<Socket fStartPosition = "15" >
|
<Socket fStartPosition = "16" >
|
||||||
<Info strEventName = "SET_FSMSTATE" eTypeParam = "NOT_USE" pTarget = "ACTOR_CARRIAGE" eTypeFunc="SET_FSMSTATE"/>
|
<Info strEventName = "SET_FSMSTATE" eTypeParam = "NOT_USE" pTarget = "ACTOR_CARRIAGE" eTypeFunc="SET_FSMSTATE"/>
|
||||||
<Param_0>
|
<Param_0>
|
||||||
<OtherTarget Layer = "" TypeID = ""/>
|
<OtherTarget Layer = "" TypeID = ""/>
|
||||||
@@ -1193,7 +1193,6 @@
|
|||||||
</Param_12>
|
</Param_12>
|
||||||
</Socket>
|
</Socket>
|
||||||
|
|
||||||
|
|
||||||
<Socket fStartPosition = "16">
|
<Socket fStartPosition = "16">
|
||||||
<Info strEventName = "TELEPORTATION" eTypeParam = "TRANSFORM" pTarget = "ACTOR_PLAYER" eTypeFunc="TRANSLATION"/>
|
<Info strEventName = "TELEPORTATION" eTypeParam = "TRANSFORM" pTarget = "ACTOR_PLAYER" eTypeFunc="TRANSLATION"/>
|
||||||
<Param_0>
|
<Param_0>
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -598,6 +598,48 @@ void CTransform::Free()
|
|||||||
}
|
}
|
||||||
#ifdef _DEBUG
|
#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 += "<Root>";
|
||||||
|
wrapped += strInput;
|
||||||
|
wrapped += "</Root>";
|
||||||
|
|
||||||
|
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()
|
void CTransform::Describe_Entity()
|
||||||
{
|
{
|
||||||
//#ifdef 기무리
|
//#ifdef 기무리
|
||||||
@@ -609,6 +651,7 @@ void CTransform::Describe_Entity()
|
|||||||
XMStoreFloat4(&scale, vScale);
|
XMStoreFloat4(&scale, vScale);
|
||||||
XMStoreFloat4(&rotQ, vRotQ);
|
XMStoreFloat4(&rotQ, vRotQ);
|
||||||
XMStoreFloat4(&trans, vTrans);
|
XMStoreFloat4(&trans, vTrans);
|
||||||
|
TransformXMLInput(this);
|
||||||
if (GUI::SmallButton("Copy")) {
|
if (GUI::SmallButton("Copy")) {
|
||||||
_char buf[512] = {};
|
_char buf[512] = {};
|
||||||
sprintf_s(
|
sprintf_s(
|
||||||
|
|||||||
@@ -29,6 +29,7 @@ typedef enum class typeTimeSocket_Func {
|
|||||||
ROTATION_LERP,
|
ROTATION_LERP,
|
||||||
AFFINE_LERP,
|
AFFINE_LERP,
|
||||||
TOGGLE_FLAGS,
|
TOGGLE_FLAGS,
|
||||||
|
SET_WORLD_LOCKPOSITION,
|
||||||
|
|
||||||
// CAMERA
|
// CAMERA
|
||||||
SETTING_CAMERA,
|
SETTING_CAMERA,
|
||||||
@@ -77,6 +78,7 @@ static constexpr pair<string_view, TIMESOCKET_FUNC> g_SocketFuncTypeTable[ENUM_C
|
|||||||
{"ROTATION_LERP", TIMESOCKET_FUNC::ROTATION_LERP},
|
{"ROTATION_LERP", TIMESOCKET_FUNC::ROTATION_LERP},
|
||||||
{"AFFINE_LERP", TIMESOCKET_FUNC::AFFINE_LERP},
|
{"AFFINE_LERP", TIMESOCKET_FUNC::AFFINE_LERP},
|
||||||
{"TOGGLE_FLAGS", TIMESOCKET_FUNC::TOGGLE_FLAGS},
|
{"TOGGLE_FLAGS", TIMESOCKET_FUNC::TOGGLE_FLAGS},
|
||||||
|
{"SET_WORLD_LOCKPOSITION", TIMESOCKET_FUNC::SET_WORLD_LOCKPOSITION},
|
||||||
|
|
||||||
// CAMERA
|
// CAMERA
|
||||||
{"SETTING_CAMERA", TIMESOCKET_FUNC::SETTING_CAMERA},
|
{"SETTING_CAMERA", TIMESOCKET_FUNC::SETTING_CAMERA},
|
||||||
|
|||||||
Reference in New Issue
Block a user