[add] PlayerRayCast

This commit is contained in:
kimnuri
2025-12-31 14:06:06 +09:00
parent 8919fb80a8
commit 63b11df315
17 changed files with 176 additions and 104 deletions
+23 -4
View File
@@ -382,10 +382,10 @@ HRESULT CLoader::Loading_For_GamePlay()
#endif //
#ifdef 기무리
isLoad_Background = true;
isLoad_Hogwart = false;
isLoad_UI_SEQUANTIAL = false;
isLoad_NPC = false;
isLoad_Monster = false;
isLoad_Hogwart = true;
isLoad_UI_SEQUANTIAL = true;
isLoad_NPC = true;
isLoad_Monster = true;
#endif //
#ifdef 인혁
isLoad_Background = false;
@@ -1719,6 +1719,25 @@ HRESULT CLoader::Loading_For_GamePlay()
return E_FAIL;
}
}
{
CRigidBody_Dynamic::RIGIDBODY_PROTOTYPE_DYNAMIC_DESC Desc{};
Desc.eType = ACTOR::SPHERE;
Desc.ePxRigidBodyFlags = { PSX::PxRigidBodyFlag::eKINEMATIC };
Desc.ePxShapeFlags = { PSX::PxShapeFlag::eVISUALIZATION | PSX::PxShapeFlag::eSCENE_QUERY_SHAPE | PSX::PxShapeFlag::eSIMULATION_SHAPE };
Desc.ePxMaterialTypes = { PXMATERIAL::DEFAULT };
Desc.vMatInfo = { 0.5f, 0.5f, 0.001f };
Desc.fContactOffset = { 0.005f };
Desc.vhalfGeometryInfo = { 0.25f, 0.25f, 0.25f };
Desc.fDensity = 0.01f;
Desc.pxMassCenter = PSX::PxTransform(PSX::PxIDENTITY());
Desc.eLockFlag = {};
Desc.vAutoDamping = { 1200.f, 1200.f };
Desc.vLocalRotQ = { 0.f, 0.f, 0.f, 1.f };
Desc.vLocalTranslation = { 0.f, 1.9f, 0.f };
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("PHYSX_NPC_HITBOX"), CRigidBody_Dynamic::Create(m_pDevice, m_pContext, Desc)))) {
return E_FAIL;
}
}
{
CRigidBody_Dynamic::RIGIDBODY_PROTOTYPE_DYNAMIC_DESC Desc{};
Desc.eType = ACTOR::CAPSULE;