fix: camera position not correct

This commit is contained in:
2026-03-06 23:01:04 +08:00
parent 4e517c6861
commit d73d8e592d

View File

@@ -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);
}