push
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user