[add] Avadakedabra Fov값 조절 추가
This commit is contained in:
@@ -51,6 +51,7 @@ HRESULT CCamPosition_Shoulder::Initialize(void* pArg)
|
||||
|
||||
void CCamPosition_Shoulder::Priority_Update(_float fTimeDelta)
|
||||
{
|
||||
Lerp_FovAnim(fTimeDelta);
|
||||
if (FAILED(m_pGameInstance->IsBinded_Camera(CAMERA_SHOULDER))) {
|
||||
return;
|
||||
}
|
||||
@@ -341,6 +342,28 @@ _vector CCamPosition_Shoulder::Calc_DampingParentPos()
|
||||
|
||||
return XMVectorLerp(XMLoadFloat4(&m_vDampingStartPosition), XMLoadFloat4(&m_vDampingDestPosition), fTime);
|
||||
}
|
||||
void CCamPosition_Shoulder::Lerp_FovAnim(_float fTimeDelta)
|
||||
{
|
||||
if (m_bSpellFovLerp == false) {
|
||||
m_vSpellFovLerpTimer.x = 0.f;
|
||||
return;
|
||||
}
|
||||
m_vSpellFovLerpTimer.x += fTimeDelta;
|
||||
_float fRatio = {};
|
||||
if (m_vSpellFovLerpTimer.x < m_vSpellFovLerpTimer.y) {
|
||||
fRatio = m_vSpellFovLerpTimer.x / m_vSpellFovLerpTimer.y;
|
||||
m_pBinded_Camera->Set_Fov(XMConvertToRadians(CMyTools::Lerp_f1D(m_vSpellFovLerpDegree.x, m_vSpellFovLerpDegree.y, fRatio)));
|
||||
}
|
||||
else if (m_vSpellFovLerpTimer.x < m_vSpellFovLerpTimer.z) {
|
||||
fRatio = (m_vSpellFovLerpTimer.x - m_vSpellFovLerpTimer.y) / (m_vSpellFovLerpTimer.z - m_vSpellFovLerpTimer.y);
|
||||
m_pBinded_Camera->Set_Fov(XMConvertToRadians(CMyTools::Lerp_f1D(m_vSpellFovLerpDegree.y, m_vSpellFovLerpDegree.z, fRatio)));
|
||||
}
|
||||
else {
|
||||
m_bSpellFovLerp = false;
|
||||
m_vSpellFovLerpTimer.x = 0.f;
|
||||
m_pBinded_Camera->Set_Fov(XMConvertToRadians(m_vSpellFovLerpDegree.z));
|
||||
}
|
||||
}
|
||||
void CCamPosition_Shoulder::Set_CameraShake(_float fXShock, _float fYShock)
|
||||
{
|
||||
m_vAccRealDegrees.x = fXShock;
|
||||
@@ -350,6 +373,9 @@ void CCamPosition_Shoulder::Set_CameraAnim(_uint iIndex)
|
||||
{
|
||||
m_bPlayAnim = true;
|
||||
m_pModelCom->Set_AnimationIndex(iIndex,false);
|
||||
if (iIndex == 6) {
|
||||
m_bSpellFovLerp = true;
|
||||
}
|
||||
}
|
||||
_vector CCamPosition_Shoulder::Get_ShoulderGlobalPos()
|
||||
{
|
||||
@@ -483,6 +509,11 @@ void CCamPosition_Shoulder::Describe_Entity()
|
||||
GUI::SliderFloat("m_fDefaultCameraBackToFrontRatio", &m_fDefaultCameraBackToFrontRatio, -1.f, 1.f);
|
||||
GUI::SliderFloat("m_vFocalRatio", &m_vFocalRatio.x, 0.f, 1.f);
|
||||
GUI::SliderFloat("m_fCameraFowardDistance", &m_fCameraFowardDistance, 0.f, 4.f);
|
||||
GUI::Text("%.2f", XMConvertToDegrees(m_pBinded_Camera->Get_Fov()));
|
||||
GUI::Text("%d", m_bSpellFovLerp);
|
||||
GUI::SliderFloat3("m_vSpellFovLerpTimer", (_float*)&m_vSpellFovLerpTimer, 0.f, 5.f);
|
||||
GUI::SliderFloat3("m_vSpellFovLerpDegree", (_float*)&m_vSpellFovLerpDegree, 1.f, 60.f);
|
||||
|
||||
|
||||
if (GUI::TreeNode("AnimList")) {
|
||||
for (_int i = 0; i < m_pModelCom->Get_AnimSize(); i++)
|
||||
|
||||
@@ -2711,13 +2711,13 @@ HRESULT CLoader::Loading_For_GamePlay()
|
||||
Desc.vMatInfo = { 0.5f, 0.5f, 0.1f };
|
||||
Desc.fContactOffset = { 0.05f };
|
||||
Desc.vhalfGeometryInfo = { 0.5f, 1.f, 0.01f };
|
||||
Desc.fDensity = 10.f;
|
||||
Desc.fDensity = 20.f;
|
||||
PSX::PxTransform pxPivotTransform = PSX::PxTransform(PSX::PxVec3(0.f, 1.f, 0.f));
|
||||
Desc.vLocalRotQ = { 0.f, 0.f, 0.f, 1.f };
|
||||
Desc.vLocalTranslation = { 0.5f, 1.375f, 0.f };
|
||||
|
||||
Desc.pxMassCenter = pxPivotTransform;
|
||||
Desc.vAutoDamping = { 5.f, 5.f };
|
||||
Desc.vAutoDamping = { 10.f, 10.f };
|
||||
}
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("PHYSX_DYNAMIC_DOOR"), CRigidBody_Dynamic::Create(m_pDevice, m_pContext, Desc)))) {
|
||||
return E_FAIL;
|
||||
|
||||
@@ -29,6 +29,7 @@ class CCamPosition_Shoulder final : public CCamPosition
|
||||
_vector Get_ShoulderGlobalPos();
|
||||
void Set_CameraShake(_float fXShock, _float fYShock);
|
||||
void Set_CameraAnim(_uint iIndex);
|
||||
|
||||
private:
|
||||
virtual HRESULT Initialize_Prototype() override;
|
||||
virtual HRESULT Initialize(void* pArg) override;
|
||||
@@ -39,6 +40,7 @@ class CCamPosition_Shoulder final : public CCamPosition
|
||||
_vector Calc_AnimFollowTargetPos(_fvector vGreedPos);
|
||||
_vector Calc_BestPosition(_fvector vCastingPosition, _gvector vCastingDirection, _float fGreedDistance);
|
||||
_vector Calc_DampingParentPos();
|
||||
void Lerp_FovAnim(_float fTimeDelta);
|
||||
|
||||
#pragma region Base
|
||||
_float m_fMouseSensor = { 0.1f };
|
||||
@@ -74,9 +76,9 @@ class CCamPosition_Shoulder final : public CCamPosition
|
||||
_float2 m_vMoveLerpPositions = { };
|
||||
_float2 m_vMoveLerpTimer = { 0.f, TIMER_SHORT_LERP };
|
||||
|
||||
//_int m_iSpellFovLerp = { 0 };
|
||||
//_float3 m_vSpellFovLerpTimer = { 0.f, 1.f, 2.f };
|
||||
//_float3 m_vSpellFovLerpDegree = { 60.f, 30.f, 60.f };
|
||||
_bool m_bSpellFovLerp = { false };
|
||||
_float3 m_vSpellFovLerpTimer = { 0.f, 1.f, 2.f };
|
||||
_float3 m_vSpellFovLerpDegree = { 60.f, 30.f, 60.f };
|
||||
#pragma endregion
|
||||
_float2 m_vCameraShakeTimer = { 0.f, 0.3f };
|
||||
|
||||
|
||||
@@ -110,6 +110,9 @@ static constexpr pair<string_view, TIMESOCKET_FUNC> g_SocketFuncTypeTable[ENUM_C
|
||||
|
||||
// EFFECT
|
||||
{"RANROK_SHOUT", TIMESOCKET_FUNC::RANROK_SHOUT},
|
||||
{"INTRO_FIRE", TIMESOCKET_FUNC::INTRO_FIRE},
|
||||
{"INTRO_LIGHTNING", TIMESOCKET_FUNC::INTRO_LIGHTNING},
|
||||
{"INTRO_SMOKE", TIMESOCKET_FUNC::INTRO_SMOKE},
|
||||
// SOUND
|
||||
|
||||
// TRIGGER
|
||||
|
||||
Reference in New Issue
Block a user