mirror of
https://github.com/zhenyan121/Cubed.git
synced 2026-04-10 06:14:07 +08:00
fix: camera position not correct
This commit is contained in:
@@ -10,7 +10,8 @@ Camera::Camera() {
|
||||
|
||||
void Camera::updateMoveCamera() {
|
||||
CUBED_ASSERT_MSG(m_player, "nullptr");
|
||||
m_cameraPos = m_player->getPlayerPos();
|
||||
auto pos = m_player->getPlayerPos();
|
||||
m_cameraPos = glm::vec3(pos.x, pos.y + 1, pos.z);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user