Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
AlvaroHG committed Aug 14, 2024
1 parent 6198bd9 commit 40fbd13
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions unity/Assets/Scripts/PhysicsRemoteFPSAgentController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6115,7 +6115,9 @@ public void RotateUniverseAroundAgent(ServerAction action) {
public void ChangeFOV(float fieldOfView, string camera = "") {
if (fieldOfView > 0 && fieldOfView < 180) {
if (string.IsNullOrEmpty(camera)) {
m_Camera.fieldOfView = fieldOfView;
agentManager.UpdateMainCamera(
fieldOfView: fieldOfView
);
actionFinished(true);
} else {
var cameraTuples = new List<(Camera camera, bool isThirdPartyCamera, int id)>()
Expand Down Expand Up @@ -6143,7 +6145,9 @@ public void ChangeFOV(float fieldOfView, string camera = "") {
fieldOfView: fieldOfView
);
} else {
tuple.camera.fieldOfView = fieldOfView;
agentManager.UpdateMainCamera(
fieldOfView: fieldOfView
);
}
}
actionFinished(true);
Expand Down

0 comments on commit 40fbd13

Please sign in to comment.