.
This commit is contained in:
@@ -158,27 +158,6 @@ _int CGameInstance::Random_Int(_int iMin, _int iMax)
|
||||
return iMin + (_int)(Random_Normal() * (iMax - iMin));
|
||||
}
|
||||
|
||||
void CGameInstance::BillBoard(CTransform* pTransform)
|
||||
{
|
||||
_matrix ScaleMatrix = {};
|
||||
|
||||
_matrix BillBoardMatrix = Get_Transform_Matrix(D3DTS::VIEW_INV);
|
||||
|
||||
_float3 vScale = pTransform->Get_Scale();
|
||||
|
||||
_vector vPosition = pTransform->Get_State(STATE::POSITION);
|
||||
|
||||
_matrix RotationMatrix = XMMatrixRotationAxis(XMVectorSet(0.f, 1.f, 0.f, 0.f), XMConvertToRadians(180.f));
|
||||
|
||||
ScaleMatrix = XMMatrixIdentity() * XMMatrixScaling(vScale.x, vScale.y, vScale.z);
|
||||
|
||||
BillBoardMatrix.r[3] = vPosition;
|
||||
|
||||
pTransform->Set_WorldMatrix(ScaleMatrix * RotationMatrix * BillBoardMatrix );
|
||||
|
||||
|
||||
}
|
||||
|
||||
void CGameInstance::Save_ModelFilePath(const _char* FilePath)
|
||||
{
|
||||
m_FilePaths.push_back(FilePath);
|
||||
@@ -291,7 +270,7 @@ void CGameInstance::Present_TimeCost() const
|
||||
GUI::SameLine(0.f, GUI::GetStyle().ItemInnerSpacing.x);
|
||||
GUI::Text("Timer_Occupancy %d", int(m_fTimer_Present / fTotal * 100.f));
|
||||
}
|
||||
|
||||
GUI::Text("GameInstance RefCNT : %d", m_iRefCnt);
|
||||
static float values[60] = {};
|
||||
static int values_offset = 0;
|
||||
static double refresh_time = 0.0;
|
||||
@@ -562,10 +541,12 @@ PSX::PxMaterial* CGameInstance::Get_Material(_float3& vMatInfo)
|
||||
{
|
||||
return m_pPhysX_Manager->Get_Material(vMatInfo);
|
||||
}
|
||||
HRESULT CGameInstance::Create_TriangleMesh(const _wstring& wstrMeshKey, CMesh* pMesh)
|
||||
|
||||
void CGameInstance::RegistTriMesh(const _char* pName, PSX::PxTriangleMesh* pPxTriMesh)
|
||||
{
|
||||
return m_pPhysX_Manager->Create_TriangleMesh(wstrMeshKey, pMesh);
|
||||
return m_pPhysX_Manager->RegistTriMesh(pName, pPxTriMesh);
|
||||
}
|
||||
|
||||
PSX::PxShape* CGameInstance::Create_Shape(ACTOR eType, _float3& vhalfGeometryInfo, PSX::PxMaterial& pxMaterial, _bool bExclusive, PSX::PxShapeFlags ePxShapeFlag)
|
||||
{
|
||||
return m_pPhysX_Manager->Create_Shape(eType, vhalfGeometryInfo, pxMaterial, bExclusive, ePxShapeFlag);
|
||||
@@ -578,6 +559,34 @@ const PSX::PxRigidStatic* CGameInstance::Add_StaticActor(CRigidBody& RigidBody)
|
||||
{
|
||||
return m_pPhysX_Manager->Add_StaticActor(RigidBody);
|
||||
}
|
||||
PSX::PxController* CGameInstance::Add_CapsuleController(PSX::PxCapsuleControllerDesc& Desc)
|
||||
{
|
||||
return m_pPhysX_Manager->Add_CapsuleController(Desc);
|
||||
}
|
||||
PSX::PxController* CGameInstance::Add_BoxController(PSX::PxBoxControllerDesc& Desc)
|
||||
{
|
||||
return m_pPhysX_Manager->Add_BoxController(Desc);
|
||||
}
|
||||
PSX::PxController* CGameInstance::Get_Controller(_uint iControllerIndex)
|
||||
{
|
||||
return m_pPhysX_Manager->Get_Controller(iControllerIndex);
|
||||
}
|
||||
void CGameInstance::ReleaseController(_uint iControllerIndex)
|
||||
{
|
||||
m_pPhysX_Manager->ReleaseController(iControllerIndex);
|
||||
}
|
||||
HRESULT CGameInstance::ConvertToTriMeshes(vector<class CMesh*>& Meshes, vector<class PSX::PxTriangleMesh*>& pxTriMeshes, _fmatrix WorldMatrix)
|
||||
{
|
||||
return m_pPhysX_Manager->ConvertToTriMeshes(Meshes, pxTriMeshes, WorldMatrix);
|
||||
}
|
||||
HRESULT CGameInstance::SaveTriMeshes(const _char* pPath, vector<PSX::PxTriangleMesh*>& TriMeshes)
|
||||
{
|
||||
return m_pPhysX_Manager->SaveTriMeshes(pPath, TriMeshes);
|
||||
}
|
||||
HRESULT CGameInstance::LoadTriMeshes(const _char* pPath, vector<PSX::PxTriangleMesh*>& TriMeshes)
|
||||
{
|
||||
return m_pPhysX_Manager->LoadTriMeshes(pPath, TriMeshes);
|
||||
}
|
||||
#pragma endregion
|
||||
|
||||
bool CGameInstance::Key_Pressing(int _iKey)
|
||||
|
||||
Reference in New Issue
Block a user