using lookAt arguments with perpendicular view and up vectors

This commit is contained in:
devZoGok
2024-07-20 18:24:28 +03:00
parent af71811731
commit acd2450e56
+1 -1
View File
@@ -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);