[Fix] 플레이어 애니메이션 튀는거 수정

[Add] 고블린 대거 추가
[Add] 트롤 돌 던지기 추가
This commit is contained in:
hyunbin14
2025-12-04 10:15:44 +09:00
parent 285d84b346
commit 32ca92ec36
26 changed files with 685 additions and 749 deletions
+30 -4
View File
@@ -92,6 +92,8 @@ HRESULT CPlayer::Initialize(void* pArg)
m_pInfoInstance->Regist_PlayerAlly(this);
m_pCharacter_Controller->Set_Position(XMVectorSet(-34.f, 5, -11.4f, 1.f));
#ifdef _DEBUG
m_BasicEffect = make_unique<BasicEffect>(m_pDevice);
m_BasicEffect->SetVertexColorEnabled(true);
@@ -107,7 +109,7 @@ HRESULT CPlayer::Initialize(void* pArg)
void CPlayer::Priority_Update(_float fTimeDelta)
{
ReLockOnTarget();
//SetGravity();
SetGravity();
m_pTransformCom->RewindMomentum();
__super::Priority_Update(fTimeDelta);
@@ -129,8 +131,6 @@ __super::Update(fTimeDelta);
Describe_Entity();
#endif // _DEBUG
{ // 세트
m_pCallBack_HitReport->BeginFrame();
m_pCharacter_Controller->Move(fTimeDelta);
@@ -498,9 +498,35 @@ void CPlayer::Describe_Entity()
GUI::Text("%d", m_iStateMask);
_vector xmvInputDir = XMVectorZero();
_vector xmvCamLook = XMVector4Normalize(XMVectorSet(m_vCameraLookDir.x, 0.f, m_vCameraLookDir.z, 0.f));
_vector xmvCamRight = XMVector4Normalize(XMVectorSet(m_vCameraRightDir.x, 0.f, m_vCameraRightDir.z, 0.f));
if (m_pGameInstance->Key_Pressing(DIK_W))
xmvInputDir += xmvCamLook;
if (m_pGameInstance->Key_Pressing(DIK_S))
xmvInputDir -= xmvCamLook;
if (m_pGameInstance->Key_Pressing(DIK_A))
xmvInputDir -= xmvCamRight;
if (m_pGameInstance->Key_Pressing(DIK_D))
xmvInputDir += xmvCamRight;
xmvInputDir = XMVector3Normalize(xmvInputDir);
_float2 vInputDir = { XMVectorGetX(xmvInputDir),XMVectorGetZ(xmvInputDir) };
_vector xmvCurLook = XMVector4Normalize(
XMVectorSetY(m_pTransformCom->Get_State(STATE::LOOK), 0.f));
_float2 vCurLook = { XMVectorGetX(xmvCurLook),XMVectorGetZ(xmvCurLook) };
_float vDir = CMyTools::Get_Direction2D(vCurLook, vInputDir);
_float degree = XMConvertToDegrees(vDir);
GUI::Text("Angle %.2f", degree);
m_pLightCom->Describe_Entity();
GUI::Text("HI Check %d",HI);
GUI::End();
}