GE Lua Documentation

Press F to search!

getRight

Definition


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

local function getRight()
  local res = vec3(rightVec)
  res:setRotate(finalCameraData.rot)
  return res
end

Callers

@/lua/ge/extensions/editor/assetBrowser.lua
    local camPos = core_camera.getPosition()
    local camRight = core_camera.getRight()
    local camUp = core_camera.getUp()
@/lua/ge/server/commands.lua
function getCameraUp() deprecationWarning("getCameraUp", "core_camera.getUp") return core_camera.getUp() end
function getCameraRight() deprecationWarning("getCameraRight", "core_camera.getRight")  return core_camera.getRight() end
function getCameraForward() deprecationWarning("getCameraForward", "core_camera.getForward") return core_camera.getForward() 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)