mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-09 03:07:41 +00:00
Finish CFirstPersonCamera
This commit is contained in:
@@ -11,37 +11,30 @@ class CFirstPersonCamera : public CGameCamera
|
||||
float x188_orbitCameraSpeed;
|
||||
bool x18c_lockCamera = false;
|
||||
zeus::CTransform x190_gunFollowXf;
|
||||
float x1c0_ = 0.f;
|
||||
float x1c0_pitch = 0.f;
|
||||
TUniqueId x1c4_pitchId = kInvalidUniqueId;
|
||||
union {
|
||||
struct
|
||||
{
|
||||
bool x1c6_24_ : 1;
|
||||
};
|
||||
u16 _dummy = 0;
|
||||
};
|
||||
|
||||
zeus::CVector3f x1c8_;
|
||||
float x1d4_ = 0.f;
|
||||
bool x1c6_24_deferBallTransitionProcessing : 1;
|
||||
zeus::CVector3f x1c8_closeInVec;
|
||||
float x1d4_closeInTimer = 0.f;
|
||||
|
||||
public:
|
||||
CFirstPersonCamera(TUniqueId, const zeus::CTransform& xf, TUniqueId, float orbitCameraSpeed,
|
||||
float fov, float nearplane, float farplane, float aspect);
|
||||
|
||||
void Accept(IVisitor& visitor);
|
||||
void PreThink(float, CStateManager&);
|
||||
void Think(float, CStateManager&);
|
||||
void PreThink(float dt, CStateManager& mgr);
|
||||
void Think(float dt, CStateManager& mgr);
|
||||
void ProcessInput(const CFinalInput&, CStateManager& mgr);
|
||||
void Reset(const zeus::CTransform&, CStateManager& mgr);
|
||||
|
||||
void SkipCinematic();
|
||||
const zeus::CTransform& GetGunFollowTransform() const { return x190_gunFollowXf; }
|
||||
void UpdateTransform(CStateManager&, float dt);
|
||||
void UpdateElevation(CStateManager&);
|
||||
void UpdateTransform(CStateManager& mgr, float dt);
|
||||
void UpdateElevation(CStateManager& mgr);
|
||||
void CalculateGunFollowOrientationAndTransform(zeus::CTransform&, zeus::CQuaternion&, float, zeus::CVector3f&);
|
||||
void SetScriptPitchId(TUniqueId uid) { x1c4_pitchId = uid; }
|
||||
void SetLockCamera(bool v) { x18c_lockCamera = v; }
|
||||
void SetX1C6_24(bool v) { x1c6_24_ = v; }
|
||||
void DeferBallTransitionProcessing() { x1c6_24_deferBallTransitionProcessing = true; }
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user