[merge commit]
This commit is contained in:
@@ -44,6 +44,10 @@ HRESULT CGoblin_BattleAxe::Initialize(void* pArg)
|
||||
|
||||
void CGoblin_BattleAxe::Priority_Update(_float fTimeDelta)
|
||||
{
|
||||
if (m_bVisible) {
|
||||
XMStoreFloat4(&m_vStartAxePos, Get_WorldPostion());
|
||||
XMStoreFloat4(&m_vStartGripPos, Get_WorldPostion());
|
||||
}
|
||||
m_pModelCom->Combined_BoneMatrix();
|
||||
_matrix socketMatrix = {};
|
||||
|
||||
@@ -75,7 +79,13 @@ void CGoblin_BattleAxe::Update(_float fTimeDelta)
|
||||
|
||||
void CGoblin_BattleAxe::Late_Update(_float fTimeDelta)
|
||||
{
|
||||
m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this);
|
||||
if (m_bVisible) {
|
||||
m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this);
|
||||
SwingHit(m_bPlayerHit);
|
||||
}
|
||||
else {
|
||||
m_bPlayerHit = false;
|
||||
}
|
||||
}
|
||||
|
||||
HRESULT CGoblin_BattleAxe::Render()
|
||||
@@ -83,8 +93,10 @@ HRESULT CGoblin_BattleAxe::Render()
|
||||
if (!m_pModelCom)
|
||||
return S_OK;
|
||||
|
||||
if (!m_bVisible)
|
||||
if (!m_bVisible) {
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
if (FAILED(Bind_ShaderResources())) {
|
||||
return E_FAIL;
|
||||
@@ -193,6 +205,93 @@ HRESULT CGoblin_BattleAxe::Bind_ShaderResources()
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CGoblin_BattleAxe::CheckAxeHits(_uint& iHitCount, vector<PSX::PxSweepHit>& pxHits)
|
||||
{
|
||||
{
|
||||
_vector vStartPos = XMLoadFloat4(&m_vStartAxePos);
|
||||
_vector vEndPos = XMVectorSet(m_vAxeMat._41, m_vAxeMat._42, m_vAxeMat._43,1.f);
|
||||
_vector vDir = vEndPos - vStartPos;
|
||||
_float fDistance = XMVectorGetX(XMVector4Length(vDir));
|
||||
vDir = XMVector4Normalize(vDir);
|
||||
|
||||
_bool bCollision = false;
|
||||
m_SweepBufferAxe = {};
|
||||
bCollision = m_pGameInstance->SphereCast(1.2f, vStartPos, vDir, fDistance, PSX::PxHitFlag::eDEFAULT, PSX::PxQueryFlag::eDYNAMIC, m_SweepBufferAxe);
|
||||
if (true == bCollision) {
|
||||
iHitCount += m_SweepBufferAxe.getNbTouches() + m_SweepBufferAxe.hasBlock;
|
||||
auto touches = m_SweepBufferAxe.getTouches();
|
||||
for (_uint i = 0; i < m_SweepBufferAxe.nbTouches; ++i) {
|
||||
pxHits.push_back(m_SweepBufferAxe.touches[i]);
|
||||
}
|
||||
if (true == m_SweepBufferAxe.hasBlock) {
|
||||
pxHits.push_back(m_SweepBufferAxe.block);
|
||||
}
|
||||
}
|
||||
}
|
||||
{
|
||||
_vector vStartPos = XMLoadFloat4(&m_vStartGripPos);
|
||||
_vector vEndPos = m_pTransformCom->Get_State(STATE::POSITION);
|
||||
_vector vDir = vEndPos - vStartPos;
|
||||
_float fDistance = XMVectorGetX(XMVector4Length(vDir));
|
||||
vDir = XMVector4Normalize(vDir);
|
||||
|
||||
_bool bCollision = false;
|
||||
m_SweepBufferGrip = {};
|
||||
bCollision = m_pGameInstance->SphereCast(1.2f, vStartPos, vDir, fDistance, PSX::PxHitFlag::eDEFAULT, PSX::PxQueryFlag::eDYNAMIC, m_SweepBufferGrip);
|
||||
if (true == bCollision) {
|
||||
iHitCount += m_SweepBufferGrip.getNbTouches() + m_SweepBufferGrip.hasBlock;
|
||||
auto touches = m_SweepBufferGrip.getTouches();
|
||||
for (_uint i = 0; i < m_SweepBufferGrip.nbTouches; ++i) {
|
||||
pxHits.push_back(m_SweepBufferGrip.touches[i]);
|
||||
}
|
||||
if (true == m_SweepBufferGrip.hasBlock) {
|
||||
pxHits.push_back(m_SweepBufferGrip.block);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void CGoblin_BattleAxe::SwingHit(_bool& bPlayerHit)
|
||||
{
|
||||
vector<PSX::PxSweepHit> pxHits;
|
||||
_uint iHitCount = 0;
|
||||
CheckAxeHits(iHitCount, pxHits);
|
||||
{
|
||||
for (_uint i = 0; i < pxHits.size(); ++i) {
|
||||
PSX::PxActor* pxHitActor = pxHits[i].actor;
|
||||
if (nullptr != pxHitActor && nullptr != pxHitActor->userData) {
|
||||
PhsXUserData* pUserData = (PhsXUserData*)pxHitActor->userData;
|
||||
switch (PXOBJECT(pUserData->iSubKind))
|
||||
{
|
||||
case PXOBJECT::PLAYER:
|
||||
{
|
||||
if (true == bPlayerHit) {
|
||||
continue;
|
||||
}
|
||||
CStat* pStat = pUserData->pCharacter->Get_Owner()->Get_Component<CStat>();
|
||||
pStat->Get_Damage(20.f);
|
||||
bPlayerHit = true;
|
||||
pUserData->pOwner->OnCollision(this);
|
||||
} break;
|
||||
case PXOBJECT::ALLY_HITBOX:
|
||||
break;
|
||||
case PXOBJECT::ENVIRIONMENT:
|
||||
break;
|
||||
case PXOBJECT::TERRAIN:
|
||||
break;
|
||||
case PXOBJECT::BOX:
|
||||
break;
|
||||
case PXOBJECT::NPC:
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
CGoblin_BattleAxe* CGoblin_BattleAxe::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
{
|
||||
|
||||
@@ -238,7 +238,7 @@ HRESULT CLevel_GamePlay::Ready_Background()
|
||||
isReady_Background = true;
|
||||
#endif // gimch
|
||||
#ifdef Bin
|
||||
isReady_Background = false;
|
||||
isReady_Background = true;
|
||||
#endif //
|
||||
#ifdef 진우
|
||||
isReady_Background = true;
|
||||
|
||||
@@ -312,7 +312,7 @@ HRESULT CLoader::Loading_For_GamePlay()
|
||||
isLoad_Background = true;
|
||||
#endif // gimch
|
||||
#ifdef Bin
|
||||
isLoad_Background = false;
|
||||
isLoad_Background = true;
|
||||
#endif //
|
||||
#ifdef 진우
|
||||
isLoad_Background = true;
|
||||
|
||||
@@ -95,8 +95,10 @@ void CMiniMap_Camera::Free()
|
||||
}
|
||||
#ifdef _DEBUG
|
||||
|
||||
#ifdef _DEBUG
|
||||
void CMiniMap_Camera::Describe_Entity()
|
||||
{
|
||||
}
|
||||
|
||||
#endif // _DEBUG
|
||||
|
||||
|
||||
|
||||
@@ -147,6 +147,14 @@ __super::Update(fTimeDelta);
|
||||
m_pInfoInstance->Mouse_Input(ENUM_CLASS(KEYINPUT::DIM_RBUTTON_UP));
|
||||
m_bAim = false;
|
||||
}
|
||||
|
||||
if (m_pGameInstance->Key_Down(DIK_1)) {
|
||||
if (m_pModelCom->Get_SecondAnimIndex() == m_Animation[STATEANIM::LUMOS].first)
|
||||
{
|
||||
m_pModelCom->Set_Second_AnimationIndex(ENUM_CLASS(BLEND_BONE::SHOULDER_R), m_Animation[STATEANIM::LUMOS_STOP].first, m_Animation[STATEANIM::LUMOS_STOP].second);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
void CPlayer::UpdateGrapInteractive(_float fTimeDelta)
|
||||
@@ -310,7 +318,6 @@ void CPlayer::OnCollision(CGameObject* pOther, void* pDesc)
|
||||
void CPlayer::OnHit(CGameObject* pOther, CGameObject* pCaller)
|
||||
{
|
||||
}
|
||||
#ifdef _DEBUG
|
||||
|
||||
void CPlayer::Start_CameraShake(_float fTime, _float fIntense)
|
||||
{
|
||||
@@ -319,6 +326,7 @@ void CPlayer::Start_CameraShake(_float fTime, _float fIntense)
|
||||
m_fCameraShakeIntense = fIntense;
|
||||
m_bCameraShake = true;
|
||||
}
|
||||
#ifdef _DEBUG
|
||||
|
||||
void CPlayer::Render_CameraCoordinateSystem()
|
||||
{
|
||||
|
||||
@@ -989,7 +989,7 @@ void CPlayer::Behavior_LightAttackEnter()
|
||||
|
||||
Add_Event(pairAnimInfo.first,
|
||||
[this]() {_uint iIndex = 0; m_pEffectPool->Use_Skill(SKILL_TYPE::JAP, Get_PartObject<CWand>(), &iIndex); },
|
||||
0.1f);
|
||||
0.07f);
|
||||
|
||||
Add_Event(pairAnimInfo.first,
|
||||
[this]() { m_pEffectPool->Use_Skill(SKILL_TYPE::JAP_SIDE, Get_PartObject<CWand>()); },
|
||||
@@ -1016,7 +1016,13 @@ HRESULT CPlayer::Behavior_LightAttackExitCheck(_float fTimeDelta)
|
||||
_uint iNext = iCurr + 1;
|
||||
pairAnimInfo = m_Animation[STATEANIM::LIGHT_ATTACK];
|
||||
pairAnimInfo.first = iNext;
|
||||
|
||||
_float fAttackRatio;
|
||||
if (pairAnimInfo.first - m_Animation[STATEANIM::LIGHT_ATTACK].first == 3) {
|
||||
fAttackRatio = 0.12f;
|
||||
}
|
||||
else {
|
||||
fAttackRatio = 0.07f;
|
||||
}
|
||||
|
||||
Add_Event(pairAnimInfo.first,
|
||||
[this]() {m_bLookAt = true;
|
||||
@@ -1032,7 +1038,7 @@ HRESULT CPlayer::Behavior_LightAttackExitCheck(_float fTimeDelta)
|
||||
_uint comboIndex = m_pModelCom->Get_AnimIndex() - m_Animation[STATEANIM::LIGHT_ATTACK].first;
|
||||
m_pEffectPool->Use_Skill(SKILL_TYPE::JAP, Get_PartObject<CWand>(), &comboIndex);
|
||||
},
|
||||
0.05f);
|
||||
fAttackRatio);
|
||||
|
||||
Add_Event(iNext,
|
||||
[this]() {m_pEffectPool->Use_Skill(SKILL_TYPE::JAP_SIDE,Get_PartObject<CWand>());
|
||||
@@ -1831,7 +1837,7 @@ void CPlayer::Behavior_Broom_DismountEnter()
|
||||
m_pTransformCom->Set_State(STATE::RIGHT, right);
|
||||
m_pTransformCom->Set_State(STATE::UP, up);
|
||||
m_pTransformCom->Set_State(STATE::LOOK, look);
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second,1.f,false,1.3f);
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second,1.f,false,1.6f);
|
||||
}
|
||||
|
||||
HRESULT CPlayer::Behavior_Broom_DismountExitCheck(_float fTimeDelta)
|
||||
@@ -2310,7 +2316,7 @@ void CPlayer::Set_Anim()
|
||||
m_Animation[STATEANIM::SPELL_90_L] = { 826,false };
|
||||
|
||||
m_Animation[STATEANIM::MAPHELP] = { 122,false };
|
||||
m_Animation[STATEANIM::POTION] = { 114,false }; // 114 포션 // 909 루모스
|
||||
m_Animation[STATEANIM::POTION] = { 115,false }; // 114 포션 // 909 루모스
|
||||
m_Animation[STATEANIM::ACCIO] = { 417,false };
|
||||
m_Animation[STATEANIM::DESCENDO] = { 857,false };
|
||||
m_Animation[STATEANIM::DEPULSO] = { 858,false };
|
||||
|
||||
@@ -337,29 +337,45 @@ void CTroll::OnCollision(CGameObject* pOther, void* pDesc)
|
||||
ON_COLLISION_INFO* CollisionDesc = static_cast<ON_COLLISION_INFO*>(pDesc);
|
||||
|
||||
|
||||
_vector Head = (XMLoadFloat4x4(Get_HeadMatrix()) * m_pTransformCom->Get_XMWorldMatrix()).r[3];
|
||||
_vector Head = (XMLoadFloat4x4(Get_HeadMatrix()), m_pTransformCom->Get_XMWorldMatrix()).r[3];
|
||||
m_DamageInfo.vTarget_Pos = XMVectorSet(Head.m128_f32[0], Head.m128_f32[1], Head.m128_f32[2], 1.f);
|
||||
|
||||
_uint iSkillType = dynamic_cast<CEffect_Container*>(pOther)->Get_SkillType();
|
||||
auto damagePair = Get_Damage(m_pInfoInstance->Get_Spell_Damage(iSkillType));
|
||||
switch (iSkillType)
|
||||
CEffect_Container* pEffect_Container = dynamic_cast<CEffect_Container*>(pOther);
|
||||
|
||||
pair<_float, _float> damagePair = {};
|
||||
|
||||
if (pEffect_Container != nullptr)
|
||||
{
|
||||
case ENUM_CLASS(SKILL_TYPE::DESCENDO):
|
||||
m_eHitSpell = ENUM_CLASS(SKILL_TYPE::DESCENDO);
|
||||
break;
|
||||
case ENUM_CLASS(SKILL_TYPE::BOMBARDA):
|
||||
m_eHitSpell = ENUM_CLASS(SKILL_TYPE::DESCENDO);
|
||||
break;
|
||||
case ENUM_CLASS(SKILL_TYPE::FLIPENDO):
|
||||
m_eHitSpell = ENUM_CLASS(SKILL_TYPE::FLIPENDO);
|
||||
break;
|
||||
case ENUM_CLASS(SKILL_TYPE::JAP):
|
||||
m_eHitSpell = ENUM_CLASS(SKILL_TYPE::JAP);
|
||||
break;
|
||||
default:
|
||||
m_eHitSpell = ENUM_CLASS(SKILL_TYPE::END);
|
||||
break;
|
||||
_uint iSkillType = pEffect_Container->Get_SkillType();
|
||||
damagePair = Get_Damage(m_pInfoInstance->Get_Spell_Damage(iSkillType));
|
||||
|
||||
switch (iSkillType)
|
||||
{
|
||||
case ENUM_CLASS(SKILL_TYPE::DESCENDO):
|
||||
m_eHitSpell = ENUM_CLASS(SKILL_TYPE::DESCENDO);
|
||||
break;
|
||||
case ENUM_CLASS(SKILL_TYPE::BOMBARDA):
|
||||
m_eHitSpell = ENUM_CLASS(SKILL_TYPE::DESCENDO);
|
||||
break;
|
||||
case ENUM_CLASS(SKILL_TYPE::FLIPENDO):
|
||||
m_eHitSpell = ENUM_CLASS(SKILL_TYPE::FLIPENDO);
|
||||
break;
|
||||
case ENUM_CLASS(SKILL_TYPE::JAP):
|
||||
m_eHitSpell = ENUM_CLASS(SKILL_TYPE::JAP);
|
||||
break;
|
||||
default:
|
||||
m_eHitSpell = ENUM_CLASS(SKILL_TYPE::END);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
CMapElement_Interactable* pProps = dynamic_cast<CMapElement_Interactable*>(pOther);
|
||||
|
||||
if (pProps != nullptr)
|
||||
{
|
||||
m_eHitSpell = STATEANIM::KNOCKDOWN_FWD;
|
||||
}
|
||||
|
||||
m_DamageInfo.fDamage = damagePair.first;
|
||||
m_pInfoInstance->Event_CallBack(TEXT("Monster_Hit"), &m_DamageInfo);
|
||||
if (0 == damagePair.second) {
|
||||
|
||||
@@ -10,6 +10,7 @@ CTroll_State_BackHand_Swing::CTroll_State_BackHand_Swing()
|
||||
|
||||
void CTroll_State_BackHand_Swing::Enter()
|
||||
{
|
||||
m_bPlayerHit = false;
|
||||
__super::Enter();
|
||||
}
|
||||
|
||||
@@ -22,13 +23,14 @@ HRESULT CTroll_State_BackHand_Swing::Update(_float fTimeDelta)
|
||||
return E_FAIL;
|
||||
}
|
||||
if (nullptr != m_funcLateUpdate) {
|
||||
m_funcLateUpdate(fTimeDelta);
|
||||
m_funcLateUpdate(fTimeDelta, m_bPlayerHit);
|
||||
}
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CTroll_State_BackHand_Swing::Exit()
|
||||
{
|
||||
m_bPlayerHit = false;
|
||||
__super::Exit();
|
||||
}
|
||||
|
||||
|
||||
@@ -811,7 +811,7 @@ void CTroll::Add_FSM()
|
||||
Desc.funcExitCheck = [this](_float fTimeDelta) { return Behavior_BackHandSwingExitCheck(fTimeDelta); };
|
||||
Desc.funcExitEvent = [this]() { Behavior_BackHandSwingExit(); };
|
||||
Desc.funcPriorityUpdate = nullptr;
|
||||
Desc.funcLateUpdate = nullptr;
|
||||
Desc.funcLateUpdate = [this](_float fTimeDelta, _bool& bHit) { SwingHit(bHit); };
|
||||
m_States.emplace(FSMSTATE::BACKHAND_SWING, CTroll_State_BackHand_Swing::Create(&Desc));
|
||||
}
|
||||
#pragma endregion
|
||||
|
||||
@@ -39,6 +39,7 @@ class CBox_Splesh final : public CEffect_Container
|
||||
#ifdef _DEBUG
|
||||
void Describe_Entity() override;
|
||||
#endif // _DEBUG
|
||||
|
||||
};
|
||||
|
||||
NS_END
|
||||
|
||||
@@ -39,6 +39,7 @@ class CChair_Splesh final : public CEffect_Container
|
||||
#ifdef _DEBUG
|
||||
void Describe_Entity() override;
|
||||
#endif // _DEBUG
|
||||
|
||||
};
|
||||
|
||||
NS_END
|
||||
|
||||
@@ -35,6 +35,15 @@ class CGoblin_BattleAxe final : public CPartObject
|
||||
|
||||
_float4x4 m_vAxeMat= {};
|
||||
|
||||
|
||||
PSX::PxSweepBufferN<12> m_SweepBufferAxe = {};
|
||||
PSX::PxSweepBufferN<12> m_SweepBufferGrip = {};
|
||||
const _float4* m_pAxePos = { nullptr };
|
||||
const _float4* m_pAxeGripPos = { nullptr };
|
||||
_float4 m_vStartAxePos = { };
|
||||
_float4 m_vStartGripPos = { };
|
||||
_bool m_bPlayerHit = {};
|
||||
|
||||
#ifdef _DEBUG
|
||||
unique_ptr<GeometricPrimitive> m_pGripShape = { nullptr };
|
||||
unique_ptr<GeometricPrimitive> m_pSubShape = { nullptr };
|
||||
@@ -45,6 +54,10 @@ class CGoblin_BattleAxe final : public CPartObject
|
||||
HRESULT Ready_Components();
|
||||
HRESULT Bind_ShaderResources();
|
||||
|
||||
void CheckAxeHits(_uint& iHitCount, vector<PSX::PxSweepHit>& pxHits);
|
||||
|
||||
void SwingHit(_bool& bPlayerHit);
|
||||
|
||||
public:
|
||||
static CGoblin_BattleAxe* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
virtual CGameObject* Clone(void* pArg, CGameObject* pOwner = nullptr)override;
|
||||
|
||||
@@ -47,6 +47,8 @@ class CMageSide final : public CEffect_Container
|
||||
#ifdef _DEBUG
|
||||
void Describe_Entity() override;
|
||||
#endif // _DEBUG
|
||||
|
||||
|
||||
};
|
||||
|
||||
NS_END
|
||||
|
||||
@@ -43,6 +43,7 @@ class CMage_Down_Attack final : public CEffect_Container
|
||||
#ifdef _DEBUG
|
||||
void Describe_Entity() override;
|
||||
#endif // _DEBUG
|
||||
|
||||
};
|
||||
|
||||
NS_END
|
||||
|
||||
@@ -50,7 +50,9 @@ class CMage_Nomal_Attack final : public CEffect_Container
|
||||
CGameObject* Clone(void* pArg, CGameObject* pOwner) override;
|
||||
#ifdef _DEBUG
|
||||
void Describe_Entity() override;
|
||||
#endif // _DEBUG
|
||||
#endif // DEBUG
|
||||
|
||||
|
||||
};
|
||||
|
||||
NS_END
|
||||
|
||||
@@ -121,8 +121,7 @@ class CPlayer final : public CUnit
|
||||
_float3 m_BroomScale = { 0.f, 0.f, 0.f };
|
||||
_float3 m_TargetScale = { 1.f, 1.f, 1.f };
|
||||
_float m_fScaleSmoothSpeed = 2.5f;
|
||||
|
||||
|
||||
_bool m_bLumos = {};
|
||||
|
||||
HRESULT InputAction();
|
||||
HRESULT InputMove();
|
||||
|
||||
@@ -41,6 +41,7 @@ class CStunEffect final : public CEffect_Container
|
||||
#ifdef _DEBUG
|
||||
void Describe_Entity() override;
|
||||
#endif // _DEBUG
|
||||
|
||||
};
|
||||
|
||||
NS_END
|
||||
|
||||
@@ -9,7 +9,7 @@ class CTroll_State_BackHand_Swing final : public CState_Root
|
||||
public:
|
||||
typedef struct tagTrollBackHandSwing : public CState_Root::STATE_ROOT_DESC {
|
||||
function<void(_float fTimeDelta)> funcPriorityUpdate = { nullptr };
|
||||
function<void(_float fTimeDelta)> funcLateUpdate = { nullptr };
|
||||
function<void(_float, _bool&)> funcLateUpdate = { nullptr };
|
||||
}TROLL_STATE_BACK_HAND_SWING_DESC;
|
||||
public:
|
||||
CTroll_State_BackHand_Swing();
|
||||
@@ -22,7 +22,8 @@ class CTroll_State_BackHand_Swing final : public CState_Root
|
||||
|
||||
private:
|
||||
function<void(_float fTimeDelta)> m_funcPriorityUpdate = { nullptr };
|
||||
function<void(_float fTimeDelta)> m_funcLateUpdate = { nullptr };
|
||||
function<void(_float, _bool&)> m_funcLateUpdate = { nullptr };
|
||||
_bool m_bPlayerHit = false;
|
||||
|
||||
private:
|
||||
HRESULT Initialize(TROLL_STATE_BACK_HAND_SWING_DESC* pDesc);
|
||||
|
||||
@@ -241,10 +241,6 @@ void CGameInstance::BillBoard(CTransform* pTransform)
|
||||
|
||||
}
|
||||
|
||||
|
||||
#ifdef EDITOR_PROJECT
|
||||
|
||||
|
||||
void CGameInstance::SlowMotion(_float fSlowIntense, _float fTime)
|
||||
{
|
||||
if (fTime <= 0 || fSlowIntense <= 0)
|
||||
@@ -255,6 +251,30 @@ void CGameInstance::SlowMotion(_float fSlowIntense, _float fTime)
|
||||
m_fSlowIntense = fSlowIntense;
|
||||
}
|
||||
|
||||
_float CGameInstance::Update_SlowMotion(_float fTimeDelta)
|
||||
{
|
||||
_float fExcuteTimeDelta = {};
|
||||
|
||||
if (m_isSlowMotion == false)
|
||||
return fTimeDelta;
|
||||
|
||||
m_vSlowTime.x += fTimeDelta;
|
||||
|
||||
if (m_vSlowTime.x >= m_vSlowTime.y) // 시간을 넘겼다면
|
||||
{
|
||||
m_isSlowMotion = false;
|
||||
m_vSlowTime.x = 0.f;
|
||||
}
|
||||
else
|
||||
{
|
||||
fExcuteTimeDelta = m_fSlowIntense * fTimeDelta;
|
||||
}
|
||||
|
||||
return fExcuteTimeDelta;
|
||||
}
|
||||
|
||||
#ifdef EDITOR_PROJECT
|
||||
|
||||
void CGameInstance::Save_ModelFilePath(const _char* FilePath)
|
||||
{
|
||||
m_FilePaths.push_back(FilePath);
|
||||
@@ -283,28 +303,6 @@ size_t CGameInstance::ModelFilePathCount()
|
||||
return m_FilePaths.size();
|
||||
}
|
||||
|
||||
_float CGameInstance::Update_SlowMotion(_float fTimeDelta)
|
||||
{
|
||||
_float fExcuteTimeDelta = {};
|
||||
|
||||
if (m_isSlowMotion == false)
|
||||
return fTimeDelta;
|
||||
|
||||
m_vSlowTime.x += fTimeDelta;
|
||||
|
||||
if (m_vSlowTime.x >= m_vSlowTime.y) // 시간을 넘겼다면
|
||||
{
|
||||
m_isSlowMotion = false;
|
||||
m_vSlowTime.x = 0.f;
|
||||
}
|
||||
else
|
||||
{
|
||||
fExcuteTimeDelta = m_fSlowIntense * fTimeDelta;
|
||||
}
|
||||
|
||||
return fExcuteTimeDelta;
|
||||
}
|
||||
|
||||
#endif // EDITOR_PROJECT
|
||||
void CGameInstance::Render_Begin(const _float4* pClearColor)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user