Skip to content

Commit

Permalink
Update Camera FoV as well when using simSetCameraFoV API
Browse files Browse the repository at this point in the history
Previously only Render texture FoVs were being updated
  • Loading branch information
rajat2004 committed Apr 7, 2021
1 parent d3e4185 commit 70179ce
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Unreal/Plugins/AirSim/Source/PIPCamera.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,8 @@ void APIPCamera::setCameraFoV(float fov_degrees)
for (int image_type = 0; image_type < image_count; ++image_type) {
captures_[image_type]->FOVAngle = fov_degrees;
}

camera_->SetFieldOfView(fov_degrees);
}


Expand Down

0 comments on commit 70179ce

Please sign in to comment.