Files
Petari/source/Game/Camera/CamTranslatorInwardSphere.cpp

23 lines
539 B
C++

#include "Game/Camera/CameraParamChunk.hpp"
#include "Game/Camera/CamTranslatorInwardSphere.hpp"
void CamTranslatorInwardSphere::setParam(const CameraParamChunk *pChunk) {
CameraGeneralParam *general = pChunk->mGeneralParam;
CameraInwardSphere *camera = mCamera;
f32 angleA;
f32 dist;
f32 angleB;
angleB = general->mAngleB;
dist = general->mDist;
angleA = general->mAngleA;
camera->mAngleA = angleA;
camera->mDist = dist;
camera->mAngleB = angleB;
}
Camera *CamTranslatorInwardSphere::getCamera() const {
return mCamera;
}