[add] DebugCamera Editor
[add] DEbugPlane EffectEditor
This commit is contained in:
@@ -86,7 +86,7 @@ void CCamera_Debug::Priority_Update(_float fTimeDelta)
|
||||
|
||||
void CCamera_Debug::Update(_float fTimeDelta)
|
||||
{
|
||||
|
||||
Describe_Entity();
|
||||
}
|
||||
|
||||
void CCamera_Debug::Late_Update(_float fTimeDelta)
|
||||
@@ -176,4 +176,30 @@ void CCamera_Debug::Free()
|
||||
}
|
||||
void CCamera_Debug::Describe_Entity()
|
||||
{
|
||||
_float3 vPosition = {};
|
||||
GUI::Begin("CAMERA");
|
||||
GUI::PushItemWidth(IMGUI_GLOBAL_ITEM_WIDTH);
|
||||
if (m_pGameInstance->Key_Pressing(DIK_Y))
|
||||
{
|
||||
if (m_pGameInstance->isPicking(&vPosition))
|
||||
{
|
||||
GUI::InputFloat3("Pos", (float*)&vPosition);
|
||||
}
|
||||
}
|
||||
GUI::End();
|
||||
GUI::Begin("CAMERA");
|
||||
_int iPriority = m_iPriority;
|
||||
size_t iAddress = (size_t)this;
|
||||
_string strHeader = "DEBUG_CAMERA_Priority##" + to_string(iAddress);
|
||||
if (GUI::SliderInt(strHeader.c_str(), &iPriority, 45, 60)) {
|
||||
m_iPriority = iPriority;
|
||||
}
|
||||
if (GUI::CollapsingHeader("DebugCamera")) {
|
||||
m_pTransformCom->Describe_Entity();
|
||||
_float fFovYDegree = XMConvertToDegrees(m_fFovy);
|
||||
if (GUI::SliderFloat("FOV", &fFovYDegree, 0.01f, 89.f, "%.2f")) {
|
||||
m_fFovy = XMConvertToRadians(fFovYDegree);
|
||||
}
|
||||
}
|
||||
GUI::End();
|
||||
}
|
||||
|
||||
@@ -99,11 +99,11 @@ HRESULT CLevel_EffectViewer::Initialize()
|
||||
}
|
||||
|
||||
|
||||
//ZeroMemory(&m_PlaneData, sizeof(m_PlaneData));
|
||||
//m_PlaneData.eKind = PHYSX_KIND::BODY_STATIC;
|
||||
//m_PlaneData.iSubKind = ENUM_CLASS(PXOBJECT::TERRAIN);
|
||||
ZeroMemory(&m_PlaneData, sizeof(m_PlaneData));
|
||||
m_PlaneData.eKind = PHYSX_KIND::BODY_STATIC;
|
||||
m_PlaneData.iSubKind = ENUM_CLASS(PXOBJECT::TERRAIN);
|
||||
|
||||
//m_pGameInstance->Add_Editor_Plane(m_PlaneData);
|
||||
m_pGameInstance->Add_Editor_Plane(m_PlaneData);
|
||||
|
||||
|
||||
/* 호그 스미드 */
|
||||
|
||||
@@ -60,7 +60,7 @@ void CLevel_Logo::Update(_float fTimeDelta)
|
||||
return;
|
||||
#endif // gimch
|
||||
#ifdef 기무리
|
||||
if (FAILED(m_pGameInstance->Change_Level(CLevel_Loading::Create(m_pDevice, m_pContext, LEVEL::LOADING, LEVEL::OBJECT))))
|
||||
if (FAILED(m_pGameInstance->Change_Level(CLevel_Loading::Create(m_pDevice, m_pContext, LEVEL::LOADING, LEVEL::EFFECT))))
|
||||
return;
|
||||
#endif // 기무리
|
||||
#ifdef 진우
|
||||
|
||||
@@ -477,11 +477,11 @@ HRESULT CPhysX_Manager::SaveTriMeshes(const _char* pPath, vector<PSX::PxTriangle
|
||||
void CPhysX_Manager::Add_Editor_Plane(PHYSX_USERDATA& PlaneData)
|
||||
{
|
||||
PlaneData.eKind = PHYSX_KIND::BODY_STATIC;
|
||||
PlaneData.iSubKind = UINT_MAX;
|
||||
PlaneData.iSubKind = ENUM_CLASS(PXOBJECT::TERRAIN);
|
||||
PlaneData.pOwner = nullptr;
|
||||
PlaneData.pBody = nullptr;
|
||||
|
||||
PSX::PxRigidStatic* pGroundPlane = PxCreatePlane(*m_pPhysics, physx::PxPlane(0, 1, 0, 0), *m_pMaterials[ENUM_CLASS(PXMATERIAL::DEFAULT)]);
|
||||
PSX::PxRigidStatic* pGroundPlane = PxCreatePlane(*m_pPhysics, physx::PxPlane(0, 1, 0, 14.210f), *m_pMaterials[ENUM_CLASS(PXMATERIAL::DEFAULT)]);
|
||||
pGroundPlane->userData = &PlaneData;
|
||||
pGroundPlane->setName("PHYSX_EDITPLANE");
|
||||
m_pScene->addActor(*pGroundPlane);
|
||||
|
||||
@@ -251,10 +251,10 @@ class ENGINE_DLL CGameInstance final : public CBase
|
||||
void ApplyFilterData(PSX::PxRigidActor* pRigidActor);
|
||||
HRESULT ConvertToTriMeshes(vector<class CMesh*>& Meshes, vector<class PSX::PxTriangleMesh*>& pxTriMeshes, _fmatrix WorldMatrix = XMMatrixIdentity());
|
||||
#ifdef EDITOR_PROJECT
|
||||
void Add_Editor_Plane(PHYSX_USERDATA& PlaneData);
|
||||
HRESULT SaveTriMeshes(const _char* pPath, vector<PSX::PxTriangleMesh*>& TriMeshes);
|
||||
#endif // EDITOR_PROJECT
|
||||
HRESULT LoadTriMeshes(const _char* pPath, vector<PSX::PxTriangleMesh*>& TriMeshes); // 모델 불러왔던 경로에 그대로 있음
|
||||
void Add_Editor_Plane(PHYSX_USERDATA& PlaneData);
|
||||
#pragma endregion
|
||||
#pragma region THREADHOLDER
|
||||
template<class Function, class... Args>
|
||||
|
||||
Reference in New Issue
Block a user