@@ -174,6 +174,7 @@ call Update_Resources.bat
|
||||
<ClInclude Include="..\Public\BombardSide.h" />
|
||||
<ClInclude Include="..\Public\LeviosoSide.h" />
|
||||
<ClInclude Include="..\public\MapElement.h" />
|
||||
<ClInclude Include="..\public\MapElement_Interactable.h" />
|
||||
<ClInclude Include="..\public\MapElement_Light.h" />
|
||||
<ClInclude Include="..\Public\Potion.h" />
|
||||
<ClInclude Include="..\Public\NomalJapSide.h" />
|
||||
@@ -298,6 +299,7 @@ call Update_Resources.bat
|
||||
<ClCompile Include="..\Private\BombardSide.cpp" />
|
||||
<ClCompile Include="..\Private\LeviosoSide.cpp" />
|
||||
<ClCompile Include="..\private\MapElement.cpp" />
|
||||
<ClCompile Include="..\private\MapElement_Interactable.cpp" />
|
||||
<ClCompile Include="..\private\MapElement_Light.cpp" />
|
||||
<ClCompile Include="..\Private\Potion.cpp" />
|
||||
<ClCompile Include="..\Private\NomalJapSide.cpp" />
|
||||
|
||||
@@ -367,6 +367,9 @@
|
||||
<ClInclude Include="..\Public\Goblin_Dagger.h">
|
||||
<Filter>02.GameObjects\Item\Goblin_Dagger</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\public\MapElement_Interactable.h">
|
||||
<Filter>02.GameObjects\Environment\03.MapElement\Interactable</Filter>
|
||||
</ClInclude>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Image Include="Client.ico">
|
||||
@@ -782,6 +785,9 @@
|
||||
<Filter Include="01.Levels\01.Logo\02.GamePlay">
|
||||
<UniqueIdentifier>{7e641382-9dfa-4da7-a8c8-a3ee06360e7a}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="02.GameObjects\Environment\03.MapElement\Interactable">
|
||||
<UniqueIdentifier>{17eaf081-6fbf-4965-b04d-10749e6032c6}</UniqueIdentifier>
|
||||
</Filter>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="Client.cpp">
|
||||
@@ -1142,6 +1148,10 @@
|
||||
<Filter>02.GameObjects\UI\Spell_Canvas\Spell_Panel\Spell_Drag</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\private\MapContainer.cpp" />
|
||||
<ClCompile Include="..\private\MapContainer.cpp" />
|
||||
<ClCompile Include="..\private\MapElement_Interactable.cpp">
|
||||
<Filter>02.GameObjects\Environment\03.MapElement\Interactable</Filter>
|
||||
</ClCompile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ResourceCompile Include="Client.rc">
|
||||
|
||||
@@ -88,6 +88,10 @@ HRESULT CInfoInstance::Load_LightElements(const _char* pFilePath)
|
||||
{
|
||||
return m_pMapInfo->Load_LightElements(pFilePath);
|
||||
}
|
||||
HRESULT CInfoInstance::Load_InteractableElements(const _char* pFileName)
|
||||
{
|
||||
return m_pMapInfo->Load_InteractableElements(pFileName);
|
||||
}
|
||||
#pragma endregion
|
||||
|
||||
#pragma region SPELL_INFO
|
||||
|
||||
@@ -168,7 +168,13 @@ HRESULT CLevel_GamePlay::Ready_Background()
|
||||
/* 조명 오브젝트 */
|
||||
CInfoInstance::GetInstance()->Load_LightElements("LightElement");
|
||||
|
||||
|
||||
/* 상호작용 오브젝트 */
|
||||
CInfoInstance::GetInstance()->Load_InteractableElements("E_INTER_Barrel");
|
||||
CInfoInstance::GetInstance()->Load_InteractableElements("E_INTER_PostPackage_B");
|
||||
CInfoInstance::GetInstance()->Load_InteractableElements("E_INTER_PostPackage_F");
|
||||
CInfoInstance::GetInstance()->Load_InteractableElements("E_INTER_TeaShopTable");
|
||||
CInfoInstance::GetInstance()->Load_InteractableElements("E_INTER_TeaShopChair");
|
||||
|
||||
CInstancedProp::INSTANCE_PROP_DESC Desc = {};
|
||||
|
||||
/* InstanceProp Oak_Tree*/
|
||||
|
||||
@@ -124,6 +124,7 @@
|
||||
#include "MapObject_Collision.h"
|
||||
#include "InstancedProp.h"
|
||||
#include "MapElement_Light.h"
|
||||
#include "MapElement_Interactable.h"
|
||||
|
||||
#pragma endregion
|
||||
|
||||
@@ -493,6 +494,27 @@ HRESULT CLoader::Loading_For_GamePlay()
|
||||
".bin", false
|
||||
));
|
||||
}
|
||||
{/* Barrel */
|
||||
jobMapModels.emplace_back(Deferred_FolderLoad(
|
||||
"../Bin/Resources/Models/MapMesh/Game/Environment/Objects/Meshes",
|
||||
".bin", false
|
||||
));
|
||||
/* Box */
|
||||
jobMapModels.emplace_back(Deferred_FolderLoad(
|
||||
"../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/Common/Meshes/MiscProps",
|
||||
".bin", false
|
||||
));
|
||||
/* TeaShop Table */
|
||||
jobMapModels.emplace_back(Deferred_FolderLoad(
|
||||
"../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/Common/Meshes/Tables",
|
||||
".bin", false
|
||||
));
|
||||
/* TeaShop Chair*/
|
||||
jobMapModels.emplace_back(Deferred_FolderLoad(
|
||||
"../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/Common/Meshes/Chairs",
|
||||
".bin", false
|
||||
));
|
||||
}
|
||||
}
|
||||
|
||||
#pragma endregion
|
||||
@@ -1201,6 +1223,11 @@ HRESULT CLoader::Loading_For_GamePlay()
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
Desc.ePxRigidBodyFlags = { PSX::PxRigidBodyFlag::eKINEMATIC };
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("PHYSX_DYNAMIC_BOX_KIN"), CRigidBody_Dynamic::Create(m_pDevice, m_pContext, Desc)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Box"),
|
||||
CModel::Create(m_pDevice, m_pContext, MODEL::NONANIM, "../Bin/Resources/Models/Box/Box.bin", XMMatrixScaling(0.01f, 0.01f, 0.01f) * XMMatrixIdentity())))) {
|
||||
return E_FAIL;
|
||||
@@ -1976,6 +2003,10 @@ HRESULT CLoader::Loading_For_GamePlay()
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CMapElement_Light>(g_iStaticLevel, CMapElement_Light::Create(m_pDevice, m_pContext))))
|
||||
return E_FAIL;
|
||||
|
||||
/* For.Prototype_GameObject_MapElement_Interactable */
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CMapElement_Interactable>(g_iStaticLevel, CMapElement_Interactable::Create(m_pDevice, m_pContext))))
|
||||
return E_FAIL;
|
||||
|
||||
#pragma endregion // MAP PROTOTYPE
|
||||
|
||||
#pragma region ACTOR PROTOTYPE
|
||||
|
||||
@@ -0,0 +1,201 @@
|
||||
#include "pch.h"
|
||||
#include "MapElement_Interactable.h"
|
||||
|
||||
#include "GameInstance.h"
|
||||
|
||||
CMapElement_Interactable::CMapElement_Interactable(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
: CMapElement{ pDevice, pContext }
|
||||
{
|
||||
}
|
||||
|
||||
CMapElement_Interactable::CMapElement_Interactable(const CMapElement_Interactable& rhs)
|
||||
: CMapElement(rhs)
|
||||
{
|
||||
}
|
||||
|
||||
HRESULT CMapElement_Interactable::Initialize_Prototype()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CMapElement_Interactable::Initialize(void* pArg)
|
||||
{
|
||||
ELEMENT_INTERACTABLE_DESC* pDesc = static_cast<ELEMENT_INTERACTABLE_DESC*>(pArg);
|
||||
|
||||
m_iMaxLodLevel = pDesc->iMaxLodLevel;
|
||||
|
||||
for (_uint i = 0; i < m_iMaxLodLevel + 1; i++)
|
||||
{
|
||||
m_ModelPrototypeTags.push_back(pDesc->ModelPrototypeTags[i]);
|
||||
//m_ModelPathIndices.push_back((*pDesc->pModelPathIndices)[i]);
|
||||
}
|
||||
|
||||
if (FAILED(__super::Initialize(pArg)))
|
||||
return E_FAIL;
|
||||
|
||||
if (FAILED(Ready_Components(pArg)))
|
||||
return E_FAIL;
|
||||
|
||||
m_pTransformCom->Set_State(STATE::POSITION, XMVectorSetW(XMLoadFloat3(&pDesc->vPosition), 1.f));
|
||||
m_pTransformCom->Set_Scale(pDesc->vScale);
|
||||
m_pTransformCom->Rotation(XMConvertToRadians(pDesc->vRotation.x), XMConvertToRadians(pDesc->vRotation.y), XMConvertToRadians(pDesc->vRotation.z));
|
||||
|
||||
m_pActor = static_cast<PSX::PxRigidDynamic*>(m_pRigidBody->Get_Actor());
|
||||
|
||||
static_cast<CRigidBody_Dynamic*>(m_pRigidBody)->Set_HalfGeometryInfo(pDesc->vBoxSize);
|
||||
static_cast<CRigidBody_Dynamic*>(m_pRigidBody)->Move_LocalPos(_float4(0.f, 0.f, 0.f, 0.f), pDesc->vBoxLocalPosition);
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CMapElement_Interactable::Priority_Update(_float fTimeDelta)
|
||||
{
|
||||
}
|
||||
|
||||
void CMapElement_Interactable::Update(_float fTimeDelta)
|
||||
{
|
||||
}
|
||||
|
||||
void CMapElement_Interactable::Late_Update(_float fTimeDelta)
|
||||
{
|
||||
|
||||
if (m_pGameInstance->isIn_WorldFrustum(Get_WorldPostion(), m_pModelComs[0]->Get_Radius())) {
|
||||
m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this);
|
||||
}
|
||||
}
|
||||
|
||||
HRESULT CMapElement_Interactable::Render()
|
||||
{
|
||||
if (FAILED(Bind_ShaderResources()))
|
||||
return E_FAIL;
|
||||
|
||||
_uint iNumMeshes = m_pModelComs[m_iLodIndex]->Get_NumMeshes();
|
||||
|
||||
for (_uint i = 0; i < iNumMeshes; i++)
|
||||
{
|
||||
if (FAILED(m_pModelComs[0]->Bind_Material(i, m_pShaderCom))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_MESH::DEFAULT)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pModelComs[m_iLodIndex]->Render(i))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
}
|
||||
|
||||
#ifdef _DEBUG
|
||||
if (FAILED(m_pRigidBody->Render())) {
|
||||
return E_FAIL;
|
||||
}
|
||||
#endif // _DEBUG
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CMapElement_Interactable::Ready_Components(void* pArg)
|
||||
{
|
||||
if (FAILED(__super::Ready_Components(pArg))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
for (_uint i = 0; i < m_iMaxLodLevel + 1; ++i)
|
||||
{
|
||||
CModel* pModel = { nullptr };
|
||||
|
||||
/* Com_Model */
|
||||
if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, m_ModelPrototypeTags[i],
|
||||
reinterpret_cast<CComponent**>(&pModel))))
|
||||
return E_FAIL;
|
||||
|
||||
m_pModelComs.push_back(pModel);
|
||||
}
|
||||
|
||||
/* Com_Shader */
|
||||
if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, FX_MESH,
|
||||
reinterpret_cast<CComponent**>(&m_pShaderCom))))
|
||||
return E_FAIL;
|
||||
|
||||
|
||||
ELEMENT_INTERACTABLE_DESC* pPhysXDummyDesc = static_cast<ELEMENT_INTERACTABLE_DESC*>(pArg);
|
||||
|
||||
// RIGID_BODY
|
||||
CRigidBody_Dynamic::RIGIDBODY_DYNAMIC_DESC Desc{};
|
||||
Desc.iSubKind = ENUM_CLASS(PXOBJECT::BOX);//pPhysXDummyDesc->iSubKind;
|
||||
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("PHYSX_DYNAMIC_BOX_KIN"), (CComponent**)&m_pRigidBody, &Desc))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CMapElement_Interactable::Bind_ShaderResources()
|
||||
{
|
||||
if (FAILED(m_pShaderCom->Bind_Matrix("g_WorldMatrix", m_pTransformCom->Get_WorldMatrixPtr()))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::VIEW)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::PROJ)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
CMapElement_Interactable* CMapElement_Interactable::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
{
|
||||
CMapElement_Interactable* pInstance = new CMapElement_Interactable(pDevice, pContext);
|
||||
|
||||
if (FAILED(pInstance->Initialize_Prototype()))
|
||||
{
|
||||
MSG_BOX("Failed to Created : CMapElement_Interactable");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
CGameObject* CMapElement_Interactable::Clone(void* pArg, CGameObject* pOwner)
|
||||
{
|
||||
CMapElement_Interactable* pInstance = new CMapElement_Interactable(*this);
|
||||
pInstance->m_pOwner = pOwner;
|
||||
if (FAILED(pInstance->Initialize(pArg)))
|
||||
{
|
||||
MSG_BOX("Failed to Cloned : CMapElement_Interactable");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
void CMapElement_Interactable::Free()
|
||||
{
|
||||
if (nullptr != m_pRigidBody) {
|
||||
m_pGameInstance->Release_Actor(*m_pRigidBody->Get_Actor());
|
||||
}
|
||||
__super::Free();
|
||||
|
||||
SAFE_RELEASE(m_pRigidBody);
|
||||
SAFE_RELEASE(m_pShaderCom);
|
||||
|
||||
for (auto& pModel : m_pModelComs)
|
||||
SAFE_RELEASE(pModel);
|
||||
}
|
||||
|
||||
#ifdef _DEBUG
|
||||
void CMapElement_Interactable::Describe_Entity()
|
||||
{
|
||||
|
||||
}
|
||||
#endif // _DEBUG
|
||||
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
#include "MapObject_Render.h"
|
||||
#include "MapObject_Collision.h"
|
||||
#include "MapElement_Light.h"
|
||||
#include "MapElement_Interactable.h"
|
||||
#include "Layer.h"
|
||||
|
||||
CMapInfo::CMapInfo()
|
||||
@@ -392,8 +393,72 @@ HRESULT CMapInfo::Load_LightElements(const _char* pFileName)
|
||||
MSG_BOX("Successed to Load File");
|
||||
#endif
|
||||
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CMapInfo::Load_InteractableElements(const _char* pFileName)
|
||||
{
|
||||
tinyxml2::XMLDocument xmlDoc;
|
||||
|
||||
string strPath = "../Bin/Resources/Data/Map/" + string(pFileName) + ".xml";
|
||||
|
||||
if ((tinyxml2::XML_SUCCESS != xmlDoc.LoadFile(strPath.c_str())))
|
||||
return E_FAIL;
|
||||
|
||||
tinyxml2::XMLElement* root = xmlDoc.FirstChildElement("Element_Interactable");
|
||||
|
||||
if (nullptr == root)
|
||||
{
|
||||
MSG_BOX("Failed to Find root");
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
for (auto* Object = root->FirstChildElement("Object"); Object; Object = Object->NextSiblingElement("Object"))
|
||||
{
|
||||
CMapElement_Interactable::ELEMENT_INTERACTABLE_DESC Desc = {};
|
||||
|
||||
/* Model Prototypes */
|
||||
Object->QueryUnsignedAttribute("Lod_Level", &Desc.iMaxLodLevel);
|
||||
Object->QueryUnsignedAttribute("Lod_Level", &Desc.iInteractableID);
|
||||
|
||||
string strTag = {};
|
||||
for (auto* PrototypeTag = Object->FirstChildElement("PrototypeTag"); PrototypeTag; PrototypeTag = PrototypeTag->NextSiblingElement("PrototypeTag"))
|
||||
{
|
||||
strTag = PrototypeTag->GetText();
|
||||
|
||||
Desc.ModelPrototypeTags.push_back(CMyTools::ToWstring(strTag));
|
||||
}
|
||||
|
||||
/* Transform */
|
||||
auto* Position = Object->FirstChildElement("Position");
|
||||
Position->QueryFloatAttribute("x", &Desc.vPosition.x);
|
||||
Position->QueryFloatAttribute("y", &Desc.vPosition.y);
|
||||
Position->QueryFloatAttribute("z", &Desc.vPosition.z);
|
||||
|
||||
auto* Scale = Object->FirstChildElement("Scale");
|
||||
Scale->QueryFloatAttribute("x", &Desc.vScale.x);
|
||||
Scale->QueryFloatAttribute("y", &Desc.vScale.y);
|
||||
Scale->QueryFloatAttribute("z", &Desc.vScale.z);
|
||||
|
||||
auto* Rotation = Object->FirstChildElement("Rotation");
|
||||
Rotation->QueryFloatAttribute("x", &Desc.vRotation.x);
|
||||
Rotation->QueryFloatAttribute("y", &Desc.vRotation.y);
|
||||
Rotation->QueryFloatAttribute("z", &Desc.vRotation.z);
|
||||
|
||||
auto* HalfGeometryInfo = Object->FirstChildElement("HalfGeometryInfo");
|
||||
HalfGeometryInfo->QueryFloatAttribute("x", &Desc.vBoxSize.x);
|
||||
HalfGeometryInfo->QueryFloatAttribute("y", &Desc.vBoxSize.y);
|
||||
HalfGeometryInfo->QueryFloatAttribute("z", &Desc.vBoxSize.z);
|
||||
|
||||
auto* LocalTranslation = Object->FirstChildElement("LocalTranslation");
|
||||
LocalTranslation->QueryFloatAttribute("x", &Desc.vBoxLocalPosition.x);
|
||||
LocalTranslation->QueryFloatAttribute("y", &Desc.vBoxLocalPosition.y);
|
||||
LocalTranslation->QueryFloatAttribute("z", &Desc.vBoxLocalPosition.z);
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CMapElement_Interactable>(g_iStaticLevel, NEXT_LEVEL, LAYER_INTERACTABLE, &Desc)))
|
||||
return E_FAIL;
|
||||
}
|
||||
//MSG_BOX("Successed to Create Interactalbe Element");
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
@@ -41,6 +41,7 @@ namespace Client
|
||||
INPUT_TAB,
|
||||
END
|
||||
};
|
||||
enum class ELEMENT_INTERACTABLE_ID { BARREL, BOX, TABLE, END };
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -58,6 +58,7 @@ namespace Client {
|
||||
#define LAYER_ITEM TEXT("Layer_Item")
|
||||
#define LAYER_EFFECTPOOL TEXT("Layer_EffectPool")
|
||||
#define LAYER_LIGHT TEXT("Layer_Light")
|
||||
#define LAYER_INTERACTABLE TEXT("Layer_Interactable")
|
||||
|
||||
#define LAYER_MAPOBJECTMANAGER TEXT("Layer_MapObjectManager")
|
||||
|
||||
|
||||
@@ -41,6 +41,7 @@ DECLARE_SINGLETON(CInfoInstance)
|
||||
#pragma region MAP_INFO
|
||||
HRESULT Load_MapObjects(const _char* pFilePath);
|
||||
HRESULT Load_LightElements(const _char* pFilePath);
|
||||
HRESULT Load_InteractableElements(const _char* pFileName);
|
||||
#pragma endregion
|
||||
#pragma region Spell_INFO
|
||||
HRESULT Load_SpellInfo(const _char* pFilePath);
|
||||
|
||||
@@ -0,0 +1,52 @@
|
||||
#pragma once
|
||||
|
||||
#include "Client_Define.h"
|
||||
#include "MapElement.h"
|
||||
|
||||
NS_BEGIN(Client)
|
||||
|
||||
class CMapElement_Interactable final : public CMapElement
|
||||
{
|
||||
public:
|
||||
typedef struct tagElement_Interactable_Desc : MAPELEMENT_DESC
|
||||
{
|
||||
_uint iInteractableID = {};
|
||||
_uint iSubKind = {};
|
||||
_float3 vBoxLocalPosition;
|
||||
_float3 vBoxSize;
|
||||
}ELEMENT_INTERACTABLE_DESC;
|
||||
|
||||
private:
|
||||
CMapElement_Interactable(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
CMapElement_Interactable(const CMapElement_Interactable& rhs);
|
||||
virtual ~CMapElement_Interactable() = 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;
|
||||
|
||||
private:
|
||||
ELEMENT_INTERACTABLE_ID m_eInteractableID = { ELEMENT_INTERACTABLE_ID::END };
|
||||
|
||||
class CRigidBody* m_pRigidBody = { nullptr };
|
||||
PSX::PxRigidDynamic* m_pActor = { nullptr };
|
||||
|
||||
|
||||
private:
|
||||
virtual HRESULT Initialize_Prototype() override;
|
||||
virtual HRESULT Initialize(void* pArg) override;
|
||||
virtual HRESULT Ready_Components(void* pArg) override;
|
||||
virtual HRESULT Bind_ShaderResources() override;
|
||||
|
||||
public:
|
||||
static CMapElement_Interactable* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
|
||||
virtual void Free() override;
|
||||
#ifdef _DEBUG
|
||||
void Describe_Entity() override;
|
||||
#endif // _DEBUG
|
||||
};
|
||||
|
||||
NS_END
|
||||
@@ -23,6 +23,7 @@ class CMapInfo final : public CBase
|
||||
HRESULT Load_MapRenderObjects(tinyxml2::XMLElement* Container, class CMapContainer* pContainerObject);
|
||||
HRESULT Load_MapCollisionObjects(tinyxml2::XMLElement* Container, class CMapContainer* pContainerObject);
|
||||
HRESULT Load_LightElements(const _char* pFileName);
|
||||
HRESULT Load_InteractableElements(const _char* pFileName);
|
||||
|
||||
private:
|
||||
CGameInstance* m_pGameInstance = { nullptr };
|
||||
|
||||
@@ -3902,4 +3902,73 @@
|
||||
<Rotation x="9.999999" y="48" z="-7.4653044"/>
|
||||
</Collision>
|
||||
</Container>
|
||||
<Container Name="E_INTER_Barrel">
|
||||
<Position x="0" y="0" z="0"/>
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
<PartObject Lod_Level="2" Key_Index="0" Render_Type="0">
|
||||
<PrototypeTag>Prototype_GameObject_SM_Prop_Barrel_Breakable_B_Oppungo</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_Prop_Barrel_Breakable_B_Oppungo_Lod1</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_Prop_Barrel_Breakable_B_Oppungo_Lod2</PrototypeTag>
|
||||
<Position x="49.594646" y="4.296145" z="88.307922"/>
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
</PartObject>
|
||||
<PartObject Lod_Level="2" Key_Index="1" Render_Type="0">
|
||||
<PrototypeTag>Prototype_GameObject_SM_Prop_Barrel_Breakable_B_Oppungo</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_Prop_Barrel_Breakable_B_Oppungo_Lod1</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_Prop_Barrel_Breakable_B_Oppungo_Lod2</PrototypeTag>
|
||||
<Position x="48.834179" y="4.3268456" z="88.832092"/>
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
</PartObject>
|
||||
<PartObject Lod_Level="2" Key_Index="2" Render_Type="0">
|
||||
<PrototypeTag>Prototype_GameObject_SM_Prop_Barrel_Breakable_B_Oppungo</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_Prop_Barrel_Breakable_B_Oppungo_Lod1</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_Prop_Barrel_Breakable_B_Oppungo_Lod2</PrototypeTag>
|
||||
<Position x="48.689041" y="4.3344998" z="87.929108"/>
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
</PartObject>
|
||||
<PartObject Lod_Level="2" Key_Index="3" Render_Type="0">
|
||||
<PrototypeTag>Prototype_GameObject_SM_Prop_Barrel_Breakable_B_Oppungo</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_Prop_Barrel_Breakable_B_Oppungo_Lod1</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_Prop_Barrel_Breakable_B_Oppungo_Lod2</PrototypeTag>
|
||||
<Position x="55.531239" y="4.3071084" z="79.951347"/>
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
</PartObject>
|
||||
<PartObject Lod_Level="2" Key_Index="4" Render_Type="0">
|
||||
<PrototypeTag>Prototype_GameObject_SM_Prop_Barrel_Breakable_B_Oppungo</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_Prop_Barrel_Breakable_B_Oppungo_Lod1</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_Prop_Barrel_Breakable_B_Oppungo_Lod2</PrototypeTag>
|
||||
<Position x="56.308533" y="4.8597279" z="78.474571"/>
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
</PartObject>
|
||||
<PartObject Lod_Level="2" Key_Index="5" Render_Type="0">
|
||||
<PrototypeTag>Prototype_GameObject_SM_Prop_Barrel_Breakable_B_Oppungo</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_Prop_Barrel_Breakable_B_Oppungo_Lod1</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_Prop_Barrel_Breakable_B_Oppungo_Lod2</PrototypeTag>
|
||||
<Position x="130.90434" y="15.971315" z="128.14977"/>
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
</PartObject>
|
||||
<PartObject Lod_Level="2" Key_Index="6" Render_Type="0">
|
||||
<PrototypeTag>Prototype_GameObject_SM_Prop_Barrel_Breakable_B_Oppungo</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_Prop_Barrel_Breakable_B_Oppungo_Lod1</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_Prop_Barrel_Breakable_B_Oppungo_Lod2</PrototypeTag>
|
||||
<Position x="130.68071" y="16.224852" z="129.22983"/>
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
</PartObject>
|
||||
<PartObject Lod_Level="2" Key_Index="7" Render_Type="0">
|
||||
<PrototypeTag>Prototype_GameObject_SM_Prop_Barrel_Breakable_B_Oppungo</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_Prop_Barrel_Breakable_B_Oppungo_Lod1</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_Prop_Barrel_Breakable_B_Oppungo_Lod2</PrototypeTag>
|
||||
<Position x="130.09045" y="16.596691" z="135.05501"/>
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
</PartObject>
|
||||
</Container>
|
||||
</Land>
|
||||
|
||||
@@ -0,0 +1,43 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<Element_Interactable>
|
||||
<Object Type="2" ID="1" Lod_Level="0">
|
||||
<PrototypeTag>Prototype_GameObject_SM_Prop_Barrel_Breakable_B_Oppungo</PrototypeTag>
|
||||
<Position x="129.81247" y="16.543718" z="134.28247"/>
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
<HalfGeometryInfo x="0.30000001" y="0.37" z="0.30000001"/>
|
||||
<LocalTranslation x="0" y="0.5" z="0"/>
|
||||
</Object>
|
||||
<Object Type="2" ID="1" Lod_Level="0">
|
||||
<PrototypeTag>Prototype_GameObject_SM_Prop_Barrel_Breakable_B_Oppungo</PrototypeTag>
|
||||
<Position x="130.88289" y="15.983612" z="128.08716"/>
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
<HalfGeometryInfo x="0.30000001" y="0.37" z="0.30000001"/>
|
||||
<LocalTranslation x="0" y="0.5" z="0"/>
|
||||
</Object>
|
||||
<Object Type="2" ID="1" Lod_Level="0">
|
||||
<PrototypeTag>Prototype_GameObject_SM_Prop_Barrel_Breakable_B_Oppungo</PrototypeTag>
|
||||
<Position x="130.11172" y="16.369488" z="133.53946"/>
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
<HalfGeometryInfo x="0.30000001" y="0.37" z="0.30000001"/>
|
||||
<LocalTranslation x="0" y="0.5" z="0"/>
|
||||
</Object>
|
||||
<Object Type="2" ID="1" Lod_Level="0">
|
||||
<PrototypeTag>Prototype_GameObject_SM_Prop_Barrel_Breakable_B_Oppungo</PrototypeTag>
|
||||
<Position x="55.396034" y="4.3083305" z="79.496262"/>
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
<HalfGeometryInfo x="0.30000001" y="0.37" z="0.30000001"/>
|
||||
<LocalTranslation x="0" y="0.5" z="0"/>
|
||||
</Object>
|
||||
<Object Type="2" ID="1" Lod_Level="0">
|
||||
<PrototypeTag>Prototype_GameObject_SM_Prop_Barrel_Breakable_B_Oppungo</PrototypeTag>
|
||||
<Position x="56.6394" y="4.2921305" z="79.00148"/>
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
<HalfGeometryInfo x="0.30000001" y="0.37" z="0.30000001"/>
|
||||
<LocalTranslation x="0" y="0.5" z="0"/>
|
||||
</Object>
|
||||
</Element_Interactable>
|
||||
@@ -0,0 +1,59 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<Element_Interactable>
|
||||
<Object Type="2" ID="2" Lod_Level="0">
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_OwlPost_Package_B</PrototypeTag>
|
||||
<Position x="108.8686" y="14.881624" z="114.76772"/>
|
||||
<Scale x="1.0000204" y="1" z="1.0000204"/>
|
||||
<Rotation x="0" y="135" z="0"/>
|
||||
<HalfGeometryInfo x="0.23" y="0.23" z="0.2"/>
|
||||
<LocalTranslation x="-0.0099999998" y="0.2" z="0"/>
|
||||
</Object>
|
||||
<Object Type="2" ID="2" Lod_Level="0">
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_OwlPost_Package_B</PrototypeTag>
|
||||
<Position x="109.45074" y="14.913768" z="114.48667"/>
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
<HalfGeometryInfo x="0.23" y="0.23" z="0.2"/>
|
||||
<LocalTranslation x="-0.0099999998" y="0.2" z="0"/>
|
||||
</Object>
|
||||
<Object Type="2" ID="2" Lod_Level="0">
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_OwlPost_Package_B</PrototypeTag>
|
||||
<Position x="104.27048" y="15.26092" z="116.47382"/>
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
<HalfGeometryInfo x="0.23" y="0.23" z="0.2"/>
|
||||
<LocalTranslation x="-0.0099999998" y="0.2" z="0"/>
|
||||
</Object>
|
||||
<Object Type="2" ID="2" Lod_Level="0">
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_OwlPost_Package_B</PrototypeTag>
|
||||
<Position x="103.42465" y="15.364328" z="115.0511"/>
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="0" y="60" z="0"/>
|
||||
<HalfGeometryInfo x="0.23" y="0.23" z="0.2"/>
|
||||
<LocalTranslation x="-0.0099999998" y="0.2" z="0"/>
|
||||
</Object>
|
||||
<Object Type="2" ID="2" Lod_Level="0">
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_OwlPost_Package_B</PrototypeTag>
|
||||
<Position x="104.1671" y="15.683837" z="116.41785"/>
|
||||
<Scale x="0.9999882" y="1" z="0.9999882"/>
|
||||
<Rotation x="0" y="120" z="0"/>
|
||||
<HalfGeometryInfo x="0.23" y="0.23" z="0.2"/>
|
||||
<LocalTranslation x="-0.0099999998" y="0.2" z="0"/>
|
||||
</Object>
|
||||
<Object Type="2" ID="2" Lod_Level="0">
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_OwlPost_Package_B</PrototypeTag>
|
||||
<Position x="109.21941" y="15.356162" z="114.69065"/>
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="0" y="30" z="0"/>
|
||||
<HalfGeometryInfo x="0.23" y="0.23" z="0.2"/>
|
||||
<LocalTranslation x="-0.0099999998" y="0.2" z="0"/>
|
||||
</Object>
|
||||
<Object Type="2" ID="2" Lod_Level="0">
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_OwlPost_Package_B</PrototypeTag>
|
||||
<Position x="109.56142" y="15.268259" z="115.72368"/>
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
<HalfGeometryInfo x="0.23" y="0.23" z="0.2"/>
|
||||
<LocalTranslation x="-0.0099999998" y="0.2" z="0"/>
|
||||
</Object>
|
||||
</Element_Interactable>
|
||||
@@ -0,0 +1,35 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<Element_Interactable>
|
||||
<Object Type="2" ID="2" Lod_Level="0">
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_OwlPost_Package_F</PrototypeTag>
|
||||
<Position x="104.85222" y="15.235958" z="116.2313"/>
|
||||
<Scale x="0.99999207" y="1" z="0.99999207"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
<HalfGeometryInfo x="0.1" y="0.079999998" z="0.23999999"/>
|
||||
<LocalTranslation x="-0.0099999998" y="0.079999998" z="0"/>
|
||||
</Object>
|
||||
<Object Type="2" ID="2" Lod_Level="0">
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_OwlPost_Package_F</PrototypeTag>
|
||||
<Position x="108.67394" y="15.255487" z="116.1109"/>
|
||||
<Scale x="0.99999863" y="1" z="0.99999863"/>
|
||||
<Rotation x="0" y="102" z="0"/>
|
||||
<HalfGeometryInfo x="0.1" y="0.079999998" z="0.23999999"/>
|
||||
<LocalTranslation x="-0.0099999998" y="0.079999998" z="0"/>
|
||||
</Object>
|
||||
<Object Type="2" ID="2" Lod_Level="0">
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_OwlPost_Package_F</PrototypeTag>
|
||||
<Position x="103.32803" y="15.787835" z="115.04603"/>
|
||||
<Scale x="0.99985278" y="1" z="0.99985278"/>
|
||||
<Rotation x="0" y="89.999985" z="0"/>
|
||||
<HalfGeometryInfo x="0.1" y="0.079999998" z="0.23999999"/>
|
||||
<LocalTranslation x="-0.0099999998" y="0.079999998" z="0"/>
|
||||
</Object>
|
||||
<Object Type="2" ID="2" Lod_Level="0">
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_OwlPost_Package_F</PrototypeTag>
|
||||
<Position x="108.15715" y="15.239557" z="116.30173"/>
|
||||
<Scale x="0.99999994" y="1" z="0.99999994"/>
|
||||
<Rotation x="0" y="49" z="0"/>
|
||||
<HalfGeometryInfo x="0.1" y="0.079999998" z="0.23999999"/>
|
||||
<LocalTranslation x="-0.0099999998" y="0.079999998" z="0"/>
|
||||
</Object>
|
||||
</Element_Interactable>
|
||||
@@ -0,0 +1,59 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<Element_Interactable>
|
||||
<Object Type="2" ID="2" Lod_Level="0">
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_TeaShop_Chair_B</PrototypeTag>
|
||||
<Position x="121.33389" y="15.479295" z="118.72608"/>
|
||||
<Scale x="0.9999994" y="1" z="0.9999994"/>
|
||||
<Rotation x="-0" y="-22.999996" z="-0"/>
|
||||
<HalfGeometryInfo x="0.30000001" y="0.33000001" z="0.27000001"/>
|
||||
<LocalTranslation x="-0.0099999998" y="0.45500001" z="0"/>
|
||||
</Object>
|
||||
<Object Type="2" ID="2" Lod_Level="0">
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_TeaShop_Chair_B</PrototypeTag>
|
||||
<Position x="123.10323" y="15.479356" z="118.91245"/>
|
||||
<Scale x="0.99993569" y="1" z="0.99993569"/>
|
||||
<Rotation x="0" y="164.99998" z="0"/>
|
||||
<HalfGeometryInfo x="0.30000001" y="0.33000001" z="0.27000001"/>
|
||||
<LocalTranslation x="-0.0099999998" y="0.45500001" z="0"/>
|
||||
</Object>
|
||||
<Object Type="2" ID="2" Lod_Level="0">
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_TeaShop_Chair_B</PrototypeTag>
|
||||
<Position x="120.87086" y="15.479406" z="120.53646"/>
|
||||
<Scale x="0.99985766" y="1" z="0.99985766"/>
|
||||
<Rotation x="0" y="137" z="0"/>
|
||||
<HalfGeometryInfo x="0.30000001" y="0.33000001" z="0.27000001"/>
|
||||
<LocalTranslation x="-0.0099999998" y="0.45500001" z="0"/>
|
||||
</Object>
|
||||
<Object Type="2" ID="2" Lod_Level="0">
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_TeaShop_Chair_B</PrototypeTag>
|
||||
<Position x="120.09058" y="15.934338" z="119.38182"/>
|
||||
<Scale x="0.99992603" y="1" z="0.99992603"/>
|
||||
<Rotation x="-0" y="-89.999985" z="-0"/>
|
||||
<HalfGeometryInfo x="0.30000001" y="0.33000001" z="0.27000001"/>
|
||||
<LocalTranslation x="-0.0099999998" y="0.45500001" z="0"/>
|
||||
</Object>
|
||||
<Object Type="2" ID="2" Lod_Level="0">
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_TeaShop_Chair_B</PrototypeTag>
|
||||
<Position x="119.52007" y="15.479147" z="120.22794"/>
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
<HalfGeometryInfo x="0.30000001" y="0.33000001" z="0.27000001"/>
|
||||
<LocalTranslation x="-0.0099999998" y="0.45500001" z="0"/>
|
||||
</Object>
|
||||
<Object Type="2" ID="2" Lod_Level="0">
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_TeaShop_Chair_B</PrototypeTag>
|
||||
<Position x="119.36572" y="15.480341" z="117.24383"/>
|
||||
<Scale x="1.0002052" y="1" z="1.0002052"/>
|
||||
<Rotation x="-0" y="-135" z="-0"/>
|
||||
<HalfGeometryInfo x="0.30000001" y="0.33000001" z="0.27000001"/>
|
||||
<LocalTranslation x="-0.0099999998" y="0.45500001" z="0"/>
|
||||
</Object>
|
||||
<Object Type="2" ID="2" Lod_Level="0">
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_TeaShop_Chair_B</PrototypeTag>
|
||||
<Position x="118.21121" y="15.479303" z="118.53706"/>
|
||||
<Scale x="0.99999976" y="1" z="0.99999976"/>
|
||||
<Rotation x="0" y="42.999992" z="0"/>
|
||||
<HalfGeometryInfo x="0.30000001" y="0.33000001" z="0.27000001"/>
|
||||
<LocalTranslation x="-0.0099999998" y="0.45500001" z="0"/>
|
||||
</Object>
|
||||
</Element_Interactable>
|
||||
@@ -0,0 +1,27 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<Element_Interactable>
|
||||
<Object Type="2" ID="2" Lod_Level="0">
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_TeaShop_Table_B</PrototypeTag>
|
||||
<Position x="122.15527" y="15.479205" z="118.9621"/>
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
<HalfGeometryInfo x="0.30000001" y="0.33000001" z="0.27000001"/>
|
||||
<LocalTranslation x="-0.0099999998" y="0.45500001" z="0"/>
|
||||
</Object>
|
||||
<Object Type="2" ID="2" Lod_Level="0">
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_TeaShop_Table_B</PrototypeTag>
|
||||
<Position x="120.30566" y="15.478899" z="120.11832"/>
|
||||
<Scale x="0.99975073" y="1" z="0.99975073"/>
|
||||
<Rotation x="0" y="108" z="0"/>
|
||||
<HalfGeometryInfo x="0.30000001" y="0.33000001" z="0.27000001"/>
|
||||
<LocalTranslation x="-0.0099999998" y="0.45500001" z="0"/>
|
||||
</Object>
|
||||
<Object Type="2" ID="2" Lod_Level="0">
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_TeaShop_Table_B</PrototypeTag>
|
||||
<Position x="118.78754" y="15.478839" z="118.0551"/>
|
||||
<Scale x="0.99999958" y="1" z="0.99999958"/>
|
||||
<Rotation x="-0" y="-50" z="-0"/>
|
||||
<HalfGeometryInfo x="0.30000001" y="0.33000001" z="0.27000001"/>
|
||||
<LocalTranslation x="-0.0099999998" y="0.45500001" z="0"/>
|
||||
</Object>
|
||||
</Element_Interactable>
|
||||
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
@@ -2439,17 +2439,32 @@ HRESULT CLoader::Loading_For_MapViewer()
|
||||
".bin", false, ModelPrototypeTags, ModelPrototypePath)))
|
||||
return E_FAIL;
|
||||
|
||||
/* Step */
|
||||
if (FAILED(MapFolderLoad("C:\\MeshTable\\Game\\Environment\\Hogsmeade\\Common\\Meshes\\GroundSurfaces",
|
||||
".bin", false, ModelPrototypeTags, ModelPrototypePath)))
|
||||
return E_FAIL;
|
||||
if (FAILED(MapFolderLoad("C:\\MeshTable\\Game\\Environment\\Hogsmeade\\Common\\Collision\\GroundSurfaces",
|
||||
".bin", false, ModelPrototypeTags, ModelPrototypePath)))
|
||||
return E_FAIL;
|
||||
|
||||
/* Barrel */
|
||||
if (FAILED(MapFolderLoad("C:\\MeshTable\\Game\\Environment\\Objects\\Meshes",
|
||||
".bin", false, ModelPrototypeTags, ModelPrototypePath)))
|
||||
return E_FAIL;
|
||||
|
||||
/* Step */
|
||||
if (FAILED(MapFolderLoad("C:\\MeshTable\\Game\\Environment\\Hogsmeade\\Common\\Meshes\\GroundSurfaces",
|
||||
".fbx", true, ModelPrototypeTags, ModelPrototypePath)))
|
||||
/* Box */
|
||||
if (FAILED(MapFolderLoad("C:\\MeshTable\\Game\\Environment\\Hogsmeade\\Common\\Meshes\\MiscProps",
|
||||
".bin", false, ModelPrototypeTags, ModelPrototypePath)))
|
||||
return E_FAIL;
|
||||
if (FAILED(MapFolderLoad("C:\\MeshTable\\Game\\Environment\\Hogsmeade\\Common\\Collision\\GroundSurfaces",
|
||||
".fbx", true, ModelPrototypeTags, ModelPrototypePath)))
|
||||
|
||||
/* TeaShop Table */
|
||||
if (FAILED(MapFolderLoad("C:\\MeshTable\\Game\\Environment\\Hogsmeade\\Common\\Meshes\\Tables",
|
||||
".bin", false, ModelPrototypeTags, ModelPrototypePath)))
|
||||
return E_FAIL;
|
||||
|
||||
/* TeaShop Chair*/
|
||||
if (FAILED(MapFolderLoad("C:\\MeshTable\\Game\\Environment\\Hogsmeade\\Common\\Meshes\\Chairs",
|
||||
".bin", true, ModelPrototypeTags, ModelPrototypePath)))
|
||||
return E_FAIL;
|
||||
|
||||
#pragma endregion
|
||||
@@ -2810,10 +2825,32 @@ vector<vector<FOLDER_LOAD*>*> Contents(iLoadCount);
|
||||
CCollider::Create(m_pDevice, m_pContext))))
|
||||
return E_FAIL;
|
||||
|
||||
/* For.Prototype_Component_VIBuffer_Terrain */
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_Terrain"),
|
||||
CVIBuffer_Terrain::Create(m_pDevice, m_pContext, "../Bin/Resources/Data/Map/T_LandscapeStreamingProxy_0_LOD1_D.png"))))
|
||||
return E_FAIL;
|
||||
///* For.Prototype_Component_VIBuffer_Terrain */
|
||||
//if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_Terrain"),
|
||||
// CVIBuffer_Terrain::Create(m_pDevice, m_pContext, "../Bin/Resources/Data/Map/T_LandscapeStreamingProxy_0_LOD1_D.png"))))
|
||||
// return E_FAIL;
|
||||
|
||||
{
|
||||
CVIBuffer_Terrain* pTerrain = CVIBuffer_Terrain::Create(m_pDevice, m_pContext, "Hogsmeade_HeightMap.bin", 512, 512);
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_Terrain"), pTerrain))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
pTerrain->ConvertToHeightField(TEXT("Hogsmeade_HeightMap"));
|
||||
|
||||
CRigidBody_Static::RIGIDBODY_STATIC_PROTOTYPEDESC Desc{}; // 터레인 리지드 지형 추가
|
||||
{
|
||||
Desc.eType = ACTOR::HEIGHTFIELD;
|
||||
Desc.ePxRigidBodyFlags = {};
|
||||
Desc.ePxShapeFlags = { PSX::PxShapeFlag::eVISUALIZATION | PSX::PxShapeFlag::eSCENE_QUERY_SHAPE | PSX::PxShapeFlag::eSIMULATION_SHAPE };
|
||||
Desc.ePxMaterialTypes = PXMATERIAL::DEFAULT;
|
||||
Desc.vMatInfo = _float3(0.5f, 0.5f, 0.6f);
|
||||
Desc.fContactOffset = 0.f;
|
||||
}
|
||||
CRigidBody_Static* pRigid = CRigidBody_Static::Create(m_pDevice, m_pContext, Desc);
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_RigidBody_Static_Terrain_Hogsmeade"), pRigid))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
CVIBuffer_Model_Instance::INSTANCE_DESC InstanceDesc = {};
|
||||
|
||||
@@ -23,7 +23,7 @@ HRESULT CMapElement_Interactable::Initialize_Prototype()
|
||||
|
||||
HRESULT CMapElement_Interactable::Initialize(void* pArg)
|
||||
{
|
||||
MAPOBJECT_LOD_DESC* pDesc = static_cast<MAPOBJECT_LOD_DESC*>(pArg);
|
||||
ELEMENT_INTERACTABLE_DESC* pDesc = static_cast<ELEMENT_INTERACTABLE_DESC*>(pArg);
|
||||
|
||||
m_iMaxLodLevel = pDesc->iMaxLodLevel;
|
||||
|
||||
@@ -52,6 +52,9 @@ HRESULT CMapElement_Interactable::Initialize(void* pArg)
|
||||
|
||||
m_vBoxSize = _float3(1.f, 1.f, 1.f);
|
||||
m_pActor = static_cast<PSX::PxRigidDynamic*>(m_pRigidBody->Get_Actor());
|
||||
|
||||
static_cast<CRigidBody_Dynamic*>(m_pRigidBody)->Set_HalfGeometryInfo(pDesc->vBoxSize);
|
||||
static_cast<CRigidBody_Dynamic*>(m_pRigidBody)->Move_LocalPos(_float4(0.f, 0.f, 0.f, 0.f), pDesc->vBoxLocalPosition);
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
@@ -260,8 +263,6 @@ void CMapElement_Interactable::Describe_Entity()
|
||||
m_pActor->setMass(m_fMass);
|
||||
|
||||
m_pRigidBody->Describe_Entity();
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -278,11 +279,11 @@ void CMapElement_Interactable::Describe_Entity()
|
||||
GUI::InputFloat("Up", &vMove.y, 0.05f, 0.1f);
|
||||
GUI::InputFloat("Look", &vMove.z, 0.05f, 0.1f);
|
||||
|
||||
//m_pTransformCom->Move_Right(vMove.x);
|
||||
//m_pTransformCom->Move_Up(vMove.y);
|
||||
//m_pTransformCom->Move_Look(vMove.z);
|
||||
m_pTransformCom->Move_Right(vMove.x);
|
||||
m_pTransformCom->Move_Up(vMove.y);
|
||||
m_pTransformCom->Move_Look(vMove.z);
|
||||
|
||||
//XMStoreFloat3(&m_vPosition, m_pTransformCom->Get_State(STATE::POSITION));
|
||||
XMStoreFloat3(&m_vPosition, m_pTransformCom->Get_State(STATE::POSITION));
|
||||
|
||||
if (m_pGameInstance->Mouse_Down(DIM_LBUTTON) && m_pGameInstance->Key_Pressing(DIK_LSHIFT))
|
||||
{
|
||||
@@ -290,7 +291,7 @@ void CMapElement_Interactable::Describe_Entity()
|
||||
if (m_pGameInstance->isPicking(&vPosition))
|
||||
{
|
||||
memcpy(&m_vPosition, &vPosition, sizeof(_float3));
|
||||
m_pTransformCom->Set_State(STATE::POSITION, XMLoadFloat3(&m_vPosition));
|
||||
m_pTransformCom->Set_State(STATE::POSITION, XMVectorSetW(XMLoadFloat3(&m_vPosition), 1.f));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -299,6 +300,8 @@ void CMapElement_Interactable::Describe_Entity()
|
||||
GUI::InputFloat("Y##Rotation", &m_vRotation.y, 1.f, 15.f);
|
||||
GUI::InputFloat("Z##Rotation", &m_vRotation.z, 1.f, 15.f);
|
||||
|
||||
m_pTransformCom->Rotation(XMConvertToRadians(m_vRotation.x), XMConvertToRadians(m_vRotation.y), XMConvertToRadians(m_vRotation.z));
|
||||
|
||||
GUI::Text("----- Scale ----");
|
||||
GUI::InputFloat("X##Scale", &m_vScale.x, 0.05f, 0.1f);
|
||||
GUI::InputFloat("Y##Scale", &m_vScale.y, 0.05f, 0.1f);
|
||||
@@ -360,8 +363,22 @@ HRESULT CMapElement_Interactable::Save_XML(tinyxml2::XMLDocument& doc, tinyxml2:
|
||||
Rotation->SetAttribute("y", vRotation.y);
|
||||
Rotation->SetAttribute("z", vRotation.z);
|
||||
object->InsertEndChild(Rotation);
|
||||
#pragma endregion
|
||||
|
||||
_float3 vHalfGeometryInfo = static_cast<CRigidBody_Dynamic*>(m_pRigidBody)->Get_HalfGeometryInfo();
|
||||
tinyxml2::XMLElement* HalfGeometryInfo = doc.NewElement("HalfGeometryInfo");
|
||||
HalfGeometryInfo->SetAttribute("x", vHalfGeometryInfo.x);
|
||||
HalfGeometryInfo->SetAttribute("y", vHalfGeometryInfo.y);
|
||||
HalfGeometryInfo->SetAttribute("z", vHalfGeometryInfo.z);
|
||||
object->InsertEndChild(HalfGeometryInfo);
|
||||
|
||||
_float3 vLocalTranslation = static_cast<CRigidBody_Dynamic*>(m_pRigidBody)->Get_LocalTranslation();
|
||||
tinyxml2::XMLElement* LocalTranslation = doc.NewElement("LocalTranslation");
|
||||
LocalTranslation->SetAttribute("x", vLocalTranslation.x);
|
||||
LocalTranslation->SetAttribute("y", vLocalTranslation.y);
|
||||
LocalTranslation->SetAttribute("z", vLocalTranslation.z);
|
||||
object->InsertEndChild(LocalTranslation);
|
||||
|
||||
#pragma endregion
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
@@ -63,6 +63,19 @@ HRESULT CMapObject_Manager::Initialize(void* pArg)
|
||||
|
||||
if (FAILED(Load_LightObject("LightElement")))
|
||||
return E_FAIL;
|
||||
|
||||
if (FAILED(Load_InteractObject("E_INTER_Barrel")))
|
||||
return E_FAIL;
|
||||
if (FAILED(Load_InteractObject("E_INTER_PostPackage_B")))
|
||||
return E_FAIL;
|
||||
if (FAILED(Load_InteractObject("E_INTER_PostPackage_F")))
|
||||
return E_FAIL;
|
||||
if (FAILED(Load_InteractObject("E_INTER_TeaShopTable")))
|
||||
return E_FAIL;
|
||||
if (FAILED(Load_InteractObject("E_INTER_TeaShopChair")))
|
||||
return E_FAIL;
|
||||
|
||||
|
||||
/*if (FAILED(Load_LightObject("LightElement")))
|
||||
return E_FAIL;
|
||||
*/
|
||||
@@ -128,6 +141,17 @@ void CMapObject_Manager::Update(_float fTimeDelta)
|
||||
Load_LightObject(m_szSaveContainerName);
|
||||
}
|
||||
}
|
||||
else if (ADD_TYPE::ELEMENT_INTERACT == m_eType)
|
||||
{
|
||||
if (GUI::Button("Save_InteractElements"))
|
||||
{
|
||||
Save_InteractObject(m_szSaveContainerName);
|
||||
}
|
||||
if (GUI::Button("Load_InteractElements"))
|
||||
{
|
||||
Load_InteractObject(m_szSaveContainerName);
|
||||
}
|
||||
}
|
||||
|
||||
if (GUI::Button("Load_Container"))
|
||||
{
|
||||
@@ -848,7 +872,7 @@ HRESULT CMapObject_Manager::Load_MapData(const _char* pFileName)
|
||||
if(MAPOBJECT_TYPE::ELEMENT_STATIC == eType)
|
||||
m_pGameInstance->Add_GameObject_ToLayer<CMapElement_Static>(g_iStaticLevel, NEXT_LEVEL, TEXT("Layer_Element_Static"), &Desc);
|
||||
else if(MAPOBJECT_TYPE::ELEMENT_INTERACT == eType)
|
||||
m_pGameInstance->Add_GameObject_ToLayer<CMapElement_Interactable>(g_iStaticLevel, NEXT_LEVEL, TEXT("Layer_Element_Interact"), &Desc);
|
||||
m_pGameInstance->Add_GameObject_ToLayer<CMapElement_Interactable>(g_iStaticLevel, NEXT_LEVEL, TEXT("Layer_Element_Interactable"), &Desc);
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
@@ -1306,7 +1330,7 @@ HRESULT CMapObject_Manager::Save_InteractObject(const _char* pFileName)
|
||||
{
|
||||
CLayer* pLayer = m_pGameInstance->Get_Layer(ENUM_CLASS(LEVEL::MAP), TEXT("Layer_Element_Interactable"));
|
||||
|
||||
if (nullptr != pLayer)
|
||||
if (nullptr == pLayer)
|
||||
return S_OK;
|
||||
|
||||
tinyxml2::XMLDocument doc;
|
||||
@@ -1339,6 +1363,11 @@ HRESULT CMapObject_Manager::Save_InteractObject(const _char* pFileName)
|
||||
}
|
||||
#pragma endregion // ELEMENT_INTERACTABEL
|
||||
|
||||
if (doc.SaveFile(strPath.c_str()) != tinyxml2::XML_SUCCESS) {
|
||||
MSG_BOX("Failed to Save File");
|
||||
}
|
||||
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
HRESULT CMapObject_Manager::Load_InteractObject(const _char* pFileName)
|
||||
@@ -1350,7 +1379,7 @@ HRESULT CMapObject_Manager::Load_InteractObject(const _char* pFileName)
|
||||
if ((tinyxml2::XML_SUCCESS != xmlDoc.LoadFile(strPath.c_str())))
|
||||
return E_FAIL;
|
||||
|
||||
tinyxml2::XMLElement* root = xmlDoc.FirstChildElement("MapLightObjects");
|
||||
tinyxml2::XMLElement* root = xmlDoc.FirstChildElement("Element_Interactable");
|
||||
|
||||
if (nullptr == root)
|
||||
{
|
||||
@@ -1365,7 +1394,7 @@ HRESULT CMapObject_Manager::Load_InteractObject(const _char* pFileName)
|
||||
/* Model Prototypes */
|
||||
Object->QueryUnsignedAttribute("Lod_Level", &Desc.iMaxLodLevel);
|
||||
Object->QueryUnsignedAttribute("Lod_Level", &Desc.iInteractableID);
|
||||
|
||||
|
||||
string strTag = {};
|
||||
for (auto* PrototypeTag = Object->FirstChildElement("PrototypeTag"); PrototypeTag; PrototypeTag = PrototypeTag->NextSiblingElement("PrototypeTag"))
|
||||
{
|
||||
@@ -1390,10 +1419,20 @@ HRESULT CMapObject_Manager::Load_InteractObject(const _char* pFileName)
|
||||
Rotation->QueryFloatAttribute("y", &Desc.vRotation.y);
|
||||
Rotation->QueryFloatAttribute("z", &Desc.vRotation.z);
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CMapElement_Interactable>(g_iStaticLevel, NEXT_LEVEL, TEXT("Layer_Element_Interactable"), &Desc)))
|
||||
auto* HalfGeometryInfo = Object->FirstChildElement("HalfGeometryInfo");
|
||||
HalfGeometryInfo->QueryFloatAttribute("x", &Desc.vBoxSize.x);
|
||||
HalfGeometryInfo->QueryFloatAttribute("y", &Desc.vBoxSize.y);
|
||||
HalfGeometryInfo->QueryFloatAttribute("z", &Desc.vBoxSize.z);
|
||||
|
||||
auto* LocalTranslation = Object->FirstChildElement("LocalTranslation");
|
||||
LocalTranslation->QueryFloatAttribute("x", &Desc.vBoxLocalPosition.x);
|
||||
LocalTranslation->QueryFloatAttribute("y", &Desc.vBoxLocalPosition.y);
|
||||
LocalTranslation->QueryFloatAttribute("z", &Desc.vBoxLocalPosition.z);
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CMapElement_Interactable>(g_iStaticLevel, NEXT_LEVEL, TEXT("Layer_Element_Interactable_Test"), &Desc)))
|
||||
return E_FAIL;
|
||||
}
|
||||
MSG_BOX("Successed to Create Interactalbe Element");
|
||||
//MSG_BOX("Successed to Create Interactalbe Element");
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
@@ -1533,7 +1572,7 @@ void CMapObject_Manager::Update_ObjectList()
|
||||
if (ADD_TYPE::ELEMENT_STATIC == m_eType)
|
||||
pLayer = m_pGameInstance->Get_Layer(ENUM_CLASS(LEVEL::MAP), TEXT("Layer_Element_Static"));
|
||||
else if (ADD_TYPE::ELEMENT_INTERACT == m_eType)
|
||||
pLayer = m_pGameInstance->Get_Layer(ENUM_CLASS(LEVEL::MAP), TEXT("Layer_Element_Interact"));
|
||||
pLayer = m_pGameInstance->Get_Layer(ENUM_CLASS(LEVEL::MAP), TEXT("Layer_Element_Interactable"));
|
||||
else if (ADD_TYPE::ELEMENT_LIGHT == m_eType)
|
||||
pLayer = m_pGameInstance->Get_Layer(ENUM_CLASS(LEVEL::MAP), TEXT("Layer_Element_Light"));
|
||||
|
||||
@@ -1717,9 +1756,12 @@ void CMapObject_Manager::Create_Elemnt(_wstring& strPrototypeTag)
|
||||
}
|
||||
else if (ADD_TYPE::ELEMENT_INTERACT == m_eType)
|
||||
{
|
||||
Interactable_Desc.iInteractableID = 0;
|
||||
Interactable_Desc.iInteractableID = 1;
|
||||
Interactable_Desc.vBoxSize = _float3(0.3f, 0.33f, 0.27f);
|
||||
Interactable_Desc.vBoxLocalPosition = _float3(-0.01f, 0.455f, 0.f);
|
||||
|
||||
|
||||
m_pGameInstance->Add_GameObject_ToLayer<CMapElement_Interactable>(g_iStaticLevel, NEXT_LEVEL, TEXT("Layer_Element_Interact"), &Desc);
|
||||
m_pGameInstance->Add_GameObject_ToLayer<CMapElement_Interactable>(g_iStaticLevel, NEXT_LEVEL, TEXT("Layer_Element_Interactable"), &Interactable_Desc);
|
||||
}
|
||||
else if (ADD_TYPE::ELEMENT_LIGHT == m_eType)
|
||||
{
|
||||
|
||||
@@ -40,8 +40,26 @@ HRESULT CTerrain::Initialize(void* pArg)
|
||||
|
||||
m_pAlphaMap->Load_ToFile("Hogsmeade_AlphaMap.bin");
|
||||
|
||||
if (FAILED(m_pVIBufferCom->Load_HeightMap("Hogsmeade_HeightMap.bin")))
|
||||
return E_FAIL;
|
||||
|
||||
// Psx 적용할지 안할지
|
||||
m_bUsePsx = true;
|
||||
|
||||
if(!m_bUsePsx)
|
||||
{
|
||||
if (FAILED(m_pVIBufferCom->Load_HeightMap("Hogsmeade_HeightMap.bin")))
|
||||
return E_FAIL;
|
||||
}
|
||||
else
|
||||
{
|
||||
CRigidBody_Static::RIGIDBODY_STATIC_DESC Desc{};
|
||||
Desc.pMeshName = TEXT("Hogsmeade_HeightMap");
|
||||
Desc.iSubKind = ENUM_CLASS(PXOBJECT::TERRAIN);
|
||||
/* Com_RigidBody */
|
||||
if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Component_RigidBody_Static_Terrain_Hogsmeade"),
|
||||
reinterpret_cast<CComponent**>(&m_pRigidBody), &Desc))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
@@ -273,6 +291,7 @@ void CTerrain::Free()
|
||||
{
|
||||
__super::Free();
|
||||
|
||||
SAFE_RELEASE(m_pRigidBody);
|
||||
SAFE_RELEASE(m_pAlphaMap);
|
||||
SAFE_RELEASE(m_pShaderCom);
|
||||
SAFE_RELEASE(m_pVIBufferCom);
|
||||
|
||||
@@ -46,7 +46,7 @@ namespace Editor
|
||||
|
||||
enum class BLOOM_TYPE { NONE, BASIC, MULTIPLY, END };
|
||||
|
||||
enum class ELEMENT_INTERACTABLE_ID { BARREL, END };
|
||||
enum class ELEMENT_INTERACTABLE_ID {BARREL, BOX, END};
|
||||
}
|
||||
|
||||
using namespace Editor;
|
||||
|
||||
@@ -12,6 +12,8 @@ class CMapElement_Interactable final : public CMapElement
|
||||
{
|
||||
_uint iInteractableID = {};
|
||||
_uint iSubKind = {};
|
||||
_float3 vBoxLocalPosition;
|
||||
_float3 vBoxSize;
|
||||
}ELEMENT_INTERACTABLE_DESC;
|
||||
|
||||
private:
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
NS_BEGIN(Engine)
|
||||
class CShader;
|
||||
class CVIBuffer_Terrain;
|
||||
class CRigidBody_Static;
|
||||
class CTexture;
|
||||
NS_END
|
||||
|
||||
@@ -34,6 +35,10 @@ class CTerrain final : public CGameObject
|
||||
CTexture* m_pMROTextureCom = { nullptr };
|
||||
CTexture* m_pMaskTextureCom = { nullptr };
|
||||
|
||||
CRigidBody_Static* m_pRigidBody = { nullptr };
|
||||
|
||||
_bool m_bUsePsx = { false };
|
||||
|
||||
_float m_fUsingSurfaceParams = {};
|
||||
_float m_fHeightRatio = {1.f};
|
||||
_float3 m_vPickingPosition = {};
|
||||
|
||||
@@ -20,7 +20,7 @@ CRigidBody_Dynamic::CRigidBody_Dynamic(const CRigidBody_Dynamic& rhs) :
|
||||
#ifdef _DEBUG
|
||||
HRESULT CRigidBody_Dynamic::Render()
|
||||
{
|
||||
_matrix WorldMatrix = m_pTransform->Get_XMWorldMatrix();
|
||||
_matrix WorldMatrix = XMMatrixTranslation(m_vLocalTranslation.x, m_vLocalTranslation.y, m_vLocalTranslation.z) * m_pTransform->Get_XMWorldMatrix();
|
||||
_matrix ViewMatrix = m_pGameInstance->Get_Transform_Matrix(D3DTS::VIEW);
|
||||
_matrix ProjMatrix = m_pGameInstance->Get_Transform_Matrix(D3DTS::PROJ);
|
||||
_vector vColor = CMyTools::ColorRGB_A_HEXtoVECTOR(0x2fc48000, 1.f);
|
||||
@@ -90,11 +90,11 @@ void CRigidBody_Dynamic::Set_HalfGeometryInfo(_float3 vhalfGeometryInfo)
|
||||
}
|
||||
#ifdef _DEBUG
|
||||
if (nullptr != m_pMainShape) {
|
||||
m_pMainShape.release();
|
||||
m_pMainShape.reset();
|
||||
m_pMainShape = nullptr;
|
||||
}
|
||||
if (nullptr != m_pSubShape) {
|
||||
m_pSubShape.release();
|
||||
m_pSubShape.reset();
|
||||
m_pSubShape = nullptr;
|
||||
}
|
||||
Add_DebugShape();
|
||||
@@ -107,6 +107,7 @@ void CRigidBody_Dynamic::Move_LocalPos(_float4 vNewRotQ, _float3 vNewTranslation
|
||||
PSX::PxShape* pShape = { nullptr };
|
||||
m_pRigidBody->getShapes(&pShape, m_pRigidBody->getNbShapes());
|
||||
pShape->setLocalPose(PSX::PxTransform(vNewTranslation.x, vNewTranslation.y, vNewTranslation.z, PSX::PxQuat(vNewRotQ.x, vNewRotQ.y, vNewRotQ.z, vNewRotQ.w)));
|
||||
Add_DebugShape();
|
||||
}
|
||||
// _DEBUG
|
||||
void CRigidBody_Dynamic::Add_Force(_fvector vForce, PSX::PxForceMode::Enum eType)
|
||||
@@ -223,6 +224,9 @@ HRESULT CRigidBody_Dynamic::Initialize(void* pArg)
|
||||
#ifdef _DEBUG
|
||||
HRESULT CRigidBody_Dynamic::Add_DebugShape()
|
||||
{
|
||||
if(nullptr != m_pMainShape)
|
||||
m_pMainShape.reset();
|
||||
|
||||
switch (m_eActorType)
|
||||
{
|
||||
case ACTOR::BOX:
|
||||
@@ -280,6 +284,9 @@ void CRigidBody_Dynamic::Describe_Entity()
|
||||
GUI::BeginChild(("Child ID: " + to_string((size_t)(this))).c_str());
|
||||
GUI::Text("ReSize"); GUI::SameLine();
|
||||
if (GUI::DragFloat3("##Size", (_float*)&m_vhalfGeometryInfo, 0.01f, 0.01f, 10.f, "%.3f")) {
|
||||
m_vhalfGeometryInfo.x = max(0.01f, m_vhalfGeometryInfo.x);
|
||||
m_vhalfGeometryInfo.y = max(0.01f, m_vhalfGeometryInfo.y);
|
||||
m_vhalfGeometryInfo.z = max(0.01f, m_vhalfGeometryInfo.z);
|
||||
Set_HalfGeometryInfo(m_vhalfGeometryInfo);
|
||||
}
|
||||
GUI::Text("Translation"); GUI::SameLine();
|
||||
|
||||
@@ -29,6 +29,7 @@ class ENGINE_DLL CRigidBody_Dynamic : public CRigidBody
|
||||
|
||||
public:
|
||||
#ifdef _DEBUG
|
||||
_float3 Get_LocalTranslation() {return m_vLocalTranslation; }
|
||||
virtual HRESULT Render()override;
|
||||
#endif // _DEBUG
|
||||
|
||||
|
||||
Reference in New Issue
Block a user