[Fix]
This commit is contained in:
@@ -40,6 +40,7 @@ void CLevel_Loading::Update(_float fTimeDelta)
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
#ifdef 기무리
|
||||
m_bNextLevel = true;
|
||||
#elif Bin
|
||||
m_bNextLevel = true;
|
||||
#endif // 기무리
|
||||
|
||||
@@ -28,6 +28,7 @@ void CLevel_Logo::Update(_float fTimeDelta)
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
#ifdef 기무리
|
||||
m_pGameInstance->Set_LevelToChange();
|
||||
#elif Bin
|
||||
m_pGameInstance->Set_LevelToChange();
|
||||
#endif // 기무리
|
||||
|
||||
@@ -221,7 +221,6 @@ void CPlayer::Late_Update(_float fTimeDelta)
|
||||
////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifdef 기무리
|
||||
#else Bin
|
||||
if (nullptr == m_pRobePart) {
|
||||
{
|
||||
CPlayerRobe::PlayerRobe_DESC Desc{};
|
||||
@@ -597,8 +596,6 @@ HRESULT CPlayer::Bind_ShaderParameters(_uint iMeshOrder)
|
||||
iColorMixerMethod = 1;
|
||||
break;
|
||||
#ifdef _DEBUG
|
||||
#ifdef 기무리
|
||||
#elif Bin
|
||||
case PLAYER_MESH_ORDER::ROBE_CLOTH:
|
||||
{
|
||||
CMesh* pMesh = m_pModelCom->Get_Mesh(ENUM_CLASS(PLAYER_MESH_ORDER::ROBE_CLOTH));
|
||||
@@ -616,8 +613,8 @@ HRESULT CPlayer::Bind_ShaderParameters(_uint iMeshOrder)
|
||||
for (_uint i = 0; i < MeshBoneCount; ++i)
|
||||
{
|
||||
_uint global = boneIndices[i];
|
||||
if (global == 38)
|
||||
continue;
|
||||
//if (global == 38)
|
||||
// continue;
|
||||
if (globalMask[global] == 1)
|
||||
{
|
||||
SkinMatrices[i] = m_pRobePart->Get_RobeJointAnchorMatrix(temp++);
|
||||
@@ -661,7 +658,6 @@ HRESULT CPlayer::Bind_ShaderParameters(_uint iMeshOrder)
|
||||
}
|
||||
}
|
||||
break;
|
||||
#endif
|
||||
#endif // _DEBUG
|
||||
|
||||
default:
|
||||
|
||||
@@ -13,6 +13,9 @@ CPlayerRobe::CPlayerRobe(const CPlayerRobe& Prototype)
|
||||
}
|
||||
void CPlayerRobe::Priority_Update(_float fTimeDelta)
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
Describe_Entity();
|
||||
#endif // _DEBUG
|
||||
}
|
||||
|
||||
void CPlayerRobe::Update(_float fTimeDelta)
|
||||
@@ -55,6 +58,12 @@ HRESULT CPlayerRobe::Update_RobeSocketPosition()
|
||||
PSX::PxTransform pxTransform = {};
|
||||
_matrix WorldMatrix = {};
|
||||
_matrix OwnerInvWorldMatrix = m_pParentTransformCom->Get_WorldMatrixInv();
|
||||
{
|
||||
pxTransform = m_pRobeMainAnchor->Get_GlobalPosition();
|
||||
WorldMatrix = XMMatrixAffineTransformation(XMVectorSet(1.f, 1.f, 1.f, 0.f), XMVectorZero(), XMLoadFloat4((_float4*)&pxTransform.q), XMVectorSetW(XMLoadFloat3((_float3*)&pxTransform.p), 1.f));
|
||||
_fmatrix LocalMatrix = WorldMatrix * OwnerInvWorldMatrix;
|
||||
m_pModelCom->Set_BoneCombinedTransformation("Hips_Cloth", LocalMatrix);
|
||||
}
|
||||
for (_uint i = 0; i < ENUM_CLASS(PLAYER_JOINT_BONE_ORDER::END); ++i) {
|
||||
pxTransform = m_pRobeJointAnchor[i]->Get_GlobalPosition();
|
||||
WorldMatrix = XMMatrixAffineTransformation(XMVectorSet(1.f, 1.f, 1.f, 0.f), XMVectorZero(), XMLoadFloat4((_float4*)&pxTransform.q), XMVectorSetW(XMLoadFloat3((_float3*)&pxTransform.p), 1.f));
|
||||
@@ -654,6 +663,15 @@ void CPlayerRobe::Free()
|
||||
|
||||
void CPlayerRobe::Describe_Entity()
|
||||
{
|
||||
GUI::Begin("PhysX");
|
||||
if (GUI::CollapsingHeader("Robe")) {
|
||||
for (_uint i = 0; i < ENUM_CLASS(PLAYER_JOINT_ORDER::END); ++i) {
|
||||
if (GUI::BeginChild("##i")) {
|
||||
|
||||
GUI::EndChild();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endif // _DEBUG
|
||||
|
||||
Reference in New Issue
Block a user