GE Lua Documentation

Press F to search!

getCameraQuat

Definition


-- @/lua/ge/server/commands.lua:190
function getCameraQuat() deprecationWarning("getCameraQuat", "core_camera.getQuat") return core_camera.getQuat() end

Callers

@/lua/ge/extensions/editor/vehicleEditor/liveEditor/veVehicleSpawner.lua
        local spawnPos = core_camera.getPosition()
        local spawnRot = getCameraQuat()
        local veh = core_vehicles.spawnNewVehicle(vehData.model.key, {pos = spawnPos, rot = spawnRot})
@/lua/ge/extensions/editor/vehicleEditor/veToolbar.lua
              local spawnPos = core_camera.getPosition()
              local spawnRot = getCameraQuat()
              local veh = core_vehicles.spawnNewVehicle(vehData.model.key, {pos = spawnPos, rot = spawnRot})