GE Lua Documentation

Press F to search!

getPosRot

Definition


-- @/lua/ge/extensions/gameplay/walk.lua:310

local function getPosRot()
  local unicycle = getPlayerUnicycle()
  if active and unicycle then
    return unicycle:getPosition(), core_camera.getQuat()
  end
end

Callers

@/lua/ge/extensions/util/showroom.lua

local function getPosRot()
  return localToWorld(vec3(0,0,0)), quat(0,0,0,1)
local function moveInside(veh)
  local pos,rot = getPosRot()
  veh:setPosRot(pos.x, pos.y, pos.z, rot.x, rot.y, rot.z, rot.w)
@/lua/ge/extensions/core/cameraModes/unicycle.lua

function C:getPosRot()
  if not self.pos or not self.rotVec then