Merge branch 'Develope' into Effect

This commit is contained in:
GiJungSUk
2025-11-28 16:59:57 +09:00
87 changed files with 6966 additions and 608 deletions
@@ -502,8 +502,7 @@ HRESULT CPhysX_Manager::Initialize()
// m_pScene->overlap();??????
#ifdef EDITOR_PROJECT
#ifdef 기무리
PlaneData.eKind = PHYSX_KIND::BODY_STATIC;
PlaneData.iSubKind = UINT_MAX;
PlaneData.pOwner = nullptr;
@@ -514,115 +513,6 @@ HRESULT CPhysX_Manager::Initialize()
pGroundPlane->setName("PHYSX_MANAGER_PLANE");
m_pScene->addActor(*pGroundPlane);;
//{
// float halfExtent = .5f;
// physx::PxShape* shape = m_pPhysics->createShape(physx::PxSphereGeometry(halfExtent), *pMaterial);
// physx::PxU32 size = 30;
// physx::PxTransform pxTransform(physx::PxVec3(0));
// for (physx::PxU32 i = 0; i < size; i++) {
// for (physx::PxU32 j = 0; j < size - i; j++) {
// physx::PxTransform localTm(physx::PxVec3(physx::PxReal(j * 2) - physx::PxReal(size - i) + 100, physx::PxReal(i * 2 + 1), 0) * halfExtent);
// physx::PxRigidDynamic* body = m_pPhysics->createRigidDynamic(pxTransform.transform(localTm));
// body->attachShape(*shape);
// physx::PxRigidBodyExt::updateMassAndInertia(*body, 10.0f);
// m_pScene->addActor(*body);
// }
// }
//}
#endif // 기무리
#ifdef 진우
PlaneData.eKind = PHYSX_KIND::BODY_STATIC;
PlaneData.iSubKind = UINT_MAX;
PlaneData.pOwner = nullptr;
PlaneData.pBody = nullptr;
PSX::PxRigidStatic* pGroundPlane = PxCreatePlane(*m_pPhysics, physx::PxPlane(0, 1, 0, 0), *m_pMaterials[ENUM_CLASS(PXMATERIAL::DEFAULT)]);
pGroundPlane->userData = &PlaneData;
pGroundPlane->setName("PHYSX_MANAGER_PLANE");
m_pScene->addActor(*pGroundPlane);;
//{
// float halfExtent = .5f;
// physx::PxShape* shape = m_pPhysics->createShape(physx::PxSphereGeometry(halfExtent), *pMaterial);
// physx::PxU32 size = 30;
// physx::PxTransform pxTransform(physx::PxVec3(0));
// for (physx::PxU32 i = 0; i < size; i++) {
// for (physx::PxU32 j = 0; j < size - i; j++) {
// physx::PxTransform localTm(physx::PxVec3(physx::PxReal(j * 2) - physx::PxReal(size - i) + 100, physx::PxReal(i * 2 + 1), 0) * halfExtent);
// physx::PxRigidDynamic* body = m_pPhysics->createRigidDynamic(pxTransform.transform(localTm));
// body->attachShape(*shape);
// physx::PxRigidBodyExt::updateMassAndInertia(*body, 10.0f);
// m_pScene->addActor(*body);
// }
// }
//}
#endif // 진우
#ifdef gimch
PlaneData.eKind = PHYSX_KIND::BODY_STATIC;
PlaneData.iSubKind = UINT_MAX;
PlaneData.pOwner = nullptr;
PlaneData.pBody = nullptr;
m_pMaterials.reserve(ENUM_CLASS(PXMATERIAL::END));
m_pMaterials.push_back(m_pPhysics->createMaterial(0.5f, 0.5f, 0.6f));
PSX::PxRigidStatic* pGroundPlane = PxCreatePlane(*m_pPhysics, physx::PxPlane(0, 1, 0, 0), *m_pMaterials[ENUM_CLASS(PXMATERIAL::DEFAULT)]);
pGroundPlane->userData = &PlaneData;
pGroundPlane->setName("PHYSX_MANAGER_PLANE");
m_pScene->addActor(*pGroundPlane);;
//{
// float halfExtent = .5f;
// physx::PxShape* shape = m_pPhysics->createShape(physx::PxSphereGeometry(halfExtent), *pMaterial);
// physx::PxU32 size = 30;
// physx::PxTransform pxTransform(physx::PxVec3(0));
// for (physx::PxU32 i = 0; i < size; i++) {
// for (physx::PxU32 j = 0; j < size - i; j++) {
// physx::PxTransform localTm(physx::PxVec3(physx::PxReal(j * 2) - physx::PxReal(size - i) + 100, physx::PxReal(i * 2 + 1), 0) * halfExtent);
// physx::PxRigidDynamic* body = m_pPhysics->createRigidDynamic(pxTransform.transform(localTm));
// body->attachShape(*shape);
// physx::PxRigidBodyExt::updateMassAndInertia(*body, 10.0f);
// m_pScene->addActor(*body);
// }
// }
//}
#endif // 진우
#endif // EDITOR_PROJECT
#ifdef Bin
PlaneData.eKind = PHYSX_KIND::BODY_STATIC;
PlaneData.iSubKind = UINT_MAX;
PlaneData.pOwner = nullptr;
PlaneData.pBody = nullptr;
PSX::PxRigidStatic* pGroundPlane = PxCreatePlane(*m_pPhysics, physx::PxPlane(0, 1, 0, 0), *m_pMaterials[ENUM_CLASS(PXMATERIAL::DEFAULT)]);
pGroundPlane->userData = &PlaneData;
pGroundPlane->setName("PHYSX_MANAGER_PLANE");
m_pScene->addActor(*pGroundPlane);;
//{
// float halfExtent = .5f;
// physx::PxShape* shape = m_pPhysics->createShape(physx::PxSphereGeometry(halfExtent), *pMaterial);
// physx::PxU32 size = 30;
// physx::PxTransform pxTransform(physx::PxVec3(0));
// for (physx::PxU32 i = 0; i < size; i++) {
// for (physx::PxU32 j = 0; j < size - i; j++) {
// physx::PxTransform localTm(physx::PxVec3(physx::PxReal(j * 2) - physx::PxReal(size - i) + 100, physx::PxReal(i * 2 + 1), 0) * halfExtent);
// physx::PxRigidDynamic* body = m_pPhysics->createRigidDynamic(pxTransform.transform(localTm));
// body->attachShape(*shape);
// physx::PxRigidBodyExt::updateMassAndInertia(*body, 10.0f);
// m_pScene->addActor(*body);
// }
// }
//}
#endif // 진우
return S_OK;
}
+2 -17
View File
@@ -82,25 +82,10 @@ class CPhysX_Manager final : public CBase
unordered_set<PSX::PxActor*> m_pRestBodies = { }; // 피직스의 액터로 구별되기 때문에 피직스액터 포인터를 키로 사용함
map<_wstring, PSX::PxTriangleMesh*> m_TriangleMeshes = {};
map<_wstring, PSX::PxTriangleMeshGeometry*> m_TriangleMeshGeometry = {};
#ifdef 기무리
PhsXUserData PlaneData = {};
#endif // 기무리
#ifdef 진우
PhsXUserData PlaneData = {};
#endif // 기무리
#ifdef gimch
PhsXUserData PlaneData = {};
#endif // 기무리
#ifdef Bin
PhsXUserData PlaneData = {};
#endif // 기무리
vector<PSX::PxMaterial*> m_pMaterials = { };
_uint m_iNumLevel = {};
private: