diff --git a/Jusin154_Team3D/Client/Private/BroomRaceManager.cpp b/Jusin154_Team3D/Client/Private/BroomRaceManager.cpp index f26f062cd..f13b319b6 100644 --- a/Jusin154_Team3D/Client/Private/BroomRaceManager.cpp +++ b/Jusin154_Team3D/Client/Private/BroomRaceManager.cpp @@ -473,7 +473,7 @@ void CBroomRaceManager::RaceReady() CTransform* pTransform = racer.pAI->Get_Component(); _float fRand = m_pGameInstance->Real_Random_Float(-10.f, 10.f); - spawnPos.m128_f32[0] += fRand; + spawnPos.m128_f32[2] += fRand; pTransform->Set_State(STATE::POSITION, spawnPos); pTransform->LookAt(pRingTransform->Get_State(STATE::POSITION)); @@ -482,8 +482,10 @@ void CBroomRaceManager::RaceReady() } else if (racer.pRacer) { + /*CTransform* pTransform = + racer.pRacer->Get_Component();*/ CTransform* pTransform = - racer.pRacer->Get_Component(); + racer.pRacer->Get_Broom()->Get_Component(); CCharacter_Controller* pCharacter = racer.pRacer->Get_Component(); pCharacter->Set_Position(spawnPos); pTransform->LookAt(pRingTransform->Get_State(STATE::POSITION)); diff --git a/Jusin154_Team3D/Client/Private/BuildingContainer.cpp b/Jusin154_Team3D/Client/Private/BuildingContainer.cpp index 279b1666d..36fe81431 100644 --- a/Jusin154_Team3D/Client/Private/BuildingContainer.cpp +++ b/Jusin154_Team3D/Client/Private/BuildingContainer.cpp @@ -35,7 +35,7 @@ void CBuildingContainer::Update(_float fTimeDelta) void CBuildingContainer::Late_Update(_float fTimeDelta) { if (m_pGameInstance->IsIn_WorldFrustum(XMVectorSetW(XMLoadFloat3(&m_vExtentWorldPosition), 1.f), m_fRadius)) { - if (m_fCamDepth > 100.f) + if (m_fCamDepth > 300.f) { if (m_pOcclusionQueryCom->isDraw()) __super::Late_Update(fTimeDelta); diff --git a/Jusin154_Team3D/Client/Private/Human_Duelist.cpp b/Jusin154_Team3D/Client/Private/Human_Duelist.cpp index b5dc84a62..0a664bcae 100644 --- a/Jusin154_Team3D/Client/Private/Human_Duelist.cpp +++ b/Jusin154_Team3D/Client/Private/Human_Duelist.cpp @@ -87,6 +87,10 @@ void CHuman_Duelist::Priority_Update(_float fTimeDelta) void CHuman_Duelist::Update(_float fTimeDelta) { + if (m_pGameInstance->Key_Up(DIK_J)) + { + m_pCharacter_Controller->Set_Position(XMVectorSet(1007.f, 6.f, 1016.f, 1.f)); + } m_pFSM->Update_State(fTimeDelta); m_pModelCom->Play_Animation(fTimeDelta *m_fEasing, m_pTransformCom); diff --git a/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp b/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp index 7be62d2ef..8636a7499 100644 --- a/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp +++ b/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp @@ -948,7 +948,7 @@ HRESULT CLevel_GamePlay::Ready_Layer_Player(const _wstring& strLayerTag) } } CHuman_Duelist::DUELISTDESC DuelistDesc = {}; - DuelistDesc.vPos = _float4(1003.f, 5.f, 1005.f, 1.f); + DuelistDesc.vPos = _float4(1007.f, 6.f, 1016.f, 1.f); DuelistDesc.vRotQ = _float4(0.f, 0.f, 0.f, 1.f); if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, strLayerTag, &DuelistDesc))) { return E_FAIL; @@ -1008,21 +1008,21 @@ HRESULT CLevel_GamePlay::Ready_Layer_Monster() #endif // Bin #endif // _DEBUG if (true == isLoad_Monster) { - for (_uint i = 0; i < 0; ++i) + for (_uint i = 0; i < 1; ++i) { if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_MONSTER))) { return E_FAIL; } } - for (_uint i = 0; i < 0; ++i) + for (_uint i = 0; i < 1; ++i) { if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_MONSTER))) { return E_FAIL; } } - for (_uint i = 0; i < 0; ++i) + for (_uint i = 0; i < 1; ++i) { if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_MONSTER))) { return E_FAIL; @@ -1034,12 +1034,12 @@ HRESULT CLevel_GamePlay::Ready_Layer_Monster() return E_FAIL; } - CRanrok::RANROKDESC RanrokDesc = {}; + /* CRanrok::RANROKDESC RanrokDesc = {}; RanrokDesc.vPos = _float4(-44.704f, 6.860f, 16.071f, 1.f); RanrokDesc.vRotQ = _float4(0.f, 0.f, 0.f, 1.f); if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_MONSTER,&RanrokDesc))) { return E_FAIL; - } + }*/ diff --git a/Jusin154_Team3D/Client/Private/MapObject_Render.cpp b/Jusin154_Team3D/Client/Private/MapObject_Render.cpp index 6a86d72e8..8a83927a3 100644 --- a/Jusin154_Team3D/Client/Private/MapObject_Render.cpp +++ b/Jusin154_Team3D/Client/Private/MapObject_Render.cpp @@ -60,10 +60,8 @@ HRESULT CMapObject_Render::Initialize(void* pArg) _matrix ColliderMatrix = XMMatrixTranslation(vOffset.x, vOffset.y, vOffset.z) * XMLoadFloat4x4(&m_CombinedWorldMatrix); XMStoreFloat4(&m_vExtentPosition, ColliderMatrix.r[3]); - ReadyForPhysX(); ConvertToPhysX(); - return S_OK; } @@ -164,7 +162,7 @@ void CMapObject_Render::ReadyForPhysX() { CModel* pModel = m_pModelComs[iIndexLOD]; - if (FAILED(pModel->Ready_PhysXMeshes(XMLoadFloat4x4(&m_CombinedWorldMatrix), iLevel))) { + if (FAILED(pModel->Ready_PhysXMeshes(XMMatrixIdentity(), iLevel))) { assert(false); } } @@ -172,7 +170,6 @@ void CMapObject_Render::ReadyForPhysX() void CMapObject_Render::ConvertToPhysX() { - XMStoreFloat4x4(&m_IdentityMatrix, XMMatrixIdentity()); if (true == m_bReadyToCreatePhysX) { return; } @@ -184,7 +181,7 @@ void CMapObject_Render::ConvertToPhysX() CModel* pModel = m_pModelComs[iIndexLOD]; _uint iNumMeshes = pModel->Get_NumMeshes(); - + for (_uint iIndex = 0; iIndex < iNumMeshes; ++iIndex) { _wstring wstrName = CMyTools::ToWstring(pModel->Get_MeshName(iIndex)) + to_wstring(iIndex); @@ -192,7 +189,7 @@ void CMapObject_Render::ConvertToPhysX() CRigidBody_Static::RIGIDBODY_STATIC_DESC Desc = {}; Desc.iSubKind = ENUM_CLASS(PXOBJECT::TERRAIN); Desc.pMeshName = wstrName.c_str(); - Desc.pWorldMatrix = &m_IdentityMatrix; + Desc.pWorldMatrix = &m_CombinedWorldMatrix; if (FAILED(__super::Add_Asset_Component(NEXT_LEVEL, wstrName, (CComponent**)&pRigidBody, &Desc))) { assert(false); } diff --git a/Jusin154_Team3D/Client/Private/Ranrok.cpp b/Jusin154_Team3D/Client/Private/Ranrok.cpp index 36f46dcac..ce5c51fb8 100644 --- a/Jusin154_Team3D/Client/Private/Ranrok.cpp +++ b/Jusin154_Team3D/Client/Private/Ranrok.cpp @@ -389,7 +389,7 @@ void CRanrok::OnCollision(CGameObject* pOther, void* pDesc) return; } - if (m_bFireBurst || m_pFSM->IsEnable(FSMSTATE::LAND|FSMSTATE::TUCKED)) + if (m_bFireBurst || m_pFSM->IsEnable(FSMSTATE::LAND|FSMSTATE::TUCKED) || m_pModelCom->Get_AnimIndex() == m_Animation[STATEANIM::HIT_BWD2].first) return; ON_COLLISION_INFO* CollisionDesc = static_cast(pDesc); diff --git a/Jusin154_Team3D/Client/Private/Ranrok_Prop.cpp b/Jusin154_Team3D/Client/Private/Ranrok_Prop.cpp index f3ae36c38..7096a4c3d 100644 --- a/Jusin154_Team3D/Client/Private/Ranrok_Prop.cpp +++ b/Jusin154_Team3D/Client/Private/Ranrok_Prop.cpp @@ -131,7 +131,7 @@ HRESULT CRanrok_Prop::Pre_Setting(CGameObject* pObject, void* pArg) _vector vPos = pObject->Get_WorldPostion(); - _vector vRandomPos = XMVectorSet(m_pGameInstance->Real_Random_Float(-20.f, 20.f), m_pGameInstance->Real_Random_Float(5.f, 15.f), m_pGameInstance->Real_Random_Float(-20.f, 20.f), 0.f); + _vector vRandomPos = XMVectorSet(m_pGameInstance->Real_Random_Float(-20.f, 0.f), m_pGameInstance->Real_Random_Float(5.f, 15.f), m_pGameInstance->Real_Random_Float(-20.f, 0.f), 0.f); vPos += vRandomPos; diff --git a/Jusin154_Team3D/Client/Public/Ranrok.h b/Jusin154_Team3D/Client/Public/Ranrok.h index eb94849c3..691515ae9 100644 --- a/Jusin154_Team3D/Client/Public/Ranrok.h +++ b/Jusin154_Team3D/Client/Public/Ranrok.h @@ -74,7 +74,7 @@ class CRanrok final : public CMonster _uint iIndex = {}; DAMAGE_INFO m_DamageInfo; _bool m_bCollisionPlayer = { false }; - _float2 m_vCreatePropTime = { 0.f , 60.f }; + _float2 m_vCreatePropTime = { 0.f , 30.f }; private: virtual HRESULT Initialize_Prototype() override;