[Modify] _vector _float4로 수정
This commit is contained in:
@@ -56,8 +56,8 @@ void CElementObject::Update(_float fTimeDelta)
|
||||
long((m_fY + m_pOwner->Get_WorldPostion().m128_f32[1]) + m_fSizeY * 0.5f)
|
||||
};
|
||||
|
||||
m_fCurrent_Position = XMVectorSet(m_fX, m_fY, 0.f, 1.f);
|
||||
m_vLerp_Position = XMVectorSet(m_fLerpX, m_fLerpY, 0.f, 1.f);
|
||||
m_fCurrent_Position = _float4(m_fX, m_fY, 0.f, 1.f);
|
||||
m_vLerp_Position = _float4(m_fLerpX, m_fLerpY, 0.f, 1.f);
|
||||
}
|
||||
|
||||
void CElementObject::Late_Update(_float fTimeDelta)
|
||||
@@ -71,6 +71,7 @@ HRESULT CElementObject::Render()
|
||||
|
||||
_vector CElementObject::Get_WorldPostion()
|
||||
{
|
||||
|
||||
return m_pOwner->Get_WorldPostion();
|
||||
}
|
||||
|
||||
@@ -138,9 +139,9 @@ _float CElementObject::Get_Nine_Slice_Bottom()
|
||||
|
||||
_bool CElementObject::Start_Lerp(_float fTimeDelta)
|
||||
{
|
||||
_vector Pos = m_fCurrent_Position;
|
||||
_vector Pos = XMLoadFloat4(&m_fCurrent_Position);
|
||||
|
||||
_vector Target = m_vLerp_Position;
|
||||
_vector Target = XMLoadFloat4(&m_vLerp_Position);
|
||||
|
||||
_vector Dir = XMVectorSubtract(Target, Pos);
|
||||
_vector LenVec = XMVector3Length(Dir);
|
||||
@@ -150,8 +151,8 @@ _bool CElementObject::Start_Lerp(_float fTimeDelta)
|
||||
|
||||
if (Distance <= move)
|
||||
{
|
||||
m_fX = m_vLerp_Position.m128_f32[0];
|
||||
m_fY = m_vLerp_Position.m128_f32[1];
|
||||
m_fX = m_vLerp_Position.x;
|
||||
m_fY = m_vLerp_Position.y;
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -167,8 +168,8 @@ _bool CElementObject::Start_Lerp(_float fTimeDelta)
|
||||
_bool CElementObject::Start_Lerp_Speed(_float fTimeDelta, _float2 MousePoint)
|
||||
{
|
||||
_vector Mouse = XMVectorSet(MousePoint.x, MousePoint.y, 1.f, 1.f);
|
||||
_vector Pos = m_fCurrent_Position;
|
||||
_vector Target = m_vLerp_Position;
|
||||
_vector Pos = XMLoadFloat4(&m_fCurrent_Position);
|
||||
_vector Target = XMLoadFloat4(&m_vLerp_Position);
|
||||
|
||||
_vector Dir = XMVectorSubtract(Target, Pos);
|
||||
_vector MouseDir = XMVectorSubtract(Mouse, Pos);
|
||||
@@ -185,8 +186,8 @@ _bool CElementObject::Start_Lerp_Speed(_float fTimeDelta, _float2 MousePoint)
|
||||
|
||||
if (Distance <= move)
|
||||
{
|
||||
m_fX = m_vLerp_Position.m128_f32[0];
|
||||
m_fY = m_vLerp_Position.m128_f32[1];
|
||||
m_fX = m_vLerp_Position.x;
|
||||
m_fY = m_vLerp_Position.y;
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -206,7 +207,7 @@ _bool CElementObject::Set_Trgger()
|
||||
|
||||
void CElementObject::Reset_Pos(_float fTimeDelta)
|
||||
{
|
||||
_vector Pos = m_fCurrent_Position;
|
||||
_vector Pos = XMLoadFloat4(&m_fCurrent_Position);
|
||||
|
||||
_vector Target = XMVectorSet(m_fOrigin_Position.x, m_fOrigin_Position.y, 0.f, 0.f);
|
||||
|
||||
@@ -239,7 +240,7 @@ void CElementObject::Reset_Size_Lerp(_float fTimeDelta)
|
||||
{
|
||||
}
|
||||
|
||||
_vector CElementObject::Get_Lerp_Pos()
|
||||
_float4 CElementObject::Get_Lerp_Pos()
|
||||
{
|
||||
return m_vLerp_Position;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user