Skip to content

Commit

Permalink
adjust initial camera yaw
Browse files Browse the repository at this point in the history
  • Loading branch information
siecvi committed Jan 13, 2025
1 parent dd6e938 commit 1574dde
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Sources/Client/Client_NetHandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ namespace spades {
followCameraState.enabled = false;
freeCameraState.position = MakeVector3(256, 256, 4);
freeCameraState.velocity = MakeVector3(0, 0, 0);
followAndFreeCameraState.yaw = -DEG2RAD(90);
followAndFreeCameraState.yaw = DEG2RAD(90);
followAndFreeCameraState.pitch = DEG2RAD(89);

// welcome players
Expand Down
4 changes: 2 additions & 2 deletions Sources/Client/Client_Scene.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -194,8 +194,8 @@ namespace spades {
case ClientCameraMode::None: SPUnreachable();
case ClientCameraMode::NotJoined: {
def.viewOrigin = MakeVector3(256, 256, 4);
def.viewAxis[0] = MakeVector3(-1, 0, 0);
def.viewAxis[1] = MakeVector3(0, 1, 0);
def.viewAxis[0] = MakeVector3(1, 0, 0);
def.viewAxis[1] = MakeVector3(0, -1, 0);
def.viewAxis[2] = MakeVector3(0, 0, 1);

def.zNear = 0.05F;
Expand Down

0 comments on commit 1574dde

Please sign in to comment.