@@ -103,7 +103,7 @@ int APIENTRY wWinMain(_In_ HINSTANCE hInstance,
|
||||
|
||||
|
||||
_float fTimeAcc = { };
|
||||
|
||||
const _float fMaxTimer = { 1.f / 60.f };
|
||||
while (true)
|
||||
{
|
||||
if (PeekMessage(&msg, nullptr, 0, 0, PM_REMOVE))
|
||||
@@ -134,7 +134,8 @@ int APIENTRY wWinMain(_In_ HINSTANCE hInstance,
|
||||
pMainApp->Update(1.f / 60.f);
|
||||
#endif // _DEBUG
|
||||
#ifndef _DEBUG
|
||||
pMainApp->Update(pGameInstance->Get_TimeDelta(TEXT("Timer_60")));
|
||||
_float fFrameTime = min(pGameInstance->Get_TimeDelta(TEXT("Timer_60")), fMaxTimer);
|
||||
pMainApp->Update(fFrameTime);
|
||||
#endif
|
||||
pMainApp->Render();
|
||||
|
||||
|
||||
@@ -524,70 +524,6 @@ HRESULT CBroomRaceManager::Load_RaceRing()
|
||||
|
||||
HRESULT CBroomRaceManager::Load_Balloons()
|
||||
{
|
||||
//tinyxml2::XMLDocument xmlDoc;
|
||||
|
||||
//string strPath = "../Bin/Resources/Data/Map/Balloon/Ballon_Data.xml";
|
||||
|
||||
//if ((tinyxml2::XML_SUCCESS != xmlDoc.LoadFile(strPath.c_str())))
|
||||
// return E_FAIL;
|
||||
|
||||
// Desc.pBroomRaceManager = this;
|
||||
|
||||
// /* Transform */
|
||||
// auto* Rotation = Object->FirstChildElement("Scale");
|
||||
// Rotation->QueryFloatAttribute("x", &Desc.vScale.x);
|
||||
// Rotation->QueryFloatAttribute("y", &Desc.vScale.y);
|
||||
// Rotation->QueryFloatAttribute("z", &Desc.vScale.z);
|
||||
|
||||
// auto* Scale = Object->FirstChildElement("Rotation");
|
||||
// Scale->QueryFloatAttribute("x", &Desc.vRotation.x);
|
||||
// Scale->QueryFloatAttribute("y", &Desc.vRotation.y);
|
||||
// Scale->QueryFloatAttribute("z", &Desc.vRotation.z);
|
||||
|
||||
// auto* Position = Object->FirstChildElement("Position");
|
||||
// Position->QueryFloatAttribute("x", &Desc.vPosition.x);
|
||||
// Position->QueryFloatAttribute("y", &Desc.vPosition.y);
|
||||
// Position->QueryFloatAttribute("z", &Desc.vPosition.z);
|
||||
|
||||
// if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CRaceRing>(g_iStaticLevel, NEXT_LEVEL, LAYER_RING, &Desc)))
|
||||
// return E_FAIL;
|
||||
//}
|
||||
|
||||
//tinyxml2::XMLElement* root = xmlDoc.FirstChildElement("Balloon");
|
||||
|
||||
//if (nullptr == root)
|
||||
//{
|
||||
// MSG_BOX("Failed to Find root");
|
||||
// return S_OK;
|
||||
//}
|
||||
|
||||
//for (auto* Object = root->FirstChildElement("Object"); Object; Object = Object->NextSiblingElement("Object"))
|
||||
//{
|
||||
// CMapElement_Balloon::BALLOON_DESC Desc = {};
|
||||
|
||||
// auto* Value = Object->FirstChildElement("Value");
|
||||
// Value->QueryBoolAttribute("isFloating", &Desc.isFloating);
|
||||
// Value->QueryUnsignedAttribute("DiffuseIndex", &Desc.iDiffuseIndex);
|
||||
|
||||
// /* Transform */
|
||||
// auto* Rotation = Object->FirstChildElement("Scale");
|
||||
// Rotation->QueryFloatAttribute("x", &Desc.vScale.x);
|
||||
// Rotation->QueryFloatAttribute("y", &Desc.vScale.y);
|
||||
// Rotation->QueryFloatAttribute("z", &Desc.vScale.z);
|
||||
|
||||
// auto* Scale = Object->FirstChildElement("Rotation");
|
||||
// Scale->QueryFloatAttribute("x", &Desc.vRotation.x);
|
||||
// Scale->QueryFloatAttribute("y", &Desc.vRotation.y);
|
||||
// Scale->QueryFloatAttribute("z", &Desc.vRotation.z);
|
||||
|
||||
// auto* Position = Object->FirstChildElement("Position");
|
||||
// Position->QueryFloatAttribute("x", &Desc.vPosition.x);
|
||||
// Position->QueryFloatAttribute("y", &Desc.vPosition.y);
|
||||
// Position->QueryFloatAttribute("z", &Desc.vPosition.z);
|
||||
|
||||
// if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CMapElement_Balloon>(g_iStaticLevel, NEXT_LEVEL, LAYER_BACKGROUND, &Desc)))
|
||||
// return E_FAIL;
|
||||
//}
|
||||
tinyxml2::XMLDocument xmlDoc;
|
||||
|
||||
string strPath = "../Bin/Resources/Data/Map/Balloon/Ballon_Data.xml";
|
||||
|
||||
@@ -125,7 +125,7 @@ HRESULT CLevel_GamePlay::Initialize(void* pArg)
|
||||
_bool bLoadNPC = { true };
|
||||
#ifdef _DEBUG
|
||||
#ifdef 기무리
|
||||
bLoadNPC = true;
|
||||
bLoadNPC = false;
|
||||
#endif
|
||||
#endif // _DEBUG
|
||||
if (true == bLoadNPC) {
|
||||
@@ -360,8 +360,8 @@ HRESULT CLevel_GamePlay::Ready_Background()
|
||||
#endif //
|
||||
#ifdef 기무리
|
||||
isReady_Background = true;
|
||||
isReady_Hogsmeade = true;
|
||||
isReady_Hogwart = true;
|
||||
isReady_Hogsmeade = false;
|
||||
isReady_Hogwart = false;
|
||||
#endif //
|
||||
#ifdef 나
|
||||
isReady_Background = false;
|
||||
@@ -370,8 +370,6 @@ HRESULT CLevel_GamePlay::Ready_Background()
|
||||
#endif //
|
||||
#endif // _DEBUG
|
||||
|
||||
|
||||
|
||||
/* Map Containters */
|
||||
if (false == isReady_Background)
|
||||
{
|
||||
@@ -716,6 +714,14 @@ HRESULT CLevel_GamePlay::Ready_IntstanceProp(map<_string, CLand*>* Lands)
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CInstancedProp>(g_iStaticLevel, NEXT_LEVEL, LAYER_HOGSMEADE, &Desc)))
|
||||
return E_FAIL;
|
||||
|
||||
/* TeaShop_Door_A */
|
||||
Desc.isShake = false;
|
||||
Desc.bEnableRigidbody = true;
|
||||
Desc.strPrototypeTag = L"Prototype_Component_VIBuffer_Model_Instancel_TeaShop_Door_A";
|
||||
Desc.strInstanceDataPath = "../Bin/Resources/Data/Map/Instance/Teashop_Door.bin";
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CInstancedProp>(g_iStaticLevel, NEXT_LEVEL, LAYER_HOGSMEADE, &Desc)))
|
||||
return E_FAIL;
|
||||
|
||||
/* OakTree_TallA */
|
||||
Desc.isShake = false;
|
||||
Desc.bEnableRigidbody = true;
|
||||
@@ -1034,7 +1040,7 @@ HRESULT CLevel_GamePlay::Ready_Layer_Monster()
|
||||
isLoad_Monster = true;
|
||||
#endif //
|
||||
#ifdef 기무리
|
||||
isLoad_Monster = true;
|
||||
isLoad_Monster = false;
|
||||
#endif //
|
||||
#ifdef 나
|
||||
isLoad_Monster = true;
|
||||
@@ -1147,8 +1153,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;
|
||||
|
||||
@@ -549,8 +549,8 @@ HRESULT CLoader::Loading_For_GamePlay()
|
||||
#endif //
|
||||
#ifdef 기무리
|
||||
isLoad_Background = true;
|
||||
isLoad_Hogwart = true;
|
||||
isLoad_UI_SEQUANTIAL = true;
|
||||
isLoad_Hogwart = false;
|
||||
isLoad_UI_SEQUANTIAL = false;
|
||||
isLoad_NPC = true;
|
||||
isLoad_Monster = true;
|
||||
#endif //
|
||||
@@ -566,6 +566,15 @@ HRESULT CLoader::Loading_For_GamePlay()
|
||||
isLoad_UI_SEQUANTIAL = false;
|
||||
#endif // Bin
|
||||
#endif // _DEBUG
|
||||
#ifndef _DEBUG
|
||||
#ifdef gimch
|
||||
isLoad_Background = true;
|
||||
isLoad_Hogwart = false;
|
||||
isLoad_UI_SEQUANTIAL = false;
|
||||
isLoad_NPC = true;
|
||||
isLoad_DataClassroom = false;
|
||||
#endif // gimch
|
||||
#endif //
|
||||
|
||||
#pragma region MAP_MODELS
|
||||
vector<future<vector<FOLDER_LOAD*>*>> jobMapModels;
|
||||
@@ -3563,6 +3572,19 @@ HRESULT CLoader::Loading_For_GamePlay()
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
/* For.Prototype_Component_VIBuffer_Model_Instancel_TeaShop_Door_A*/
|
||||
{
|
||||
CVIBuffer_Model_Instance* pModel_Instance = CVIBuffer_Model_Instance::Create(m_pDevice, m_pContext,
|
||||
"../Bin/Resources/Models/InstanceProp/SM_HM_BLDG_TeaShop_Door_A.bin", strMaterailPath.c_str());
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(NEXT_LEVEL, TEXT("Prototype_Component_VIBuffer_Model_Instancel_TeaShop_Door_A"),
|
||||
pModel_Instance)))
|
||||
return E_FAIL;
|
||||
|
||||
if (FAILED(Ready_RigidBody_Static(pModel_Instance)))
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
/* For.Prototype_Component_VIBuffer_Model_Instancel_OakTree_TallA*/
|
||||
{
|
||||
CVIBuffer_Model_Instance* pModel_Instance = CVIBuffer_Model_Instance::Create(m_pDevice, m_pContext,
|
||||
|
||||
@@ -62,6 +62,7 @@ HRESULT CMapObject_Render::Initialize(void* pArg)
|
||||
|
||||
ReadyForPhysX();
|
||||
ConvertToPhysX();
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -257,8 +257,8 @@ HRESULT CPlayer::Render()
|
||||
#ifdef _DEBUG
|
||||
#ifdef 기무리
|
||||
//Render_CameraCoordinateSystem();
|
||||
m_pCharacter_Controller->Render();
|
||||
#endif // 기무리
|
||||
//m_pCharacter_Controller->Render();
|
||||
#endif // _DEBUG
|
||||
|
||||
}
|
||||
|
||||
@@ -62,10 +62,8 @@ HRESULT CRanrok_Prop::Initialize(void* pArg)
|
||||
|
||||
m_pInfoInstance->Regist_ActiveEffect(this);
|
||||
#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;
|
||||
}
|
||||
@@ -83,7 +81,7 @@ void CRanrok_Prop::Update(_float fTimeDelta)
|
||||
|
||||
|
||||
__super::Update(fTimeDelta);
|
||||
|
||||
m_pRigidBody->Set_Position(m_pTransformCom->Get_State(STATE::POSITION), true);
|
||||
Update_Event(fTimeDelta);
|
||||
|
||||
|
||||
@@ -135,15 +133,16 @@ HRESULT CRanrok_Prop::Render()
|
||||
{
|
||||
if (RENDER::NONLIGHT == m_pGameInstance->Get_CurrentRenderPass()) {
|
||||
#ifdef _DEBUG
|
||||
m_pRigidBody->Render();
|
||||
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(0xff0f0f, 1.f);
|
||||
m_pSubShape->Draw(m_pTransformCom->Get_XMWorldMatrix(), ViewMatrix, ProjMatrix, vColor, nullptr, true);
|
||||
_matrix WorldMatrix = XMMatrixScaling(m_pRigidBody->Get_HalfGeometryInfo().x, m_pRigidBody->Get_HalfGeometryInfo().x, m_pRigidBody->Get_HalfGeometryInfo().x) * m_pTransformCom->Get_XMWorldMatrix();
|
||||
m_pSubShape->Draw(WorldMatrix, ViewMatrix, ProjMatrix, vColor, nullptr, true);
|
||||
|
||||
m_Batch->End();
|
||||
m_bRender = false;
|
||||
#endif // _DEBUG
|
||||
}
|
||||
return S_OK;
|
||||
|
||||
@@ -32,7 +32,7 @@ HRESULT CTerrain::Initialize(void* pArg)
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
m_fUsingSurfaceParams = 15.f / 27.f;
|
||||
m_fUsingSurfaceParams = SRO_PARAMETER;
|
||||
m_pTransformCom->Set_State(STATE::POSITION, XMVectorSetW(XMLoadFloat3(&pDesc->vPosition), 1.f));
|
||||
|
||||
{
|
||||
|
||||
@@ -62,10 +62,9 @@ HRESULT CTriggerBox::Initialize(TRIGGERBOX_DESC* pDesc)
|
||||
m_Batch = make_unique<PrimitiveBatch<VertexPositionColor>>(m_pContext);
|
||||
|
||||
#endif // _DEBUG
|
||||
_float3 vScale = { Desc.fRadius, Desc.fRadius, Desc.fRadius };
|
||||
_float3 vScale = { Desc.fRadius * 2.f, Desc.fRadius * 2.f, Desc.fRadius * 2.f };
|
||||
m_pTransformCom->Set_Scale(vScale);
|
||||
m_vScanTimer.y += m_pGameInstance->Real_Random_Float(0.f, 0.2f);
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
@@ -73,19 +72,20 @@ HRESULT CTriggerBox::Scan()
|
||||
{
|
||||
_float fRadius = m_pTransformCom->Get_Radius();
|
||||
|
||||
PSX::PxSweepBufferN<32> pxBuffer = {};
|
||||
_bool bHit = m_pGameInstance->SphereCast(fRadius, m_pTransformCom->Get_State(STATE::POSITION), XMVectorSet(0.f, 1.f, 0.f, 0.f), 1.1f,
|
||||
PSX::PxHitFlag::eDEFAULT, PSX::PxQueryFlag::eDYNAMIC, pxBuffer);
|
||||
PSX::PxOverlapBufferN<32> pxBuffer = {};
|
||||
_bool bHit = m_pGameInstance->Overlap(fRadius, m_pTransformCom->Get_State(STATE::POSITION),
|
||||
PSX::PxQueryFlag::eDYNAMIC | PSX::PxQueryFlag::eNO_BLOCK, pxBuffer);
|
||||
|
||||
const PSX::PxSweepHit & hit = pxBuffer.block;
|
||||
|
||||
PSX::PxOverlapHit & hit = pxBuffer.block;
|
||||
PSX::PxRigidActor* pActor = hit.actor;
|
||||
_uint iHitCount = pxBuffer.getNbAnyHits();
|
||||
_uint iHitCount = pxBuffer.getNbTouches();
|
||||
HRESULT hr = E_FAIL;
|
||||
if (bHit) {
|
||||
hr = CheckPlayerHit(pActor);
|
||||
if (FAILED(hr)) {
|
||||
for (_uint i = 0; i < iHitCount; ++i) {
|
||||
PSX::PxSweepHit* pHit = &pxBuffer.touches[i];
|
||||
PSX::PxOverlapHit* pHit = &pxBuffer.touches[i];
|
||||
hr = CheckPlayerHit(pHit->actor);
|
||||
if (SUCCEEDED(hr)) {
|
||||
break;
|
||||
|
||||
@@ -86,8 +86,10 @@ void CUI_Manager::Canvas_Change(UI_STATE eType)
|
||||
static_cast<CCanvasObject*>(m_pDialogue_Canvas)->Visible(false);
|
||||
static_cast<CGameObject*>(m_pInteraction_Key)->Set_Visible(true);
|
||||
static_cast<CGameObject*>(m_pNPCInteraction)->Set_Visible(true);
|
||||
|
||||
//static_cast<CGameObject*>(m_pBroom_TargetGate)->Set_Visible(false);
|
||||
|
||||
|
||||
break;
|
||||
|
||||
case UI_STATE::SPELL:
|
||||
|
||||
@@ -39,9 +39,7 @@ class CTroll_Rush final : public CEffect_Container
|
||||
CGameObject* Clone(void* pArg, CGameObject* pOwner) override;
|
||||
#ifdef _DEBUG
|
||||
void Describe_Entity() override;
|
||||
|
||||
#endif // _DEBUG
|
||||
|
||||
};
|
||||
|
||||
NS_END
|
||||
|
||||
@@ -3828,9 +3828,9 @@
|
||||
<Position x="0" y="0" z="0"/>
|
||||
<Scale x="1" y="1" z="1"/>
|
||||
<Rotation x="0" y="0" z="0"/>
|
||||
<MapContainerType type="0"/>
|
||||
<BoundingBox_Min x="20.465057" y="1.3057871" z="30.564905"/>
|
||||
<BoundingBox_Max x="134.30069" y="18.276127" z="138.82135"/>
|
||||
<MapContainerType type="1"/>
|
||||
<BoundingBox_Min x="-999" y="-999" z="-999"/>
|
||||
<BoundingBox_Max x="999" y="999" z="999"/>
|
||||
<PartObject Lod_Level="2" Key_Index="0">
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_TScrolls_Door</PrototypeTag>
|
||||
<PrototypeTag>Prototype_GameObject_SM_HM_TScrolls_Door_Lod1</PrototypeTag>
|
||||
|
||||
@@ -312,4 +312,24 @@
|
||||
<Surface>MRO</Surface>
|
||||
</Mesh>
|
||||
</SK_BRR_RouteMarker>
|
||||
<SM_HM_BLDG_TeaShop_Door_A mesh="3">
|
||||
<Mesh>
|
||||
<Material>T_HM_BLDG_TeaShop_Windows_A_Glass_D</Material>
|
||||
<Material>T_HM_BLDG_TeaShop_Windows_A_Glass_N</Material>
|
||||
<Material>T_HM_BLDG_TeaShop_Windows_A_Glass_MRO</Material>
|
||||
<Surface>MRO</Surface>
|
||||
</Mesh>
|
||||
<Mesh>
|
||||
<Material>T_HM_BLDG_TeaShop_Windows_A_Glass_D</Material>
|
||||
<Material>T_HM_BLDG_TeaShop_Windows_A_Glass_N</Material>
|
||||
<Material>T_HM_BLDG_TeaShop_Windows_A_Glass_MRO</Material>
|
||||
<Surface>MRO</Surface>
|
||||
</Mesh>
|
||||
<Mesh>
|
||||
<Material>T_HM_BLDG_TeaShop_Door_A_D</Material>
|
||||
<Material>T_HM_BLDG_TeaShop_Door_A_N</Material>
|
||||
<Material>T_HM_BLDG_TeaShop_Door_A_MRO</Material>
|
||||
<Surface>MRO</Surface>
|
||||
</Mesh>
|
||||
</SM_HM_BLDG_TeaShop_Door_A>
|
||||
</Instance>
|
||||
|
||||
Binary file not shown.
@@ -31,7 +31,7 @@
|
||||
<Rotation x="0" y="315" z="0"/>
|
||||
</Object>
|
||||
<Object ID="9" Index="6">
|
||||
<Position x="35.15633" y="1.5198594" z="50.624886"/>
|
||||
<Position x="35.15633" y="1.598594" z="50.624886"/>
|
||||
<Scale x="0.99999732" y="1" z="0.99999732"/>
|
||||
<Rotation x="0" y="120" z="0"/>
|
||||
</Object>
|
||||
@@ -50,4 +50,14 @@
|
||||
<Scale x="0.99980307" y="1" z="0.99980307"/>
|
||||
<Rotation x="0" y="210" z="0"/>
|
||||
</Object>
|
||||
<Object ID="14" Index="10">
|
||||
<Position x="113.73" y="13.5" z="96.3"/>
|
||||
<Scale x="0.99980307" y="1" z="0.99980307"/>
|
||||
<Rotation x="0" y="-74" z="0"/>
|
||||
</Object>
|
||||
<Object ID="15" Index="11">
|
||||
<Position x="123.5" y="16.4" z="117.7"/>
|
||||
<Scale x="0.99980307" y="1" z="0.99980307"/>
|
||||
<Rotation x="0" y="-27" z="0"/>
|
||||
</Object>
|
||||
</NPC>
|
||||
|
||||
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.
@@ -67,12 +67,12 @@ void CBuildingContainer::Late_Update(_float fTimeDelta)
|
||||
|
||||
for (auto& pCollisiton : m_ColiisonPartObjects)
|
||||
pCollisiton->Late_Update(fTimeDelta);
|
||||
if (m_pGameInstance->IsIn_WorldFrustum(XMVectorSetW(XMLoadFloat3(&m_vWorldExtentPosition), 1.f), m_fMaxRadius)) {
|
||||
// if (m_pGameInstance->IsIn_WorldFrustum(XMVectorSetW(XMLoadFloat3(&m_vWorldExtentPosition), 1.f), m_fMaxRadius)) {
|
||||
if (m_bOcclusionPassed)
|
||||
{
|
||||
if (m_fCamDepth > 100.f)
|
||||
{
|
||||
if (m_pOcclusionQueryCom->isDraw())
|
||||
// if (m_pOcclusionQueryCom->isDraw())
|
||||
__super::Late_Update(fTimeDelta);
|
||||
}
|
||||
else
|
||||
@@ -85,7 +85,7 @@ void CBuildingContainer::Late_Update(_float fTimeDelta)
|
||||
__super::Late_Update(fTimeDelta);
|
||||
}
|
||||
m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this);
|
||||
}
|
||||
// }
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -340,9 +340,9 @@ void CInstancedProp::Describe_Entity()
|
||||
m_iInstanceIndex = min(m_iInstanceIndex, m_iNumInstanceIndex);
|
||||
|
||||
GUI::Text("----- Transfrom ----");
|
||||
GUI::InputFloat("Right", &vMove.x, 0.1f, 5.f);
|
||||
GUI::InputFloat("Up", &vMove.y, 0.1f, 5.f);
|
||||
GUI::InputFloat("Look", &vMove.z, 0.1f, 5.f);
|
||||
GUI::InputFloat("Right", &vMove.x, 0.01f, 1.f);
|
||||
GUI::InputFloat("Up", &vMove.y, 0.01f, 1.f);
|
||||
GUI::InputFloat("Look", &vMove.z, 0.01f, 1.f);
|
||||
|
||||
m_pTransformCom->Move_Right(vMove.x);
|
||||
m_pTransformCom->Move_Up(vMove.y);
|
||||
|
||||
@@ -139,8 +139,8 @@ HRESULT CLevel_MapViewer::Ready_Layer_Background(const _wstring& strLayerTag)
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CDummySkyBox>(g_iStaticLevel, NEXT_LEVEL, strLayerTag)))
|
||||
return E_FAIL;
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CReparoObject>(g_iStaticLevel, NEXT_LEVEL, strLayerTag)))
|
||||
return E_FAIL;
|
||||
//if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CReparoObject>(g_iStaticLevel, NEXT_LEVEL, strLayerTag)))
|
||||
// return E_FAIL;
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
@@ -479,6 +479,14 @@ HRESULT CLevel_MapViewer::Ready_Layer_InstanceProp(const _wstring& strLayerTag)
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CInstancedProp>(g_iStaticLevel, NEXT_LEVEL, strLayerTag, &Desc)))
|
||||
return E_FAIL;
|
||||
|
||||
/* TeaShop_Door_A */
|
||||
Desc.bEditMode = false;
|
||||
Desc.isShake = false;
|
||||
Desc.strPrototypeTag = L"Prototype_Component_VIBuffer_Model_Instancel_TeaShop_Door_A";
|
||||
Desc.strInstanceDataPath = "../Bin/Resources/Data/Map/Instance/Door2b.bin";
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CInstancedProp>(g_iStaticLevel, NEXT_LEVEL, strLayerTag, &Desc)))
|
||||
return E_FAIL;
|
||||
|
||||
/* OakTree_TallA */
|
||||
Desc.bEditMode = false;
|
||||
Desc.isShake = false;
|
||||
|
||||
@@ -4193,7 +4193,7 @@ if(isLoad_Map)
|
||||
#pragma region INSTANCE_MODEL
|
||||
CVIBuffer_Model_Instance::INSTANCE_DESC InstanceDesc = {};
|
||||
|
||||
InstanceDesc.iNum = 50;
|
||||
InstanceDesc.iNum = 5;
|
||||
|
||||
///* For.Prototype_Component_VIBuffer_Model_Instancel */
|
||||
//if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_Model_Instancel"),
|
||||
@@ -4354,9 +4354,16 @@ if(isLoad_Map)
|
||||
|
||||
/* For.Prototype_Component_VIBuffer_Model_Instancel_SK_BRR_RouteMarker */
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_Model_Instancel_SK_BRR_RouteMarker"),
|
||||
CVIBuffer_Model_Instance::Create(m_pDevice, m_pContext, &InstanceDesc,
|
||||
"../Bin/Resources/Models/InstanceProp/SK_BRR_RouteMarker.fbx", "../Bin/Resources/Data/Map/Instance/InstanceMaterial.xml"))))
|
||||
CVIBuffer_Model_Instance::Create(m_pDevice, m_pContext,
|
||||
"../Bin/Resources/Models/InstanceProp/SK_BRR_RouteMarker.bin", "../Bin/Resources/Data/Map/Instance/InstanceMaterial.xml"))))
|
||||
return E_FAIL;
|
||||
|
||||
/* For.Prototype_Component_VIBuffer_Model_Instancel_TeaShop_Door_A */
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Prototype_Component_VIBuffer_Model_Instancel_TeaShop_Door_A"),
|
||||
CVIBuffer_Model_Instance::Create(m_pDevice, m_pContext,
|
||||
"../Bin/Resources/Models/InstanceProp/SM_HM_BLDG_TeaShop_Door_A.bin", "../Bin/Resources/Data/Map/Instance/InstanceMaterial.xml"))))
|
||||
return E_FAIL;
|
||||
|
||||
#pragma endregion // INSTANCE_MODEL
|
||||
|
||||
/* For.Prototype_Component_VIBuffer_Box */
|
||||
|
||||
@@ -57,6 +57,10 @@ HRESULT CMapElement_Door::Initialize(void* pArg)
|
||||
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);*/
|
||||
|
||||
_float3 vOffset = m_pModelComs[0]->Get_RadiusOffset();
|
||||
_matrix OffsetMatrix = XMMatrixTranslation(vOffset.x, vOffset.y, vOffset.z) * m_pTransformCom->Get_XMWorldMatrix();
|
||||
XMStoreFloat4(&m_vExtentPosition, OffsetMatrix.r[3]);
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
@@ -84,7 +88,7 @@ void CMapElement_Door::Late_Update(_float fTimeDelta)
|
||||
Describe_Entity();
|
||||
#endif
|
||||
|
||||
if (m_pGameInstance->IsIn_WorldFrustum(Get_WorldPostion(), m_pModelComs[0]->Get_Radius())) {
|
||||
if (m_pGameInstance->IsIn_WorldFrustum(XMLoadFloat4(&m_vExtentPosition), m_pModelComs[0]->Get_Radius())) {
|
||||
m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -75,17 +75,17 @@ 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_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;
|
||||
|
||||
#pragma region HOGSMEADE
|
||||
if (FAILED(Load_MapData("Hogsmeade_MapContainer_Data", LAYER_HOGSMEADE)))
|
||||
|
||||
@@ -40,7 +40,7 @@ class CMapElement_Door final : public CMapElement
|
||||
_float m_fMass = {};
|
||||
_float3 m_vBoxSize = {};
|
||||
#endif // _DEBUG
|
||||
|
||||
_float4 m_vExtentPosition = {};
|
||||
|
||||
private:
|
||||
virtual HRESULT Initialize_Prototype() override;
|
||||
|
||||
@@ -375,9 +375,17 @@ HRESULT CCharacter_Controller::Initialize(void* pArg)
|
||||
|
||||
PSX::PxRigidDynamic* pActor = m_pController->getActor();
|
||||
pActor->userData = &m_tagData;
|
||||
PSX::PxShape* shapes[8]{};
|
||||
PSX::PxU32 count = pActor->getShapes(shapes, 8);
|
||||
for (PSX::PxU32 i = 0; i < count; ++i)
|
||||
{
|
||||
shapes[i]->userData = &m_tagData;
|
||||
shapes[i]->setFlag(PSX::PxShapeFlag::eSCENE_QUERY_SHAPE, true);
|
||||
}
|
||||
m_pGameInstance->ApplyFilterData(pActor);
|
||||
m_pController->setStepOffset(pDesc->fStepOffset);
|
||||
|
||||
|
||||
if (nullptr == m_pController) {
|
||||
assert(false);
|
||||
return E_FAIL;
|
||||
|
||||
@@ -1098,6 +1098,10 @@ _bool CGameInstance::SphereCast(_float fRadius, _fvector vStartPos, _gvector vDi
|
||||
{
|
||||
return m_pPhysX_Manager->SphereCast(fRadius, vStartPos, vDir, fDistance, flagHitsData, flagQuery, hitBuffer);
|
||||
}
|
||||
_bool CGameInstance::Overlap(_float fRadius, _fvector vCenter, PSX::PxQueryFlags queryFlags, PSX::PxOverlapCallback& overlapBuffer, PSX::PxQueryFilterCallback* filterCallback)
|
||||
{
|
||||
return m_pPhysX_Manager->Overlap(fRadius, vCenter, queryFlags, overlapBuffer, filterCallback);
|
||||
}
|
||||
_bool CGameInstance::RayCast(_float3 _vStartPos, _float3 _vDir, _float fDistance, PSX::PxRaycastHit* pRayHitArray, _uint iMaxHitCapacity, _uint& iOutHitCount)
|
||||
{
|
||||
return m_pPhysX_Manager->RayCast(_vStartPos, _vDir, fDistance, pRayHitArray, iMaxHitCapacity, iOutHitCount);
|
||||
|
||||
@@ -347,6 +347,24 @@ _bool CPhysX_Manager::SphereCast(_float fRadius, _fvector _vStartPos, _gvector _
|
||||
return bHit;
|
||||
}
|
||||
|
||||
_bool CPhysX_Manager::Overlap(_float fRadius, _fvector vCenter, PSX::PxQueryFlags queryFlags, PSX::PxOverlapCallback& overlapBuffer, PSX::PxQueryFilterCallback* filterCallback)
|
||||
{
|
||||
const PSX::PxSphereGeometry sphereGeometry(fRadius);
|
||||
PSX::PxVec3 pxCenter = {};
|
||||
XMStoreFloat3((_float3*)&pxCenter, vCenter);
|
||||
const PSX::PxTransform spherePose(pxCenter);
|
||||
|
||||
PSX::PxQueryFilterData filterData;
|
||||
filterData.flags = queryFlags;
|
||||
|
||||
if (filterCallback != nullptr)
|
||||
filterData.flags |= PSX::PxQueryFlag::ePREFILTER;
|
||||
|
||||
_bool hit = m_pScene->overlap( sphereGeometry, spherePose, overlapBuffer, filterData, filterCallback );
|
||||
|
||||
return hit ? true : false;
|
||||
}
|
||||
|
||||
_bool CPhysX_Manager::RayCast(_float3 _vStartPos, _float3 _vDir, _float fDistance, PSX::PxRaycastHit* pRayHitArray, _uint iMaxHitCapacity, _uint& iOutHitCount)
|
||||
{
|
||||
return RayCast(XMLoadFloat3(&_vStartPos), XMLoadFloat3(&_vDir), fDistance, pRayHitArray, iMaxHitCapacity, iOutHitCount);
|
||||
@@ -680,7 +698,7 @@ void CPhysX_Manager::ApplyFilterData(PSX::PxRigidActor* pRigidActor)
|
||||
|
||||
PSX::PxFilterData DATAfilter = {};
|
||||
DATAfilter.word0 = CategoryBit; // 나는 누구인가
|
||||
DATAfilter.word1 = MaskBits; // 누구와 부딪힐 것인가
|
||||
DATAfilter.word1 = MaskBits; // 누구와 상호작용(충돌/쿼리)할 것인가
|
||||
|
||||
const PSX::PxU32 shapeCount = pRigidActor->getNbShapes();
|
||||
vector<PSX::PxShape*> shapes(shapeCount);
|
||||
@@ -688,8 +706,18 @@ void CPhysX_Manager::ApplyFilterData(PSX::PxRigidActor* pRigidActor)
|
||||
|
||||
for (PSX::PxShape* shape : shapes)
|
||||
{
|
||||
if (!shape) continue;
|
||||
|
||||
// 시뮬레이션 필터
|
||||
shape->setSimulationFilterData(DATAfilter);
|
||||
|
||||
// 씬쿼리(Overlap/Sweep/Raycast) 필터
|
||||
shape->setQueryFilterData(DATAfilter);
|
||||
|
||||
// 씬쿼리 대상 플래그 보장
|
||||
shape->setFlag(PSX::PxShapeFlag::eSCENE_QUERY_SHAPE, true);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
PSX::PxFilterFlags CPhysX_Manager::SimulationFilterShader(PSX::PxFilterObjectAttributes pxAttributes0, PSX::PxFilterData pxFilterData0, PSX::PxFilterObjectAttributes pxAttributes1, PSX::PxFilterData pxFilterData1, PSX::PxPairFlags& pxPairFlags, const void* pConstantBlock, PSX::PxU32 iConstantBlockSize)
|
||||
|
||||
@@ -208,6 +208,17 @@ void CRigidBody_Dynamic::Detach_Actor(_uint iLevel)
|
||||
m_bActive = false;
|
||||
}
|
||||
|
||||
void CRigidBody_Dynamic::SetActive(_bool bCondition)
|
||||
{
|
||||
m_bActive = bCondition;
|
||||
if (true == m_bActive) {
|
||||
m_pGameInstance->Attach_Actor(*m_pRigidBody, m_pGameInstance->Get_NextLevelID());
|
||||
}
|
||||
else {
|
||||
m_pGameInstance->Detach_Actor(*m_pRigidBody, m_pGameInstance->Get_NextLevelID());
|
||||
}
|
||||
}
|
||||
|
||||
_vector CRigidBody_Dynamic::Get_Position()
|
||||
{
|
||||
PSX::PxVec3 pxPos = m_pRigidBody->getGlobalPose().p;
|
||||
|
||||
@@ -227,6 +227,7 @@ class ENGINE_DLL CGameInstance final : public CBase
|
||||
|
||||
_bool SphereCast(_float fRadius, _float3 vStartPos, _float3 vDir, _float fDistance, PSX::PxHitFlags flagHitsData, PSX::PxQueryFlags flagQuery, PSX::PxSweepBuffer& hitBuffer);
|
||||
_bool SphereCast(_float fRadius, _fvector vStartPos, _gvector vDir, _float fDistance, PSX::PxHitFlags flagHitsData, PSX::PxQueryFlags flagQuery, PSX::PxSweepBuffer& hitBuffer);
|
||||
_bool Overlap(_float fRadius, _fvector vCenter, PSX::PxQueryFlags queryFlags, PSX::PxOverlapCallback& overlapBuffer, PSX::PxQueryFilterCallback* filterCallback = nullptr);
|
||||
_bool RayCast(_float3 _vStartPos, _float3 _vDir, _float fDistance, PSX::PxRaycastHit* pRayHitArray, _uint iMaxHitCapacity, _uint& iOutHitCount);
|
||||
_bool RayCast(_fvector _vStartPos, _gvector _vDir, _float fDistance, PSX::PxRaycastHit* pRayHitArray, _uint iMaxHitCapacity, _uint& iOutHitCount);
|
||||
|
||||
|
||||
@@ -46,7 +46,7 @@ class CPhysX_Manager final : public CBase
|
||||
|
||||
_bool SphereCast(_float fRadius, _float3 vStartPos, _float3 vDir, _float fDistance, PSX::PxHitFlags flagHitsData, PSX::PxQueryFlags flagQuery, PSX::PxSweepBuffer& hitBuffer);
|
||||
_bool SphereCast(_float fRadius, _fvector vStartPos, _gvector vDir, _float fDistance, PSX::PxHitFlags flagHitsData, PSX::PxQueryFlags flagQuery, PSX::PxSweepBuffer& hitBuffer);
|
||||
// _bool Overlap(_float fRadius, _fvector vStartPos, PSX::PxHitFlags flagHitsData, PSX::PxQueryFlags flagQuery, PSX::PxSweepBuffer& hitBuffer);
|
||||
_bool Overlap(_float fRadius, _fvector vCenter, PSX::PxQueryFlags queryFlags, PSX::PxOverlapCallback& overlapBuffer, PSX::PxQueryFilterCallback* filterCallback = nullptr);
|
||||
_bool RayCast(_float3 _vStartPos, _float3 _vDir, _float fDistance, PSX::PxRaycastHit* pRayHitArray, _uint iMaxHitCapacity, _uint& iOutHitCount);
|
||||
_bool RayCast(_fvector _vStartPos, _fvector _vDir, _float fDistance, PSX::PxRaycastHit* pRayHitArray, _uint iMaxHitCapacity, _uint& iOutHitCount);
|
||||
|
||||
|
||||
@@ -57,7 +57,7 @@ class ENGINE_DLL CRigidBody_Dynamic : public CRigidBody
|
||||
HRESULT ConvertToCCT(class CCharacter_Controller& CCTOriginal);
|
||||
void Detach_Actor(_uint iLevel);
|
||||
_bool IsActive() const { return m_bActive; }
|
||||
void SetActive(_bool bCondition) { m_bActive = bCondition; }
|
||||
void SetActive(_bool bCondition);
|
||||
|
||||
_vector Get_Position();
|
||||
void Set_Position(_vector vPos, _bool bTeleport);
|
||||
|
||||
Reference in New Issue
Block a user