Gaitkit Open the lab
Spike Trap, A square floor trap: a riveted iron plate in a stone surround with a grid of square spikes that shoot up and sink back (rigged part "spikes", slides on y). Plate 1 to 2.5 m; spikes stand about 0.35 m above the plate when up and sink below the floor line when down, so set it into a floor. Optional pressure plate in front.
Prop · 1 moving part

Spike Trap

A square floor trap: a riveted iron plate in a stone surround with a grid of square spikes that shoot up and sink back (rigged part "spikes", slides on y). Plate 1 to 2.5 m; spikes stand about 0.35 m above the plate when up and sink below the floor line when down, so set it into a floor. Optional pressure plate in front.

Size
1.5 × 0.52 × 1.5 m
Triangles
976
Open in the lab Ready for any engine. The download carries the knobs you set here.

Tune it

4 knobs: Spikes per side, Metal, Plate size, Trigger.

Specs

Size
1.5 × 0.52 × 1.5 m
width × height × depth
Triangles
976
of 6,000
Draw calls
1
one vertex-colour material
Loop clip
4 m
of travel per cycle
Moving parts
1
spikes · slide
Knobs
4
3 presets
Night lights
0
none

Passed the validator: real scale, rests on y = 0, front faces +Z, deterministic.

Use it

Code for the specimen as it is set up above; it follows your knobs.

JavaScript
import { createAsset } from 'https://gaitkit.com/cdn/spike-trap.mjs';

const spikeTrap = createAsset();
scene.add(spikeTrap);                      // rests on y = 0, front faces +Z

More in the docs; agents can fetch all of this through MCP.

Knobs

KnobTypeValuesDefaultWhat it does
countrange2 to 6, step 14Spikes along each side of the grid: 2 gives 4 big-gap spikes, 6 gives a dense bed of 36.
metalchoiceiron rusty bronze obsidianironSpike and plate metal: iron (grey steel), rusty (old orange-brown), bronze (ancient temple), obsidian (black, evil lair).
sizerange1 to 2.5, step 0.51.5Width of the square trap in metres including its stone surround. 2 fills one 2 m dungeon-floor cell.
triggertoggleon / offfalseA loose pressure-plate stone 0.6 m in front of the trap (+Z) that a careless hero steps on to fire it.

Presets: temple trap {"metal":"bronze","size":2,"count":5} · rusty pit {"metal":"rusty","count":3,"size":1} · tripwire tomb {"trigger":true,"metal":"obsidian","count":6}

Files

FileWhat
spike-trap.glbGLB, default look · 159 KB
spike-trap.mjsES module, every knob live
spike-trap.objOBJ, static, no colour
spike-trap-params.jsonknob schema, presets, night zones

Licence

Use it in games, apps, renders and client work, commercially and without credit. Do not resell it as an asset or train a 3D generator on it. The full licence.