OdysseyDecomp/lib/al/Library/Camera/CameraStopJudge.cpp
2025-05-10 16:57:49 +02:00

20 lines
479 B
C++

#include "Library/Camera/CameraStopJudge.h"
#include "Library/Area/AreaObjUtil.h"
#include "Library/Area/IUseAreaObj.h"
namespace al {
CameraStopJudge::CameraStopJudge() = default;
bool CameraStopJudge::isStop() const {
if (mIsInvalidStopJudgeByDemo)
return false;
return mIsInCameraStopArea || _9;
}
void CameraStopJudge::update(const sead::Vector3f& position) {
mIsInCameraStopArea = isInAreaObj(this, "CameraStopArea", position);
}
} // Namespace al