getFovRad
Definition
-- @/lua/ge/extensions/core/camera.lua:1595
local function getFovRad()
return (finalCameraData.fovDeg * math.pi) / 180
end
Callers
@/lua/ge/server/commands.lua
function getCameraFovDeg() deprecationWarning("getCameraFovDeg", "core_camera.getFovDeg") return core_camera.getFovDeg() end
function getCameraFovRad() deprecationWarning("getCameraFovRad", "core_camera.getFovRad") return core_camera.getFovRad() end
function getCameraFov() deprecationWarning("getCameraFov", "core_camera.getFovDeg") return core_camera.getFovDeg() end
@/lua/ge/extensions/gameplay/markers/inspectVehicleMarker.lua
-- plane normal vector that points up from the plane constructed from the camera point and the upper edge of the screen
local fovRadians = core_camera.getFovRad()
tmpNormal:set(tmpZ)
@/lua/ge/extensions/editor/toolUtilities/util.lua
local groundDist = tmp1:distance(tmp2) -- The largest distance from the center of the AABB to the outside.
local halfFov = core_camera.getFovRad() * 0.5 -- Half the camera field-of-view (in radians).
local height = groundDist / tan(halfFov) + zMax + 5.0 -- The height at which the camera should be positioned, to fit the spline in view.
@/lua/ge/extensions/editor/tech/roadArchitect/junctions.lua
local groundDist = tmp0:distance(tmp1) -- The largest distance from the center of the box to the outside.
local halfFov = core_camera.getFovRad() * 0.5 -- Half the camera field of view (in radians).
local height = groundDist / tan(halfFov) + zMax + 5.0 -- The height that the camera should be to fit all the trajectory in view.
@/lua/ge/extensions/editor/tech/roadArchitect/groups.lua
local groundDist = tmp0:distance(tmp1) -- The largest distance from the center of the box to the outside.
local halfFov = core_camera.getFovRad() * 0.5 -- Half the camera field of view (in radians).
local height = groundDist / tan(halfFov) + zMax + 5.0 -- The height that the camera should be to fit all the trajectory in view.
@/lua/ge/extensions/core/ropeVisualTest.lua
-- Calculate camera distance based on FOV to fit the rope in view
local halfFov = core_camera.getFovRad() * 0.5
local cameraDist = groundDist / math.tan(halfFov) + 5.0
@/lua/ge/extensions/gameplay/markers/bigmapMarker.lua
camToClusterLeft:normalize()
local camToUpperPoint = quatFromAxisAngle(camToClusterLeft, (resolutionFactor * 0.05 * core_camera.getFovRad())):__mul(camToCluster)
if iconInfo then
local iconPos = quatFromAxisAngle(camToClusterLeft, (resolutionFactor * (0.02 + extraHeight) * core_camera.getFovRad())):__mul(camToUpperPoint)
bigMapModeColorI.alpha = bigMapMarkerAlpha *255
if iconInfo then
local iconPosColumn = quatFromAxisAngle(camToClusterLeft, (resolutionFactor * -0.03 * core_camera.getFovRad())):__mul(camToUpperPoint * 1.1)
tmpVec:set(data.camPos)
@/lua/ge/extensions/gameplay/markers/parkingMarker.lua
-- plane normal vector that points up from the plane constructed from the camera point and the upper edge of the screen
local fovRadians = core_camera.getFovRad()
tmpNormal:set(tmpZ)
@/lua/ge/extensions/editor/scriptAIEditor.lua
local groundDist = (vec3(midX, midY, 0.0) - vec3(xMax, yMax, 0.0)):length() -- The largest distance from the center of the box to the outside.
local halfFov = core_camera.getFovRad() * 0.5 -- Half the camera field of view (in radians).
local height = groundDist / tan(halfFov) + zMax + 5.0 -- The height that the camera should be to fit all the trajectory in view.
@/lua/ge/extensions/editor/roadEditor.lua
local dist = 10
local fovRadians = (core_camera.getFovRad() or 60)
local x, y, z = q * xVector, q * yVector, q * zVector
@/lua/ge/extensions/editor/tech/roadArchitect/roads.lua
local groundDist = tmp0:distance(tmp1) -- The largest distance from the center of the box to the outside.
local halfFov = core_camera.getFovRad() * 0.5 -- Half the camera field of view (in radians).
local height = groundDist / tan(halfFov) + zMax + 5.0 -- The height that the camera should be to fit all the trajectory in view.
@/lua/ge/extensions/freeroam/bigMapMode.lua
local camToClusterLeft = camUp:cross(camToCluster):normalized()
local camToUpperPoint = quatFromAxisAngle(camToClusterLeft, (resolutionFactor * 0.015 * core_camera.getFovRad())):__mul(camToCluster)