Trying to get the size/location of a camera frustum’s plane at a specific distance (depth) from the camera.
Is there some ready solution that would allow to do this without messing with projection matrices in C++?
Trying to get the size/location of a camera frustum’s plane at a specific distance (depth) from the camera.
Is there some ready solution that would allow to do this without messing with projection matrices in C++?
I am not aware of a ready made function for this, but given the camera transform, field of view angle and aspect ratio it is relatively simple math to calculate what you need. The center of the plane is at CameraLocation + CameraRotation.Vector() * Depth, horizontal size is FMath::Tan(FOVInRadians * 0.5f) * Depth * 2.f and the vertical size is HorizontalSize * ScreenSize.Y / ScreenSize.X