Bablo ResourcesDocs

Move & Rotate Gizmo

When props are selected, handles appear on them: the gizmo. Drag a handle with the left mouse button to move or turn the selection, and release the button to save. See Selecting & Editing Props for how to select.

The gizmo is used in cursor mode, see Camera & Controls. It is hidden while a prop is picked for placing, and while Delete mode, Box Select, Array or Fill is open.


Move and Rotate

The gizmo has two sets of handles. Switch with Move / Rotate in the top bar, or press G. G works in fly mode as well.

Move handles

HandleDrag it to
Arrows: red X, green Y, blue ZMove the selection along that axis. While you drag, a long line shows the axis.
Squares between two arrowsMove the selection on the plane of those two axes. The square between the X and Y arrows moves it across the map without changing its height. Each square has the colour of the axis it leaves out.
Square in the middleMove the selection across the screen, parallel to the view.

Rotate handles

Three rings, one around each axis: red around X, green around Y and blue around Z. Drag along a ring to turn the selection around that axis. The blue ring turns it left and right like a heading. While you turn, a wedge shows how far you turned.

The handle under the cursor turns white, and so does the handle you drag.


World and Local

OptionAxes
WorldX and Y run along the map, Z points straight up.
LocalThe axes turn with the selected prop. With several props selected, they follow the main one: the prop you selected last.

Switch with World / Local in the top bar.


Snap

The Snap chip in the top bar makes moves and turns go in steps:

DragSnap onSnap off
MovingSteps of Config.Gizmo.gridStep (0.5 m).Free.
TurningSteps of Config.Gizmo.turnStep (15 degrees).Free.

An arrow moves the selection in whole steps from where you grabbed it. A square in World puts the centre of the selection on the world grid. Turning goes in whole steps from where you grabbed the ring.

After a resource start the Snap chip is off, but turning still goes in 15 degree steps, because turnSnap = true in config.lua. Switch Snap on and off once to turn freely. With gridSnap = true the chip starts on.

Move / Rotate, World / Local, Snap and Stick keep their state when you close the editor, until you leave the server or the resource restarts. Config.Gizmo sets how they start.


Stick

With Stick on, a selection you drag with the move handles snaps against the placed props around it and onto the ground:

SnapsWhat happens
Against a neighbourWhen a side of the selection comes within stickReach (0.45 m) of a side of a neighbour, it snaps flush against it. It lets go again once you pull it a quarter further away.
In line with a neighbourClose to a neighbour, the edges of the selection line up with the edges of that neighbour, so rows and walls stay even.
Onto the groundDragged along Z, with a square that includes Z or with the middle square, the selection settles on the surface below when its bottom comes within groundReach (1 m). It leaves the surface again once you lift it a quarter further.
Along the groundWith the square between the X and Y arrows, a selection that rests on the ground stays on it and follows its height as you slide it over slopes.

The arrows for X and Y never snap to the ground. Stick does nothing while you turn.

While Stick holds the selection, the face of the neighbour it sticks to is outlined, a line runs to it from the middle of the selection, and the outline of the selection is drawn faintly. A dot marks where the selection rests on the ground.

Only placed props count as neighbours, and only visible ones within stickScanRadius (25 m) of the selection, at most stickScanMax (150) of them, nearest first. Props bigger than stickMaxSpan (30 m) are left out, because such sizes are usually wrong. The ground can be the world or any prop below.

Snap and Stick can be on together. On an axis where Stick catches, Stick wins over the grid.


Copying while dragging

Hold Alt when you grab a handle. The selection is copied on the spot first, then the copies move with the handle and the originals stay where they are. The copies stay selected afterwards. One undo removes the copies again.

When the copy can’t be saved, you get the message and the drag moves the original props instead. That happens when the map is full, or when the selection holds an adopted prop whose model is not in the catalogue: That model isn’t allowed. See Selecting & Editing Props.


Saving and cancelling a drag

Release the left mouse button to end the drag. The new position is saved, and the top bar shows Saving… until the server answers. When the server refuses, the props jump back and you get a message, for example Invalid position. when they would end up outside the area the editor accepts.

During a dragWhat happens
Esc or XThe props go back to where they were. Nothing is saved.
Hold the right mouse buttonLook around. The drag pauses while you look.
Other editing keysDo nothing until the drag ends.

Each drag is one step in the undo history, see Undo & Redo.


Several props at once

With several props selected, the gizmo sits at their centre: the average of their positions. Moving moves all of them. Turning turns all of them around that centre, so the group turns as a whole.


Size and position of the handles

The arrows are screenSize (0.1) of the screen height long, and the rings reach as far out as the arrows. They keep that size on screen while the camera is between nearDistance (2 m) and farDistance (300 m) from them. Closer they get bigger on screen, farther they get smaller.

For tall selections the handles move up: when the top of the selection is more than liftFrom (1.5 m) above its centre, the handles sit at liftShare (0.67) of that height, at most liftMax (12 m) above the centre. A line with a dot links them to the centre.

The handles stay visible when walls or other props are between the camera and the selection.


Settings

LUA
Config.Gizmo = {
    mode = 'move', -- handles the gizmo opens with: 'move' arrows or 'rotate' rings
    space = 'world', -- 'world' keeps the axes on the map grid, 'local' turns them with the selected prop
    gridSnap = false, -- moves snap to the grid
    turnSnap = true, -- turns snap to turnStep (on even though the Snap chip starts off)
    contactSnap = false, -- Stick: dragged props line up with neighbours and settle on the ground
    gridStep = 0.5, -- grid spacing for snapped moves (m); also the gap between duplicates while grid snap is off
    turnStep = 15.0, -- a snapped turn moves in steps of this many degrees
    stickReach = 0.45, -- Stick: a neighbour pulls from this close (m) and lets go a quarter further out
    stickScanRadius = 25.0, -- Stick: only props this close to the dragged selection are considered (m)
    stickScanMax = 150, -- Stick: at most this many props are considered, nearest first
    stickMaxSpan = 30.0, -- Stick: props that report a size larger than this (m) are not stuck to, because such sizes are usually wrong
    groundReach = 1.0, -- Stick: a prop this close to the ground settles onto it (m) and leaves it when lifted a quarter further
    screenSize = 0.1, -- arrow length as a share of the screen height
    nearDistance = 2.0, -- the gizmo stops shrinking when the camera is closer than this (m)
    farDistance = 300.0, -- the gizmo stops growing when the camera is farther than this (m)
    liftFrom = 1.5, -- selections taller than this get their handles raised (m)
    liftShare = 0.67, -- raised handles sit at this share of the selection's height
    liftMax = 12.0, -- handles are never raised more than this above the selection's centre (m)
    ringSegments = 40, -- straight pieces per rotate ring; more is rounder but costs more draw calls
    colorX = { 235, 70, 70 }, -- X axis (r, g, b)
    colorY = { 95, 205, 100 }, -- Y axis (r, g, b)
    colorZ = { 122, 173, 255 }, -- Z axis (r, g, b)
    colorAccent = { 122, 173, 255 }, -- centre square, lift line, stick guides and rotate wedge (r, g, b)
    colorActive = { 245, 245, 245 }, -- handle under the cursor or being dragged (r, g, b)
}

colorX, colorY and colorZ colour the arrows, squares and rings of each axis. colorAccent colours the middle square, the line to raised handles, the Stick guides and the turn wedge. colorActive colours the handle under the cursor or being dragged. See Gizmo.