setAxisGizmoRotateLock
Definition
-- @/=[C]:-1
function setAxisGizmoRotateLock(...)
Callers
@/lua/ge/extensions/editor/api/gizmo.lua
-- @param z true to allow rotation on Z axis
local function setAxisGizmoRotateLock(x, y, z)
worldEditorCppApi.setAxisGizmoRotateLock(x, y, z)
local function setAxisGizmoRotateLock(x, y, z)
worldEditorCppApi.setAxisGizmoRotateLock(x, y, z)
end
@/lua/ge/extensions/editor/toolUtilities/gizmo.lua
-- Lock the appropriate axes.
editor.setAxisGizmoRotateLock(false, isRotEnabled, false) -- We only allow rotation around the local tangent.
editor.setAxisGizmoTranslateLock(true, true, not isConformToTerrain) -- Z is locked if conforming to terrain.