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 Jan 17, 2021
1 parent 9415f8b commit 7be34d7
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 7be34d7

Please sign in to comment.