[fix] jap speed
This commit is contained in:
@@ -63,9 +63,11 @@ HRESULT CLevel_GamePlay::Initialize()
|
||||
|
||||
void CLevel_GamePlay::Update(_float fTimeDelta)
|
||||
{
|
||||
if (m_pGameInstance->Key_Up(DIK_ADD))
|
||||
{
|
||||
m_pGameInstance->Set_LevelToChange();
|
||||
if (m_pGameInstance->Key_Pressing(DIK_0)) {
|
||||
if (m_pGameInstance->Key_Up(DIK_1))
|
||||
{
|
||||
m_pGameInstance->Set_LevelToChange();
|
||||
}
|
||||
}
|
||||
|
||||
m_pInfoInstance->Update(fTimeDelta);
|
||||
|
||||
@@ -99,7 +99,7 @@ void CNomalJap::Update(_float fTimeDelta)
|
||||
XMStoreFloat3(&m_vDirection, XMVector4Normalize(vTargetPos - vCurrentPos));
|
||||
|
||||
_float fDistance = XMVectorGetX(XMVector3Length(vTargetPos - vCurrentPos));
|
||||
m_fLinearSpeed = fDistance / (m_fDuration - m_fAccTime);
|
||||
m_fLinearSpeed = fDistance / (m_fDuration - m_fAccTime) * 10 / 3;
|
||||
SAFE_RELEASE(m_pTargetUnit);
|
||||
}
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user