metaforce/Runtime/Camera/CInterpolationCamera.hpp

44 lines
1.7 KiB
C++
Raw Normal View History

2017-03-24 05:30:16 +00:00
#ifndef __URDE_CINTERPOLATIONCAMERA_HPP__
#define __URDE_CINTERPOLATIONCAMERA_HPP__
#include "CGameCamera.hpp"
namespace urde
{
class CInterpolationCamera : public CGameCamera
{
2018-06-26 06:58:43 +00:00
TUniqueId x188_targetId = kInvalidUniqueId;
float x18c_time = 0.f;
float x190_maxTime = 0.f;
zeus::CTransform x194_;
zeus::CVector3f x1c4_lookPos;
2018-06-28 01:17:01 +00:00
float x1d0_positionSpeed = 0.f;
float x1d4_rotationSpeed = 0.f;
2018-06-26 06:58:43 +00:00
float x1d8_ = 0.f;
2018-06-28 01:17:01 +00:00
bool x1d8_24_sinusoidal : 1;
float x1dc_closeInAngle = M_PIF * 2.f;
bool InterpolateSinusoidal(zeus::CTransform& xf, const zeus::CVector3f& targetOrigin,
const zeus::CVector3f& lookPos, float maxTime, float curTime);
bool InterpolateWithDistance(zeus::CTransform& xf, const zeus::CVector3f& targetOrigin,
const zeus::CVector3f& lookPos, float positionSpeed,
float rotationSpeed, float dt, float maxTime, float curTime);
2017-03-24 05:30:16 +00:00
public:
CInterpolationCamera(TUniqueId uid, const zeus::CTransform& xf);
void Accept(IVisitor& visitor);
void AcceptScriptMsg(EScriptObjectMessage, TUniqueId, CStateManager&);
void ProcessInput(const CFinalInput&, CStateManager& mgr);
void Render(const CStateManager&) const;
void Reset(const zeus::CTransform&, CStateManager& mgr);
void Think(float, CStateManager &);
2017-10-16 05:26:50 +00:00
void SetInterpolation(const zeus::CTransform& xf, const zeus::CVector3f& lookPos,
2018-06-28 01:17:01 +00:00
float maxTime, float positionSpeed, float rotationSpeed,
TUniqueId camId, bool sinusoidal, CStateManager& mgr);
2018-06-26 06:58:43 +00:00
void DeactivateInterpCamera(CStateManager&);
2017-03-24 05:30:16 +00:00
};
}
#endif // __URDE_CINTERPOLATIONCAMERA_HPP__