@@ -13,18 +13,17 @@
|
||||
HRESULT CBroom::InputAction()
|
||||
{
|
||||
if (
|
||||
m_pGameInstance->Key_Down(DIK_SPACE)
|
||||
|| m_pGameInstance->Key_Down(DIK_LCONTROL)
|
||||
|| m_pGameInstance->Key_Down(DIK_E)
|
||||
|| m_pGameInstance->Key_Down(DIK_R)
|
||||
|| m_pGameInstance->Key_Down(DIK_Q)
|
||||
|| m_pGameInstance->Mouse_Up(DIM_LBUTTON)
|
||||
|| m_pGameInstance->Key_Down(DIK_LSHIFT)
|
||||
|| m_pGameInstance->Key_Down(DIK_C)
|
||||
|| m_pGameInstance->Key_Down(DIK_V)
|
||||
|| m_pGameInstance->Key_Down(DIK_Z)
|
||||
|| m_pGameInstance->Key_Down(DIK_G)
|
||||
|| m_pGameInstance->Key_Down(DIK_B)
|
||||
m_pGameInstance->Key_Pressing(DIK_SPACE)
|
||||
|| m_pGameInstance->Key_Pressing(DIK_LCONTROL)
|
||||
|| m_pGameInstance->Key_Pressing(DIK_E)
|
||||
|| m_pGameInstance->Key_Pressing(DIK_R)
|
||||
|| m_pGameInstance->Key_Pressing(DIK_Q)
|
||||
|| m_pGameInstance->Key_Pressing(DIK_LSHIFT)
|
||||
|| m_pGameInstance->Key_Pressing(DIK_C)
|
||||
|| m_pGameInstance->Key_Pressing(DIK_V)
|
||||
|| m_pGameInstance->Key_Pressing(DIK_Z)
|
||||
|| m_pGameInstance->Key_Pressing(DIK_G)
|
||||
|| m_pGameInstance->Key_Pressing(DIK_B)
|
||||
)
|
||||
{
|
||||
return S_OK;
|
||||
@@ -62,10 +61,10 @@ HRESULT CBroom::InputSpell()
|
||||
m_pGameInstance->Key_Down(DIK_1)
|
||||
|| m_pGameInstance->Key_Down(DIK_2)
|
||||
|| m_pGameInstance->Key_Down(DIK_3)
|
||||
|| m_pGameInstance->Key_Down(DIK_4)
|
||||
)
|
||||
{
|
||||
return S_OK;
|
||||
|| m_pGameInstance->Key_Down(DIK_4)
|
||||
)
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
return E_FAIL;
|
||||
}
|
||||
@@ -106,6 +105,13 @@ HRESULT CBroom::Behavior_IdleExitCheck(_float fTimeDelta)
|
||||
m_pFSM->Change_State(FSMSTATE::MOVE);
|
||||
return E_FAIL;
|
||||
}
|
||||
if (SUCCEEDED(InputMove()))
|
||||
{
|
||||
if (m_pFSM->IsEnable_Previous(FSMSTATE::MOVE))
|
||||
{
|
||||
m_pFSM->Change_State(FSMSTATE::MOVE);
|
||||
}
|
||||
}
|
||||
|
||||
return E_FAIL;
|
||||
}
|
||||
@@ -118,59 +124,82 @@ void CBroom::Behavior_IdleExit()
|
||||
void CBroom::Behavior_MoveEnter()
|
||||
{
|
||||
pair<_uint, _bool> pairAnimInfo = {};
|
||||
_bool bFoward = m_pGameInstance->Key_Pressing(DIK_W);
|
||||
_bool bLeft = m_pGameInstance->Key_Pressing(DIK_A);
|
||||
_bool bRight = m_pGameInstance->Key_Pressing(DIK_D);
|
||||
_bool bBackward = m_pGameInstance->Key_Pressing(DIK_S);
|
||||
m_pFSM->Enable_State(FSMSTATE::MOVE);
|
||||
if (m_pFSM->IsEnable_Previous(FSMSTATE::IDLE)) {
|
||||
m_pFSM->Enable_State(FSMSTATE::JOG);
|
||||
if (SUCCEEDED(InputMove()))
|
||||
|
||||
if (SUCCEEDED(InputMove()) || SUCCEEDED(InputAction()))
|
||||
{
|
||||
if (bFoward)
|
||||
if (m_pGameInstance->Key_Pressing(DIK_W))
|
||||
{
|
||||
pairAnimInfo = m_Animation[STATEANIM::BROOM_FLY_B];
|
||||
}
|
||||
else if (bLeft)
|
||||
else if (m_pGameInstance->Key_Pressing(DIK_A))
|
||||
{
|
||||
pairAnimInfo = m_Animation[STATEANIM::BROOM_FLY_LEFT_B];
|
||||
}
|
||||
else if (bRight)
|
||||
else if (m_pGameInstance->Key_Pressing(DIK_D))
|
||||
{
|
||||
pairAnimInfo = m_Animation[STATEANIM::BROOM_FLY_RIGHT_B];
|
||||
}
|
||||
else if (m_pGameInstance->Key_Pressing(DIK_LCONTROL))
|
||||
{
|
||||
pairAnimInfo = m_Animation[STATEANIM::BROOM_FLY_DOWN_B];
|
||||
}
|
||||
else if (m_pGameInstance->Key_Pressing(DIK_SPACE))
|
||||
{
|
||||
pairAnimInfo = m_Animation[STATEANIM::BROOM_FLY_UP_B];
|
||||
}
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 0.5f, true);
|
||||
}
|
||||
}
|
||||
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
|
||||
|
||||
}
|
||||
|
||||
HRESULT CBroom::Behavior_MoveExitCheck(_float fTimeDelta)
|
||||
{
|
||||
pair<_uint, _bool> pairAnimInfo = {};
|
||||
_bool bFoward = m_pGameInstance->Key_Pressing(DIK_W);
|
||||
_bool bLeft = m_pGameInstance->Key_Pressing(DIK_A);
|
||||
_bool bRight = m_pGameInstance->Key_Pressing(DIK_D);
|
||||
_bool bBackward = m_pGameInstance->Key_Pressing(DIK_S);
|
||||
_uint iCurrentAnimIndex = m_pModelCom->Get_AnimIndex();
|
||||
|
||||
if (SUCCEEDED(InputMove()))
|
||||
if (SUCCEEDED(InputMove()) || SUCCEEDED(InputAction()))
|
||||
{
|
||||
if (bFoward)
|
||||
if (m_pGameInstance->Key_Pressing(DIK_W))
|
||||
{
|
||||
pairAnimInfo = m_Animation[STATEANIM::BROOM_FLY_B];
|
||||
m_pTransformCom->Go_Straight(fTimeDelta);
|
||||
}
|
||||
else if (bLeft)
|
||||
else if (m_pGameInstance->Key_Pressing(DIK_A))
|
||||
{
|
||||
pairAnimInfo = m_Animation[STATEANIM::BROOM_FLY_LEFT_B];
|
||||
}
|
||||
else if (bRight)
|
||||
else if (m_pGameInstance->Key_Pressing(DIK_D))
|
||||
{
|
||||
pairAnimInfo = m_Animation[STATEANIM::BROOM_FLY_RIGHT_B];
|
||||
}
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
|
||||
else if (m_pGameInstance->Key_Pressing(DIK_LCONTROL))
|
||||
{
|
||||
pairAnimInfo = m_Animation[STATEANIM::BROOM_FLY_DOWN_B];
|
||||
}
|
||||
else if (m_pGameInstance->Key_Pressing(DIK_SPACE))
|
||||
{
|
||||
pairAnimInfo = m_Animation[STATEANIM::BROOM_FLY_UP_B];
|
||||
}
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 0.5f, true);
|
||||
return S_OK;
|
||||
}
|
||||
else
|
||||
{
|
||||
pairAnimInfo = m_Animation[STATEANIM::BROOM_HOVER_STOP_B];
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
|
||||
if (m_pModelCom->IsFinishedAnim() && iCurrentAnimIndex == m_Animation[STATEANIM::BROOM_HOVER_STOP_B].first)
|
||||
{
|
||||
m_pFSM->Change_State(FSMSTATE::IDLE);
|
||||
return E_FAIL;
|
||||
}
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
return E_FAIL;
|
||||
}
|
||||
@@ -192,21 +221,23 @@ void CBroom::Add_FSM()
|
||||
Desc.funcPriorityUpdate = nullptr;
|
||||
Desc.funcLateUpdate = nullptr;
|
||||
m_States.emplace(FSMSTATE::IDLE, CState_Idle::Create(&Desc));
|
||||
}
|
||||
{
|
||||
CState_Move::STATE_MOVE_DESC Desc{};
|
||||
Desc.pOwner = this;
|
||||
Desc.funcEnterEvent = [this]() { Behavior_MoveEnter(); };
|
||||
Desc.funcExitCheck = [this](_float fTimedelta) { return Behavior_MoveExitCheck(fTimedelta); };
|
||||
Desc.funcExitEvent = [this]() { Behavior_MoveExit(); };
|
||||
Desc.funcPriorityUpdate = nullptr;
|
||||
Desc.funcLateUpdate = nullptr;
|
||||
m_States.emplace(FSMSTATE::MOVE, CState_Move::Create(&Desc));
|
||||
}
|
||||
#pragma endregion
|
||||
}
|
||||
|
||||
{
|
||||
CState_Move::STATE_MOVE_DESC Desc{};
|
||||
Desc.pOwner = this;
|
||||
Desc.funcEnterEvent = [this]() { Behavior_MoveEnter(); };
|
||||
Desc.funcExitCheck = [this](_float fTimedelta) { return Behavior_MoveExitCheck(fTimedelta); };
|
||||
Desc.funcExitEvent = [this]() { Behavior_MoveExit(); };
|
||||
Desc.funcPriorityUpdate = nullptr;
|
||||
Desc.funcLateUpdate = nullptr;
|
||||
m_States.emplace(FSMSTATE::MOVE, CState_Move::Create(&Desc));
|
||||
}
|
||||
#pragma endregion
|
||||
}
|
||||
|
||||
|
||||
|
||||
void CBroom::Set_Anim()
|
||||
{
|
||||
m_Animation[STATEANIM::BROOM_MOUNT_B] = { 29,false };
|
||||
|
||||
@@ -42,11 +42,15 @@ HRESULT CBroom::Initialize(void* pArg)
|
||||
m_pFSM->Change_State(FSMSTATE::IDLE);
|
||||
}
|
||||
|
||||
|
||||
m_pTransformCom->Set_State(STATE::POSITION, XMVectorSet(0.f, 10.f, 0.f, 1.f));
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CBroom::Priority_Update(_float fTimeDelta)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
void CBroom::Update(_float fTimeDelta)
|
||||
|
||||
@@ -433,14 +433,12 @@ HRESULT CPlayer::Behavior_MoveExitCheck(_float fTimeDelta)
|
||||
xmvInputDir = XMVector3Normalize(xmvInputDir);
|
||||
|
||||
_float2 vInputDir = { XMVectorGetX(xmvInputDir),XMVectorGetZ(xmvInputDir) };
|
||||
GUI::Text("%.1f, %.1f", vInputDir.x, vInputDir.y);
|
||||
_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 absDir = fabsf(vDir);
|
||||
|
||||
_float cross = vCurLook.x * vInputDir.y - vCurLook.y * vInputDir.x;
|
||||
|
||||
_bool bSkipAngleCheck = { false };
|
||||
@@ -455,7 +453,7 @@ HRESULT CPlayer::Behavior_MoveExitCheck(_float fTimeDelta)
|
||||
}
|
||||
if (!bSkipAngleCheck) {
|
||||
_float absDir = fabsf(vDir);
|
||||
if (absDir <= XMConvertToRadians(90.f)) {
|
||||
if (absDir < XMConvertToRadians(80.f)) {
|
||||
if (m_pFSM->IsEnable(FSMSTATE::JOG))
|
||||
{
|
||||
pairAnimInfo = m_Animation[STATEANIM::JOG_FWD];
|
||||
@@ -981,11 +979,10 @@ void CPlayer::Behavior_Broom_RideEnter()
|
||||
HRESULT CPlayer::Behavior_Broom_RideExitCheck()
|
||||
{
|
||||
_uint iCurrAnimIndex = m_pModelCom->Get_AnimIndex();
|
||||
|
||||
pair<_uint, _bool> pairAnimInfo;
|
||||
if (iCurrAnimIndex == m_Animation[STATEANIM::BROOM_MOUNT].first)
|
||||
{
|
||||
if (m_pModelCom->IsFinishedAnim()) {
|
||||
pair<_uint, _bool> pairAnimInfo;
|
||||
pairAnimInfo = m_Animation[STATEANIM::BROOM_MOUNT_END];
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, true);
|
||||
}
|
||||
@@ -996,19 +993,35 @@ HRESULT CPlayer::Behavior_Broom_RideExitCheck()
|
||||
return E_FAIL;
|
||||
}*/
|
||||
|
||||
if (SUCCEEDED(InputMove()))
|
||||
|
||||
if (m_pGameInstance->Key_Pressing(DIK_W))
|
||||
{
|
||||
pair<_uint, _bool> pairAnimInfo;
|
||||
pairAnimInfo = Get_AnimInfo(STATEANIM::BROOM_HOVER_IDLE);
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
|
||||
pairAnimInfo = Get_AnimInfo(STATEANIM::BROOM_FWD);
|
||||
}
|
||||
else if (m_pGameInstance->Key_Pressing(DIK_A))
|
||||
{
|
||||
pairAnimInfo = Get_AnimInfo(STATEANIM::BROOM_LEFT);
|
||||
}
|
||||
else if (m_pGameInstance->Key_Pressing(DIK_D))
|
||||
{
|
||||
pairAnimInfo = Get_AnimInfo(STATEANIM::BROOM_RIGHT);
|
||||
}
|
||||
else if (m_pGameInstance->Key_Pressing(DIK_LCONTROL))
|
||||
{
|
||||
pairAnimInfo = Get_AnimInfo(STATEANIM::BROOM_DOWN);
|
||||
}
|
||||
else if (m_pGameInstance->Key_Pressing(DIK_SPACE))
|
||||
{
|
||||
pairAnimInfo = Get_AnimInfo(STATEANIM::BROOM_UP);
|
||||
}
|
||||
else
|
||||
{
|
||||
pair<_uint, _bool> pairAnimInfo;
|
||||
pairAnimInfo = Get_AnimInfo(STATEANIM::BROOM_HOVER_IDLE);
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
|
||||
}
|
||||
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
|
||||
|
||||
|
||||
if (m_pGameInstance->Key_Down(DIK_N)) {
|
||||
m_pFSM->Change_State(FSMSTATE::IDLE);
|
||||
return E_FAIL;
|
||||
@@ -1045,6 +1058,8 @@ void CPlayer::Player_InterpTurn(_float fTimeDelta)
|
||||
|
||||
_float degree = XMConvertToDegrees(angle);
|
||||
|
||||
GUI::Text("Degree: %.3f", degree);
|
||||
|
||||
_vector xmvInput = XMVectorZero();
|
||||
|
||||
if (m_pGameInstance->Key_Pressing(DIK_W))
|
||||
@@ -1180,33 +1195,50 @@ void CPlayer::Add_FSM()
|
||||
|
||||
#pragma region Behavior_Broom_Ride
|
||||
{
|
||||
|
||||
CState_Broom_Ride::STATE_BROOM_RIDE_DESC Desc{};
|
||||
Desc.pOwner = this;
|
||||
Desc.funcEnterEvent = [this]() { Behavior_Broom_RideEnter(); };
|
||||
Desc.funcExitCheck = [this](_float fTimedelta) { return Behavior_Broom_RideExitCheck(); };
|
||||
Desc.funcExitEvent = [this]() { Behavior_Broom_RideExit(); };
|
||||
Desc.funcPriorityUpdate = [this](_float fTimeDelta) {
|
||||
_uint iCurrAnimIndex = m_pModelCom->Get_AnimIndex();
|
||||
if (m_pGameInstance->Key_Pressing(DIK_W))
|
||||
{
|
||||
_float3 fMove = m_pGameInstance->Get_MouseMove();
|
||||
m_pBroomTransform->Turn(m_pTransformCom->Get_State(STATE::UP), fTimeDelta * fMove.x * 0.03f);
|
||||
m_pBroomTransform->Turn(m_pBroomTransform->Get_State(STATE::UP), fTimeDelta * fMove.x * 0.03f);
|
||||
}
|
||||
_matrix BroomWorld = XMLoadFloat4x4(m_pBroomTransform->Get_WorldMatrixPtr());
|
||||
_matrix BoneLocal = XMLoadFloat4x4(m_pBroomModel->Get_BoneMatrixPtr("broomSocket"));
|
||||
|
||||
XMVECTOR Scale, Rot, Trans;
|
||||
_vector Scale, Rot, Trans;
|
||||
|
||||
XMMatrixDecompose(&Scale, &Rot, &Trans, BoneLocal);
|
||||
|
||||
_matrix BoneNoScale = XMMatrixRotationQuaternion(Rot) * XMMatrixTranslationFromVector(Trans);
|
||||
static _float3 OffsetPos = { 0.f, 0.f, 0.f };
|
||||
GUI::DragFloat3("BroomOffset", (_float*)&OffsetPos, 0.01f);
|
||||
_matrix Offset = XMMatrixTranslation(OffsetPos.x,
|
||||
OffsetPos.y, OffsetPos.z);
|
||||
|
||||
if (iCurrAnimIndex == m_Animation[STATEANIM::BROOM_FWD].first)
|
||||
{
|
||||
m_OffsetPos = { 0.f, 1.05f, 0.f };
|
||||
}
|
||||
else
|
||||
{
|
||||
m_OffsetPos = { 0.f, 1.18f, 0.f };
|
||||
}
|
||||
|
||||
GUI::DragFloat3("BroomOffset", (_float*)&m_OffsetPos, 0.01f);
|
||||
_matrix Offset = XMMatrixTranslation(m_OffsetPos.x,
|
||||
m_OffsetPos.y, m_OffsetPos.z);
|
||||
|
||||
_matrix SocketWorld = BoneNoScale * Offset* BroomWorld;
|
||||
|
||||
m_pTransformCom->Set_WorldMatrix(SocketWorld);
|
||||
m_pCharacter_Controller->Set_Position(SocketWorld.r[3]);
|
||||
|
||||
_matrix FixRot = XMMatrixRotationY(XMConvertToRadians(180.f));
|
||||
|
||||
_matrix FinalWorld = FixRot * SocketWorld;
|
||||
|
||||
m_pTransformCom->Set_WorldMatrix(FinalWorld);
|
||||
m_pCharacter_Controller->Set_Position(FinalWorld.r[3]);
|
||||
|
||||
};
|
||||
Desc.funcLateUpdate = nullptr;
|
||||
m_States.emplace(FSMSTATE::BROOM_RIDE, CState_Broom_Ride::Create(&Desc));
|
||||
@@ -1272,8 +1304,12 @@ void CPlayer::Set_Anim()
|
||||
m_Animation[STATEANIM::HIT_L] = { 1124,false };
|
||||
m_Animation[STATEANIM::HIT_R] = { 1125,false };
|
||||
|
||||
m_Animation[STATEANIM::BROOM_IDLE] = { 679,true };
|
||||
m_Animation[STATEANIM::BROOM_FWD] = { 680,true };
|
||||
m_Animation[STATEANIM::BROOM_IDLE] = { 710,true };
|
||||
m_Animation[STATEANIM::BROOM_FWD] = { 711,true };
|
||||
m_Animation[STATEANIM::BROOM_LEFT] = { 713,true };
|
||||
m_Animation[STATEANIM::BROOM_RIGHT] = { 714,true };
|
||||
m_Animation[STATEANIM::BROOM_DOWN] = { 712,true };
|
||||
m_Animation[STATEANIM::BROOM_UP] = { 715,true };
|
||||
|
||||
m_Animation[STATEANIM::BROOM_MOUNT] = { 734,false };
|
||||
m_Animation[STATEANIM::BROOM_MOUNT_END] = { 737,false };
|
||||
@@ -1286,6 +1322,11 @@ void CPlayer::Set_Anim()
|
||||
m_Animation[STATEANIM::JOG_AIM_STOP_BWD] = { 444,false };
|
||||
|
||||
//루모스 스탑 912
|
||||
|
||||
//713 왼쪽 슬로우
|
||||
//714 오른쪽
|
||||
//712 아래
|
||||
//715 위
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -96,6 +96,7 @@ class CPlayer final : public CUnit
|
||||
vector<PendingEvent> m_PendingEvents;
|
||||
|
||||
|
||||
_float3 m_OffsetPos = {};
|
||||
_float m_fAmount = { 1.f };
|
||||
_float m_fInputTime = {};
|
||||
_bool m_bRatio = { false };
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -757,8 +757,8 @@ HRESULT CLevel_ObjectViewer::Ready_Layer_UI(const _wstring& strLayerTag)
|
||||
|
||||
HRESULT CLevel_ObjectViewer::Ready_Layer_Dummy(const _wstring& strLayerTag)
|
||||
{
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CPlayer>(g_iStaticLevel, NEXT_LEVEL, strLayerTag, nullptr, nullptr, &m_Test)))
|
||||
return E_FAIL;
|
||||
/*if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CPlayer>(g_iStaticLevel, NEXT_LEVEL, strLayerTag, nullptr, nullptr, &m_Test)))
|
||||
return E_FAIL;*/
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CDummySkyBox>(g_iStaticLevel, NEXT_LEVEL, LAYER_CUBE)))
|
||||
return E_FAIL;
|
||||
|
||||
@@ -1710,7 +1710,7 @@ HRESULT CLoader::Loading_For_ObjectViewer()
|
||||
TEXT("Prototype_Component_Npc_Model")
|
||||
));
|
||||
futures.emplace_back(Deferred_ModelLoad(
|
||||
MODEL::ANIM, "../Bin/Resources/Models/Object/Wand/Wand.fbx",XMMatrixIdentity(),
|
||||
MODEL::ANIM, "../Bin/Resources/Models/Object/Wand/Wand.bin",XMMatrixIdentity(),
|
||||
TEXT("Prototype_Component_Wand_Model")
|
||||
));
|
||||
futures.emplace_back(Deferred_ModelLoad(
|
||||
@@ -1718,7 +1718,7 @@ HRESULT CLoader::Loading_For_ObjectViewer()
|
||||
TEXT("Prototype_Component_Broom_Model")
|
||||
));
|
||||
futures.emplace_back(Deferred_ModelLoad(
|
||||
MODEL::NONANIM, "../Bin/Resources/Models/SkyBox/SkyBox.fbx", XMMatrixIdentity(),
|
||||
MODEL::NONANIM, "../Bin/Resources/Models/SkyBox/SkyBox.bin", XMMatrixIdentity(),
|
||||
TEXT("Prototype_Component_SkyboxModel")
|
||||
));
|
||||
futures.emplace_back(Deferred_ModelLoad(
|
||||
|
||||
@@ -215,9 +215,8 @@ _bool CModel::Play_Dual_Anim(_float fTimeDelta, CTransform* pTransform)
|
||||
CAnimation* pSecondAnim = m_Animations[m_iCurrSecondAnimIndex];
|
||||
|
||||
m_bIsFinishedAnim = pCurAnim->Update_TransformationMatrices(m_Bones, m_pLocalPos, m_bIsLoop, fTimeDelta, true, m_iBoneMask, m_vector);
|
||||
|
||||
pCurAnim->InterpAnim(pPreAnim, m_Bones, m_fRatio);
|
||||
m_bIsSecondFinishedAnim = pSecondAnim->Update_TransformationMatrices(m_Bones, m_pLocalPos, m_bIsSecondLoop, fTimeDelta, false, m_iBoneMask);
|
||||
//pCurAnim->InterpAnim(pPreAnim, m_Bones, m_fRatio);
|
||||
if (m_fRatio >= 1.f)
|
||||
{
|
||||
m_iPreAnimIndex = m_iCurrentAnimIndex;
|
||||
@@ -227,7 +226,6 @@ _bool CModel::Play_Dual_Anim(_float fTimeDelta, CTransform* pTransform)
|
||||
else
|
||||
{
|
||||
m_bIsFinishedAnim = m_Animations[m_iCurrentAnimIndex]->Update_TransformationMatrices(m_Bones, m_pLocalPos, m_bIsLoop, fTimeDelta, true, m_iBoneMask, m_vector);
|
||||
|
||||
m_bIsSecondFinishedAnim = m_Animations[m_iCurrSecondAnimIndex]->Update_TransformationMatrices(m_Bones, m_pLocalPos, m_bIsSecondLoop, fTimeDelta, false, m_iBoneMask);
|
||||
m_iPreAnimIndex = m_iCurrentAnimIndex;
|
||||
}
|
||||
|
||||
@@ -23,8 +23,6 @@ class ENGINE_DLL CAnimation : public CBase
|
||||
vector<_int>* Capture_Bones();
|
||||
void InterpAnim(CAnimation* pPreAnim, vector<CBone*>& Bones, _float fRatio);
|
||||
|
||||
|
||||
|
||||
void CreateGPUData(ID3D11Device* pDevice);
|
||||
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@ enum ESTATE
|
||||
COMBAT, LIGHT_ATTACK, SPELL, SKILL, SKILL2,
|
||||
MAPHELP,POTION,
|
||||
ACCIO,DESCENDO,DIFFINDO,DEPULSO,LUMOS,LUMOS_STOP,DISILLUSION_ENTER,DISILLUSION_EXIT, ANCIENT_THROW,
|
||||
BROOM_IDLE,BROOM_FWD, BROOM_HOVER_IDLE, BROOM_HOVER_START,BROOM_MOUNT, BROOM_MOUNT_END,
|
||||
BROOM_IDLE,BROOM_FWD,BROOM_LEFT,BROOM_RIGHT,BROOM_DOWN,BROOM_UP, BROOM_HOVER_IDLE, BROOM_HOVER_START,BROOM_MOUNT, BROOM_MOUNT_END,
|
||||
HIT, HIT_FWD, HIT_BWD, HIT_BWD2, HIT_BWD3, HIT_BWD4, HIT_L, HIT_R,
|
||||
KNOCKDOWN, KNOCKDOWN_FWD, KNOCKDOWN_FWD_SPLT, KNOCKDOWN_FWD_SPLT_HOLD, KNOCKDOWN_BWD, KNOCKDOWN_BWD_SPLT, KNOCKDOWN_BWD_SPLT_HOLD,
|
||||
GETUP, GETUP_BWD, GETUP_FWD, GETUP_L, GETUP_L_FD, GETUP_L_FU, GETUP_R, GETUP_R_FD, GETUP_R_FU, GETUP_SLOUCH,
|
||||
|
||||
Reference in New Issue
Block a user