-- @/lua/ge/server/commands.lua:131
local function getCameraTransformJson()
local pos = core_camera.getPosition()
local rot = core_camera.getQuat()
return string.format('[%0.2f, %0.2f, %0.2f, %g, %g, %g, %g]', pos.x, pos.y, pos.z, rot.x, rot.y, rot.z, rot.w)
end
if im.Button("Get Camera Transform") then
ffi.copy(camTransfrom, commands.getCameraTransformJson())
end