GE Lua Documentation

Press F to search!

getUp

Definition


-- @/lua/ge/extensions/core/camera.lua:1557

local function getUp()
  local res = vec3(upVec)
  res:setRotate(finalCameraData.rot)
  return res
end

Callers

@/lua/ge/extensions/editor/assetBrowser.lua
    local camRight = core_camera.getRight()
    local camUp = core_camera.getUp()
    local camFwd = vec3(camUp.y * camRight.z - camUp.z * camRight.y, camUp.z * camRight.x - camUp.x * camRight.z, camUp.x * camRight.y - camUp.y * camRight.x)
@/lua/ge/extensions/tech/sensors.lua
    conf.dir = matrix:getForward()
    conf.up = matrix:getUp()
  end
@/lua/ge/extensions/freeroam/bigMapMode.lua
        local vehDir = playerVehicle:getDirectionVector()
        local vehicleDirLocalX, vehicleDirLocalY = vehDir:dot(core_camera.getRight()), vehDir:dot(core_camera.getUp())
        local vehicleDirXYLocal = vec3(vehicleDirLocalX,vehicleDirLocalY,0)
@/lua/ge/server/commands.lua
function getCameraPosition() deprecationWarning("getCameraPosition", "core_camera.getPosition") return core_camera.getPosition() end
function getCameraUp() deprecationWarning("getCameraUp", "core_camera.getUp") return core_camera.getUp() end
function getCameraRight() deprecationWarning("getCameraRight", "core_camera.getRight")  return core_camera.getRight() end
@/lua/ge/extensions/core/vehicleMirrors.lua
  local camPos = core_camera.getPosition()
  -- local camUp = vec3(core_camera.getUp())
  local vehPos = veh:getPosition()