From acd2450e565d47f783449979c38bb91a5c5e9d2d Mon Sep 17 00:00:00 2001 From: devZoGok Date: Sat, 20 Jul 2024 18:24:28 +0300 Subject: [PATCH] using lookAt arguments with perpendicular view and up vectors --- inGameAppState.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inGameAppState.cpp b/inGameAppState.cpp index d0678de..c69a406 100755 --- a/inGameAppState.cpp +++ b/inGameAppState.cpp @@ -80,7 +80,7 @@ namespace battleship{ Camera *cam = Root::getSingleton()->getCamera(); cam->setPosition(Map::getSingleton()->getSpawnPoint(playerId - 1) + Vector3(1, 1, 1) * configData::CAMERA_DISTANCE); - cam->lookAt(Vector3(-1, -1, -1).norm(), Vector3(-1, 1, -1).norm()); + cam->lookAt(Vector3(0, -1, 1).norm(), Vector3(0, 1, 1).norm()); mainPlayer = Game::getSingleton()->getPlayer(playerId);