[merge commit]
This commit is contained in:
@@ -38,9 +38,19 @@ void CBroom::Priority_Update(_float fTimeDelta)
|
||||
|
||||
void CBroom::Update(_float fTimeDelta)
|
||||
{
|
||||
m_pModelCom->Play_Animation(fTimeDelta, m_pTransformCom);
|
||||
m_pModelCom->ComputeAnimation();
|
||||
|
||||
//m_pModelCom->ComputeSkinning();
|
||||
static _uint m_iIndex = 0;
|
||||
|
||||
if (m_pGameInstance->Key_Down(DIK_1))
|
||||
m_iIndex++;
|
||||
if (m_pGameInstance->Key_Down(DIK_2))
|
||||
m_iIndex--;
|
||||
|
||||
m_pModelCom->Set_AnimationIndex(m_iIndex);
|
||||
|
||||
|
||||
m_pModelCom->Play_Animation(fTimeDelta, m_pTransformCom);
|
||||
}
|
||||
|
||||
void CBroom::Late_Update(_float fTimeDelta)
|
||||
@@ -61,6 +71,9 @@ HRESULT CBroom::Render()
|
||||
|
||||
for (_uint i = 0; i < iNumMeshes; i++)
|
||||
{
|
||||
if (FAILED(m_pModelCom->Bind_BoneMatrices(i, m_pShaderCom, "g_BoneMatrices"))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pModelCom->Bind_Material(i, m_pShaderCom))) {
|
||||
return E_FAIL;
|
||||
@@ -69,9 +82,6 @@ HRESULT CBroom::Render()
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
//if (FAILED(m_pModelCom->Bind_CS_Output(5, i)))
|
||||
// return E_FAIL;
|
||||
|
||||
|
||||
if (FAILED(m_pModelCom->Render(i))) {
|
||||
return E_FAIL;
|
||||
|
||||
@@ -140,8 +140,8 @@ HRESULT CLevel_GamePlay::Ready_Layer_Player(const _wstring& strLayerTag)
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CPlayer>(g_iStaticLevel, NEXT_LEVEL, strLayerTag)))
|
||||
return E_FAIL;
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CBroom>(g_iStaticLevel, NEXT_LEVEL, strLayerTag)))
|
||||
return E_FAIL;
|
||||
/*if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CBroom>(g_iStaticLevel, NEXT_LEVEL, strLayerTag)))
|
||||
return E_FAIL;*/
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
@@ -71,13 +71,14 @@ HRESULT CPlayer::Initialize(void* pArg)
|
||||
void CPlayer::Priority_Update(_float fTimeDelta)
|
||||
{
|
||||
m_pTransformCom->RewindMomentum();
|
||||
m_pTransformCom->Set_State(STATE::POSITION, m_pCharacter_Controller->Get_Position());
|
||||
|
||||
__super::Priority_Update(fTimeDelta);
|
||||
}
|
||||
|
||||
void CPlayer::Update(_float fTimeDelta)
|
||||
{
|
||||
//m_pModelCom->ComputeSkinning();
|
||||
m_pModelCom->ComputeAnimation();
|
||||
|
||||
|
||||
IsSprint();
|
||||
IsWalk();
|
||||
@@ -87,6 +88,8 @@ void CPlayer::Update(_float fTimeDelta)
|
||||
|
||||
m_pModelCom->Play_Animation(fTimeDelta, m_pTransformCom);
|
||||
|
||||
|
||||
|
||||
__super::Update(fTimeDelta);
|
||||
Describe_Entity();
|
||||
m_pCharacter_Controller->Move(fTimeDelta);
|
||||
@@ -94,6 +97,9 @@ void CPlayer::Update(_float fTimeDelta)
|
||||
|
||||
void CPlayer::Late_Update(_float fTimeDelta)
|
||||
{
|
||||
|
||||
m_pTransformCom->Set_State(STATE::POSITION, m_pCharacter_Controller->Get_Position());
|
||||
|
||||
m_pGameInstance->Add_RenderGroup(RENDER::BLEND, this);
|
||||
|
||||
__super::Late_Update(fTimeDelta);
|
||||
@@ -120,9 +126,6 @@ HRESULT CPlayer::Render()
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
//if (FAILED(m_pModelCom->Bind_CS_Output(5, i)))
|
||||
// return E_FAIL;
|
||||
|
||||
if (FAILED(m_pModelCom->Render(i))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user