@@ -123,7 +123,7 @@ HRESULT CAvadakedavra::Pre_Setting(CGameObject* pObject, void* pArg)
|
||||
}
|
||||
else {
|
||||
// 타겟이 없다면 현재위치 -> 카메라 룩벡터 * duration간 예상 이동거리 를 대상으로 지정
|
||||
XMStoreFloat4(&m_vTargetPos, vWandPos + vDirection * m_fLinearSpeed * 0.5f);
|
||||
XMStoreFloat4(&m_vTargetPos, vWandPos + vDirection * m_fLinearSpeed * 2.f);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -51,9 +51,12 @@ HRESULT CNomalJap::Initialize(void* pArg)
|
||||
|
||||
m_pProjectile_Side = Get_PartObject<CEffectParts>("JapProjSide");
|
||||
m_pProjectile = Get_PartObject<CEffectParts>("JapProjCircle");
|
||||
m_pJapFire = Get_PartObject<CEffectParts>("JapFire");
|
||||
|
||||
SAFE_ADDREF(m_pProjectile);
|
||||
SAFE_ADDREF(m_pProjectile_Side);
|
||||
SAFE_ADDREF(m_pJapFire);
|
||||
|
||||
|
||||
m_fDuration = 1.7f;
|
||||
assert(m_fDuration > 0.f);
|
||||
@@ -87,6 +90,7 @@ void CNomalJap::Update(_float fTimeDelta)
|
||||
// 선속도
|
||||
m_pProjectile_Side->Get_Component<CTransform>()->Translation(vDirection * m_fLinearSpeed * fTimeDelta);
|
||||
m_pProjectile->Get_Component<CTransform>()->Translation(vDirection * m_fLinearSpeed * fTimeDelta);
|
||||
m_pJapFire->Get_Component<CTransform>()->Translation(vDirection * m_fLinearSpeed * fTimeDelta);
|
||||
|
||||
//Up벡터 방향으로 파이만큼 이동
|
||||
|
||||
@@ -97,6 +101,7 @@ void CNomalJap::Update(_float fTimeDelta)
|
||||
|
||||
m_pProjectile_Side->Get_Component<CTransform>()->Translation(XMLoadFloat3(&m_vRotateUp) * sinf(m_fAccRotateTime) * m_fRotateAmount);
|
||||
m_pProjectile->Get_Component<CTransform>()->Translation(XMLoadFloat3(&m_vRotateUp) * sinf(m_fAccRotateTime) * m_fRotateAmount);
|
||||
m_pJapFire->Get_Component<CTransform>()->Translation(XMLoadFloat3(&m_vRotateUp) * sinf(m_fAccRotateTime) * m_fRotateAmount);
|
||||
|
||||
// 내 라이트 방향으로 좌우무빙 하도록 해보자
|
||||
|
||||
@@ -108,6 +113,7 @@ void CNomalJap::Update(_float fTimeDelta)
|
||||
|
||||
m_pProjectile_Side->Get_Component<CTransform>()->Translation(XMLoadFloat3(&m_vRotateRight) * sinf(m_fAccZigZagTime) * m_fZigZagAmount);
|
||||
m_pProjectile->Get_Component<CTransform>()->Translation(XMLoadFloat3(&m_vRotateRight) * sinf(m_fAccZigZagTime) * m_fZigZagAmount);
|
||||
m_pJapFire->Get_Component<CTransform>()->Translation(XMLoadFloat3(&m_vRotateRight) * sinf(m_fAccZigZagTime) * m_fZigZagAmount);
|
||||
|
||||
XMStoreFloat4(&m_vEndPos, m_pProjectile->Get_WorldPostion());
|
||||
|
||||
@@ -128,7 +134,6 @@ void CNomalJap::Late_Update(_float fTimeDelta)
|
||||
|
||||
OnCollision(this, &CollisionInfo);
|
||||
}
|
||||
Get_PartObject<CTrailObject>()->Trail_Update(m_pProjectile->Get_Component<CTransform>()->Get_XMWorldMatrix(), fTimeDelta);
|
||||
|
||||
__super::Late_Update(fTimeDelta);
|
||||
}
|
||||
@@ -148,14 +153,12 @@ HRESULT CNomalJap::Pre_Setting(CGameObject* pObject, void* pArg)
|
||||
/* 초기 객체 위치 초기화 */
|
||||
m_pProjectile->Get_Component<CTransform>()->Set_State(STATE::POSITION, vStartPos);
|
||||
m_pProjectile_Side->Get_Component<CTransform>()->Set_State(STATE::POSITION, vStartPos);
|
||||
m_pJapFire->Get_Component<CTransform>()->Set_State(STATE::POSITION, vStartPos);
|
||||
|
||||
/* 초기 객체 비지블 */
|
||||
m_pProjectile->Set_Visible(true);
|
||||
m_pProjectile_Side->Set_Visible(true);
|
||||
|
||||
/*트레일 초기화 */
|
||||
Get_PartObject<CTrailObject>()->Set_Visible(true);
|
||||
Get_PartObject<CTrailObject>()->Get_Component<CTrail>()->Reset_Trail();
|
||||
m_pJapFire->Set_Visible(true);
|
||||
|
||||
_uint iIndex = *static_cast<_uint*>(pArg);
|
||||
|
||||
@@ -305,10 +308,8 @@ void CNomalJap::OnCollision(CGameObject* pOther, void* pDesc)
|
||||
|
||||
m_pProjectile_Side->Set_Visible(false);
|
||||
m_pProjectile->Set_Visible(false);
|
||||
Get_PartObject<CEffectParts>("Circle_Particle_Red")->Set_Visible(false);
|
||||
m_pJapFire->Get_Component<CTransform>()->Set_State(STATE::POSITION, XMVectorSet(0.f, -9999.f, 0.f, 1.f));
|
||||
|
||||
Get_PartObject<CTrailObject>()->Set_Visible(false);
|
||||
Get_PartObject<CTrailObject>()->Get_Component<CTransform>()->Set_State(STATE::POSITION, XMVectorSet(0.f, 0.f, 0.f, 1.f));
|
||||
}
|
||||
m_bHitShield = false;
|
||||
}
|
||||
@@ -319,7 +320,7 @@ void CNomalJap::Free()
|
||||
|
||||
Safe_Release(m_pProjectile);
|
||||
Safe_Release(m_pProjectile_Side);
|
||||
|
||||
Safe_Release(m_pJapFire);
|
||||
}
|
||||
#ifdef _DEBUG
|
||||
|
||||
|
||||
@@ -39,9 +39,10 @@ class CNomalJap final : public CEffect_Container
|
||||
, _float4(95.f , 0.f , 0.f , 0.f)
|
||||
, _float4(105.f , 250.f , 35.f , 60.f) };
|
||||
|
||||
class CPartObject* m_pProjectile = {};
|
||||
class CPartObject* m_pProjectile_Side = {};
|
||||
|
||||
class CPartObject* m_pProjectile = { nullptr };
|
||||
class CPartObject* m_pProjectile_Side = { nullptr };
|
||||
class CPartObject* m_pJapFire = { nullptr };
|
||||
|
||||
_float3 m_vRotateUp = {};
|
||||
_float m_fAccMoveTime = {};
|
||||
_float m_fAccRotateTime = {};
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1687,7 +1687,7 @@ HRESULT CLoader::Loading_For_Effect()
|
||||
));
|
||||
|
||||
futures.emplace_back(Deferred_ModelLoad(
|
||||
MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/PlayableCharacter/Playable.bin", XMMatrixRotationZ(XMConvertToRadians(180.f)) * XMMatrixIdentity(),
|
||||
MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/PlayableCharacter/Playable.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(),
|
||||
TEXT("Prototype_Component_Playable_Model")
|
||||
));
|
||||
|
||||
|
||||
@@ -49,9 +49,11 @@ HRESULT CNomalJap::Initialize(void* pArg)
|
||||
|
||||
m_pProjectile_Side = Get_PartObject<CEditEffect>("JapProjSide");
|
||||
m_pProjectile = Get_PartObject<CEditEffect>("JapProjCircle");
|
||||
m_pJapFire = Get_PartObject<CEditEffect>("JapFire");
|
||||
|
||||
SAFE_ADDREF(m_pProjectile);
|
||||
SAFE_ADDREF(m_pProjectile_Side);
|
||||
SAFE_ADDREF(m_pJapFire);
|
||||
|
||||
m_fDuration = 1.7f;
|
||||
assert(m_fDuration > 0.f);
|
||||
@@ -85,6 +87,7 @@ void CNomalJap::Update(_float fTimeDelta)
|
||||
// 선속도
|
||||
m_pProjectile_Side->Get_Component<CTransform>()->Translation(vDirection * m_fLinearSpeed * fTimeDelta);
|
||||
m_pProjectile->Get_Component<CTransform>()->Translation(vDirection * m_fLinearSpeed * fTimeDelta);
|
||||
m_pJapFire->Get_Component<CTransform>()->Translation(vDirection * m_fLinearSpeed * fTimeDelta);
|
||||
|
||||
//Up벡터 방향으로 파이만큼 이동
|
||||
|
||||
@@ -95,6 +98,7 @@ void CNomalJap::Update(_float fTimeDelta)
|
||||
|
||||
m_pProjectile_Side->Get_Component<CTransform>()->Translation(XMLoadFloat3(&m_vRotateUp) * sinf(m_fAccRotateTime) * m_fRotateAmount);
|
||||
m_pProjectile->Get_Component<CTransform>()->Translation(XMLoadFloat3(&m_vRotateUp) * sinf(m_fAccRotateTime) * m_fRotateAmount);
|
||||
m_pJapFire->Get_Component<CTransform>()->Translation(XMLoadFloat3(&m_vRotateUp) * sinf(m_fAccRotateTime) * m_fRotateAmount);
|
||||
|
||||
// 내 라이트 방향으로 좌우무빙 하도록 해보자
|
||||
|
||||
@@ -106,6 +110,7 @@ void CNomalJap::Update(_float fTimeDelta)
|
||||
|
||||
m_pProjectile_Side->Get_Component<CTransform>()->Translation(XMLoadFloat3(&m_vRotateRight) * sinf(m_fAccZigZagTime) * m_fZigZagAmount);
|
||||
m_pProjectile->Get_Component<CTransform>()->Translation(XMLoadFloat3(&m_vRotateRight) * sinf(m_fAccZigZagTime) * m_fZigZagAmount);
|
||||
m_pJapFire->Get_Component<CTransform>()->Translation(XMLoadFloat3(&m_vRotateRight) * sinf(m_fAccZigZagTime) * m_fZigZagAmount);
|
||||
|
||||
XMStoreFloat4(&m_vEndPos, m_pProjectile->Get_WorldPostion());
|
||||
|
||||
@@ -130,8 +135,6 @@ void CNomalJap::Late_Update(_float fTimeDelta)
|
||||
_vector vEndPos = m_pProjectile->Get_WorldPostion();
|
||||
SweepTarget(vStartPos, vEndPos, 0.002f);
|
||||
}
|
||||
Get_PartObject<CTrailObject>()->Trail_Update(m_pProjectile->Get_Component<CTransform>()->Get_XMWorldMatrix(), fTimeDelta);
|
||||
|
||||
__super::Late_Update(fTimeDelta);
|
||||
}
|
||||
|
||||
@@ -150,14 +153,13 @@ HRESULT CNomalJap::Pre_Setting(CGameObject* pObject, void* pArg)
|
||||
/* 초기 객체 위치 초기화 */
|
||||
m_pProjectile->Get_Component<CTransform>()->Set_State(STATE::POSITION, vStartPos);
|
||||
m_pProjectile_Side->Get_Component<CTransform>()->Set_State(STATE::POSITION, vStartPos);
|
||||
m_pJapFire->Get_Component<CTransform>()->Set_State(STATE::POSITION, vStartPos);
|
||||
|
||||
/* 초기 객체 비지블 */
|
||||
m_pProjectile->Set_Visible(true);
|
||||
m_pProjectile_Side->Set_Visible(true);
|
||||
m_pJapFire->Set_Visible(true);
|
||||
|
||||
/*트레일 초기화 */
|
||||
Get_PartObject<CTrailObject>()->Set_Visible(true);
|
||||
Get_PartObject<CTrailObject>()->Get_Component<CTrail>()->Reset_Trail();
|
||||
|
||||
_uint iIndex = *static_cast<_uint*>(pArg);
|
||||
|
||||
@@ -297,10 +299,9 @@ void CNomalJap::OnCollision(CGameObject* pOther, void* pDesc)
|
||||
|
||||
m_pProjectile_Side->Set_Visible(false);
|
||||
m_pProjectile->Set_Visible(false);
|
||||
Get_PartObject<CEditEffect>("Circle_Particle_Red")->Set_Visible(false);
|
||||
m_pJapFire->Set_Visible(false);
|
||||
|
||||
|
||||
Get_PartObject<CTrailObject>()->Set_Visible(false);
|
||||
Get_PartObject<CTrailObject>()->Get_Component<CTransform>()->Set_State(STATE::POSITION, XMVectorSet(0.f, 0.f, 0.f, 1.f));
|
||||
dynamic_cast<CPlayer*>(m_pOwner->Get_Owner())->Start_CameraShake(0.2f, 1.f);
|
||||
}
|
||||
|
||||
@@ -310,6 +311,7 @@ void CNomalJap::Free()
|
||||
|
||||
Safe_Release(m_pProjectile);
|
||||
Safe_Release(m_pProjectile_Side);
|
||||
SAFE_RELEASE(m_pJapFire);
|
||||
|
||||
}
|
||||
#ifdef _DEBUG
|
||||
|
||||
@@ -40,8 +40,9 @@ class CNomalJap final : public CEffect_Container
|
||||
, _float4(35.f , 0.f , 0.f , 0.f)
|
||||
, _float4(45.f , 250.f , 35.f , 60.f) };
|
||||
|
||||
class CPartObject* m_pProjectile = {};
|
||||
class CPartObject* m_pProjectile_Side = {};
|
||||
class CPartObject* m_pProjectile = { nullptr };
|
||||
class CPartObject* m_pProjectile_Side = { nullptr };
|
||||
class CEditEffect* m_pJapFire = { nullptr };
|
||||
|
||||
_float3 m_vRotateUp = {};
|
||||
_float m_fAccMoveTime = {};
|
||||
|
||||
Reference in New Issue
Block a user