This commit is contained in:
GiJungSUk
2025-12-02 10:14:10 +09:00
parent 9757fdc010
commit cbeee05cfd
81 changed files with 2114 additions and 148 deletions
+2 -12
View File
@@ -373,22 +373,12 @@ void CPlayer::Update_CameraCoordinateSystem()
_matrix CPlayer::Get_WandPos()
{
CModel* pWand = Get_PartObject<CWand>()->Get_Component<CModel>();
CWand* pWand = Get_PartObject<CWand>();
if (pWand == nullptr)
return _matrix();
_matrix BoneMatrix = XMLoadFloat4x4(pWand->Get_BoneMatrixPtr("root"));
BoneMatrix = BoneMatrix * m_pTransformCom->Get_XMWorldMatrix();
_float3 vOffset = _float3(0.f, -0.27f, -0.32f);
BoneMatrix.r[3] += XMVector3Normalize(BoneMatrix.r[0]) * vOffset.x;
BoneMatrix.r[3] += XMVector3Normalize(BoneMatrix.r[1]) * vOffset.y;
BoneMatrix.r[3] += XMVector3Normalize(BoneMatrix.r[2]) * vOffset.z;
return BoneMatrix;
return pWand->Get_WorldMatrix();
}
void CPlayer::Play_Event()