[add] Merge commit
This commit is contained in:
@@ -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