← labopen technic →

Technic

Bricks, evolved. The studs are gone; in their place, holes. Beams with holes along them, pins and axles that go through the holes, gears that mesh, wheels that roll, ramps and marbles, a motor, and a hub that tells the motor what to do. You build it, then it goes.

The build stands on a pegboard: a wall of holes behind it, a floor beneath. Pieces lie in layers in front of the board, each layer one module deep (a module is one hole pitch, 8 mm, as on the real pieces). Pins and axles go through the holes, across the layers, and into the board.

For small hands

The rules are the real ones, and they are the teacher; what the hands do by default is meant to give the first move away and leave the model underneath.

Hands

TouchMouse and keys
the drawer of piecespiecesP
lift a placed piece to move itpress and hold itthe same
the viewsview: face on, from above, alongthe same
take a piecetap it in the drawer (it goes in the corner); or drag it sideways out of the drawer onto the buildthe same; N for the next
use the piece in handdrag it from its cornerthe same
put it onlet go where it should gothe same
turn the piece in handtap its cornerR
select a placed piecetap it (the one you just put on already is)click it
move itdrag the selected piece: the hole you take it by stays under your fingerthe same
turn it · bring it nearer · send it fartherturn · nearer · fartherR · ] · [
change a beam's colourcolourC
take it awayremoveDelete
let it gotap nothingEsc
step backundoZ
pause it, let it go onpause / playspace
back as builtrewindW
keep what's on the board as a piecekeepthe same
pull on something as it goesdrag a piece you haven't pickedthe same
your buildsbuilds (the start screen: continue one, rename or forget it, or start from something)Esc closes it
the hub's programtap the hub (as it runs, or a selected one); programthe same
look arounddrag anything else; two fingers pinch and slidedrag; right-drag (or shift) slides; the wheel

Where a piece goes

What is fixed, what turns, and what is free follows from that. A beam on a tight pin into the board is part of the board. A beam on an axle in the board is a pendulum. A beam on a smooth pin to another beam is a link. A gear on an axle through a beam turns with the axle; the beam doesn't.

Running

It runs from the start: gravity pulls, the floor and the walls hold, the motor turns. Drag a piece you haven't picked to pull on it (a crank, by hand). pause stops time; rewind puts it all back as built. When the build changes, the machine is read again from it and takes over from where the old one had got to, so nothing jumps.

The motor needs the hub, anywhere on the build; without it nothing is powered. Tap the hub for its program: each motor has a port (A, B, …, in the order the motors went on), a speed, and a rule:

The missions, on the start screen: make the big gear turn, ring the bell, a marble in the cup, make it a piece, use it twice, drive to the wall.

The hub also shows what it reads: its tilt, and the distance to the nearer wall.

The solver

The mechanism (client/technic/pieces.ts) is read off the build: pieces held together are one rigid body; pins and axles in round holes are joints; gears touching are meshes; a motor's output is a motor. The solver (client/technic/sim.ts) is position-based (XPBD) in the plane of the board, in small steps: each step the bodies move freely, every constraint is projected once, and velocities are read back from where things ended up. A body on one pivot turns about that point exactly. A gear mesh keeps two rims moving together relative to the line between their centres, so a gear carried round another still meshes. A motor advances the angle it wants with only so much torque: stalled, it slips. Friction at the floor holds the bit of rim that touches it, which is what makes a wheel roll.

Pieces don't collide with each other (they're in layers, and they pass): only the floor and the walls are solid, and balls, which meet whatever shares their layer. Gravity is a tabletop's, not the world's.

Builds

The start screen (builds) keeps your builds in this browser, each with a name and a picture, and offers what to start from: an empty board, or one of the machines. Starting from a machine makes a new build of your own from it, to take apart, extend and change; the original stays as it was. begin again clears the current build.

The marble run is the one to extend: two ramps, a seesaw, a paddle on the motor. Balls meet whatever shares their layer (the one against the board, in that build), so a ramp, a beam or a gear put there is in their way; a ball dropped anywhere joins in. A longer run is more ramps, staggered, each held by a tight pin at its top; a lift is a crank or a wheel on the motor where the balls come to rest.

Notes