mirror of
https://github.com/CraftyBoss/SuperMarioOdysseyOnline.git
synced 2024-11-01 09:42:39 +00:00
33 lines
No EOL
985 B
C++
33 lines
No EOL
985 B
C++
#pragma once
|
|
|
|
#include "al/camera/CameraPoser.h"
|
|
#include "al/camera/alCameraPoserFunction.h"
|
|
|
|
#include "sead/math/seadVector.h"
|
|
|
|
#include "al/util.hpp"
|
|
|
|
// cc = custom cameras
|
|
|
|
namespace cc {
|
|
class CameraPoserCustom : public al::CameraPoser {
|
|
public:
|
|
CameraPoserCustom(char const*);
|
|
virtual void loadParam(al::ByamlIter const&) override;
|
|
virtual void start(al::CameraStartInfo const&) override;
|
|
virtual void init() override;
|
|
void reset(void);
|
|
virtual void update(void) override;
|
|
virtual void movement(void) override;
|
|
|
|
float mOffsetY = 120.0f;
|
|
float mDist = 1600.0f;
|
|
float mAngleV = 0.0f;
|
|
float mAngleH = 0.0f;
|
|
float mPrevH = 0.0f;
|
|
float mPrevV = 0.0f;
|
|
float mSnapSpeed = 0.15f;
|
|
bool mIsResetAngleIfSwitchTarget = false;
|
|
sead::Vector3f mPrevTargetDir = sead::Vector3f::ey;
|
|
};
|
|
} |