[Fix] 란록 이름 변경

란록 다음 레벨에 배치
This commit is contained in:
hyunbin14
2025-12-20 14:17:45 +09:00
parent 6acc7bb724
commit 788ef20c9e
34 changed files with 669 additions and 406 deletions
@@ -251,7 +251,7 @@ void SampleLocalTRS_Prev(uint bone, float t, out float3 S, out float4 R, out flo
if (ch.KeyCount < 2)
{
KeyFrame k = g_KeyFrameBuffer[ch.StartIndex];
KeyFrame k = g_PrevKeyFrameBuffer[ch.StartIndex];
S = k.vScale;
T = k.vTranslation;
R = QuatNormalize(k.vRotation);
@@ -274,13 +274,13 @@ void SampleLocalTRS_Prev(uint bone, float t, out float3 S, out float4 R, out flo
row_major float4x4 SampleBlendedLocal(uint bone)
{
if (PrevAnimIndex == 0xFFFFFFFFu)
if (PrevAnimIndex == -1)
{
float3 S;
float4 R;
float3 T;
SampleLocalTRS_Cur(bone, CurrentTime, S, R, T);
if ((int) bone == RootBoneIndex)
if (bone == RootBoneIndex)
{
T = 0;
R = RootInitRot;
@@ -295,7 +295,7 @@ row_major float4x4 SampleBlendedLocal(uint bone)
float3 T;
SampleLocalTRS_Cur(bone, CurrentTime, S, R, T);
if ((int) bone == RootBoneIndex)
if (bone == RootBoneIndex)
{
T = 0;
R = RootInitRot;
@@ -305,38 +305,17 @@ row_major float4x4 SampleBlendedLocal(uint bone)
float br = saturate(BlendRatio);
if (br <= 0.0f)
{
float3 S;
float4 R;
float3 T;
SampleLocalTRS_Prev(bone, PrevTime, S, R, T);
if ((int) bone == RootBoneIndex)
{
T = 0;
R = RootInitRot;
}
return MakeAffine(S, R, T);
}
if (br >= 1.0f)
{
float3 S;
float4 R;
float3 T;
SampleLocalTRS_Cur(bone, CurrentTime, S, R, T);
if ((int) bone == RootBoneIndex)
{
T = 0;
R = RootInitRot;
}
return MakeAffine(S, R, T);
}
float3 sA, sB, tA, tB;
float4 rA, rB;
float prevT = PrevTime;
if (BlendRatio < 1e-4f)
{
prevT = CurrentTime;
}
SampleLocalTRS_Prev(bone, PrevTime, sA, rA, tA);
SampleLocalTRS_Cur(bone, CurrentTime, sB, rB, tB);
@@ -345,7 +324,7 @@ row_major float4x4 SampleBlendedLocal(uint bone)
float3 T = lerp(tA, tB, br);
float4 R = QuatSlerp(rA, rB, br);
if ((int) bone == RootBoneIndex)
if (bone == RootBoneIndex)
{
T = 0;
R = RootInitRot;
@@ -1209,6 +1209,11 @@ _float3 CGameInstance::Get_MouseMove()
return { 0.f, 0.f, 0.f };
}
_long CGameInstance::Get_DIMouseMove(MOUSEMOVESTATE eMouseState)
{
return m_pKey_Manager->Get_DIMouseMove(eMouseState);
}
void CGameInstance::Picking()
{
return m_pMouse_Manager->Picking();
+3 -1
View File
@@ -174,6 +174,9 @@ _bool CModel::Play_Anim(_float fTimeDelta, CTransform* pTransform)
m_iPreAnimIndex = m_iCurrentAnimIndex;
}
ComputeAnimation(m_iCurrentAnimIndex, 0);
if (m_bIsFinishedAnim)
{
if (m_bIsLoop)
@@ -186,7 +189,6 @@ _bool CModel::Play_Anim(_float fTimeDelta, CTransform* pTransform)
}
}
ComputeAnimation(m_iCurrentAnimIndex, 0);
if (m_bRatio) {
Update_RootBone(m_fAmount * m_fRatio);
@@ -16,8 +16,6 @@ HRESULT CRenderTarget::Initialize(_uint iSizeX, _uint iSizeY, DXGI_FORMAT ePixel
{
D3D11_TEXTURE2D_DESC TextureDesc{};
m_vTargetSize.x = (_float)iSizeX;
m_vTargetSize.y = (_float)iSizeY;
TextureDesc.Width = iSizeX;
TextureDesc.Height = iSizeY;
TextureDesc.MipLevels = 1;
@@ -467,6 +467,13 @@ _float CTransform::TargetDis(_fvector vTarget)
return dist;
}
void CTransform::Add_SpeedPerSec(_float fSpeedPerSec)
{
m_fSpeedPerSec += fSpeedPerSec;
if (m_fSpeedPerSec < 0.f)
m_fSpeedPerSec = 0.f;
}
CTransform* CTransform::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
{
CTransform* pInstance = new CTransform(pDevice, pContext);
@@ -76,6 +76,8 @@ class ENGINE_DLL CCharacter_Controller final :
_bool IsActive() const { return m_bActive; }
void SetActive(_bool bCondition) { m_bActive = bCondition; }
_bool UpdateGroundByCast(_float fTimeDelta);
void Set_GravityAmount(_float Amount) { m_fGravity = Amount; }
_float Get_GravityAmount() { return m_fGravity; }
private:
ACTOR m_eBodyType = { ACTOR::END };
+1 -1
View File
@@ -130,7 +130,7 @@ enum class PXOBJECT : _uint {
GOBLIN_THEIF,
TROLL,
PENSIVE_GUARDIAN,
RANRAK,
RANROK,
#pragma endregion
#pragma region HOSTILE_HITBOX
+1 -1
View File
@@ -123,6 +123,7 @@ class ENGINE_DLL CGameInstance final : public CBase
POINT Get_MouseViewPortPos();
_bool Toggle_MouseCenter();
_float3 Get_MouseMove();
_long Get_DIMouseMove(MOUSEMOVESTATE eMouseState);
void Picking();
HRESULT Ray_WorldToLocal(_fmatrix* InvWorldMatrix);
_bool MousePicking_InLocalSpace(const _float3& vPointA, const _float3& vPointB, const _float3& vPointC, _float3& pOut);
@@ -180,7 +181,6 @@ class ENGINE_DLL CGameInstance final : public CBase
HRESULT Refit_RenderTarget(class CVIBuffer_Rect* pVIBuffer, class CShader* pShader, const _wstring& wstrRenderTargetInput, const _wstring& wstrRenderTargetOutput, SHADER_PASS_DEFERRED ePass);
HRESULT Finish_RenderTarget(class CVIBuffer_Rect* pVIBuffer, class CShader* pShader, const _wstring& wstrRenderTargetOriginal, const _wstring& wstrRenderTargetBloomed, SHADER_PASS_DEFERRED ePass);
HRESULT Bind_CS_RenderTarget(_uint iIndex, const _wstring& strTargetTag);
_float2 Get_RenderTargetSize(const _wstring& wstrTargetKey);
#ifdef _DEBUG
void RenderTarget_Debuger();
HRESULT Render_RenderTarget_Debug(class CShader* pShader, class CVIBuffer_Rect* pVIBuffer);
+13 -9
View File
@@ -1,4 +1,4 @@
#pragma once
#pragma once
#include "Base.h"
@@ -13,19 +13,19 @@ class CKey_Manager final : public CBase
public:
/* Keyboard */
// 꾹 누를 때
// 꾹 누를 때
_bool Key_Pressing(int _iKey) const;
// 눌렀다가 뗐을 때
// 눌렀다가 뗐을 때
_bool Key_Up(int _iKey) const;
// 누른 타이밍 딱 한 번 만
// 누른 타이밍 딱 한 번 만
_bool Key_Down(int _iKey) const;
/* Mouse */
// 꾹 누를 때
// 꾹 누를 때
_bool Mouse_Pressing(int _iKey) const;
// 눌렀다가 뗐을 때
// 눌렀다가 뗐을 때
_bool Mouse_Up(int _iKey) const;
// 누른 타이밍 딱 한 번 만
// 누른 타이밍 딱 한 번 만
_bool Mouse_Down(int _iKey) const;
_bool Mouse_StartMove() const;
@@ -33,6 +33,11 @@ class CKey_Manager final : public CBase
_bool Mouse_StopMove() const;
_float3 Get_MouseMove() const;
_long Get_DIMouseMove(MOUSEMOVESTATE eMouseState)
{
return *((reinterpret_cast<_int*>(&m_tNewMouseState)) + static_cast<_uint>(eMouseState));
}
void Update();
private:
LPDIRECTINPUT8 m_pInputSDK = { nullptr };
@@ -48,7 +53,6 @@ class CKey_Manager final : public CBase
DIMOUSESTATE2 m_tOldMouseState = {};
DIMOUSESTATE2 m_tNewMouseState = {};
private:
HRESULT Initialize(HINSTANCE hInst, HWND hWnd);
@@ -58,4 +62,4 @@ class CKey_Manager final : public CBase
virtual void Free() override;
};
NS_END
NS_END
@@ -44,7 +44,6 @@ class CRenderTarget final : public CBase
private:
_float4x4 m_WorldMatrix = {};
_point m_ptWindowSize = {};
_float2 m_vTargetSize = {};
_bool m_isDraw = { false };
#endif
+3 -2
View File
@@ -10,8 +10,8 @@ enum ESTATE
JOG,JOG_START, JOG_FWD, JOG_RIGHT, JOG_LEFT, JOG_BWD, JOG_STOP, JOG_AIM_LEFT, JOG_AIM_RIGHT, JOG_AIM_BWD, JOG_AIM_STOP_L, JOG_AIM_STOP_R, JOG_AIM_STOP_BWD,JOG_LEFT_TURN,JOG_RIGHT_TURN,JOG_112_L,JOG_112_R,JOG_90_L,JOG_90_R,
SPRINT,
SLIDE_START_R,SLIDE_LOOP_R,SLIDE_STOP_R,
JUMP,JUMP_JOG,JUMP_SPRINT,
LAND,
JUMP,JUMP_JOG,JUMP_SPRINT,FALL_LOOP,
LAND,LAND_TO_JOG,LAND_TO_SPRINT,
DODGE,DODGE_BLINK, DODGE_LEFT, DODGE_RIGHT,
COMBAT, SKILL, SKILL2,
SPELL, SPELL_180_R, SPELL_90_L,
@@ -45,6 +45,7 @@ enum ESTATE
PULSE,
GROUND_SWIPE_L,GROUND_SWIPE_R,
TUCKED,FLY_TO_HOVER,
FIREBURST_REEL,
////////////////////////// 빗자루
BROOM_MOUNT_B, BROOM_HOVER_IDLE_B, BROOM_HOVER_STOP_B,BROOM_HOVER_DOWN_B,BROOM_HOVER_UP_B,BROOM_HOVER_LEFT_B,BROOM_HOVER_RIGHT_B,BROOM_FLY_DOWN_B, BROOM_FLY_LEFT_B, BROOM_FLY_RIGHT_B, BROOM_FLY_UP_B,BROOM_FLY_B,BROOM_ADD,
/// ////////////////////////////
@@ -82,6 +82,9 @@ class ENGINE_DLL CTransform final :
void LookAt_Horizontal(_fvector vAt);
_float TargetDis(_fvector vTarget);
void Add_SpeedPerSec(_float fSpeedPerSec);
private:
_float m_fSpeedPerSec = {};
_float m_fRotationPerSec = {};