rework API
This commit is contained in:
@@ -8,7 +8,6 @@
|
||||
#include "Base/FrameMetadata.hpp"
|
||||
#include "Scene/Camera.hpp"
|
||||
#include "Input/InputManager.hpp"
|
||||
#include "Input/InputDeviceMouse.hpp"
|
||||
#include "Input/InputKey.hpp"
|
||||
|
||||
namespace OpenVulkano
|
||||
@@ -40,8 +39,6 @@ namespace OpenVulkano
|
||||
vec *= m_boostFactor;
|
||||
}
|
||||
|
||||
CameraController::Tick();
|
||||
|
||||
m_yaw -= input->GetAxis(m_actionLookSide) * timeScale / 2.0f;
|
||||
m_pitch -= input->GetAxis(m_actionLookUp) * timeScale / 2.0f;
|
||||
m_pitch = std::min(1.4f, std::max(-1.4f, m_pitch));
|
||||
@@ -51,7 +48,6 @@ namespace OpenVulkano
|
||||
Math::Matrix4f camTransformation = Math::Utils::toMat4(rot);
|
||||
camTransformation[3] = Math::Vector4f(m_position, 1);
|
||||
GetCamera()->SetMatrix(camTransformation);
|
||||
//CameraController::Tick();
|
||||
CURRENT_FRAME.needsRedraw = true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user