Ammo Crate
A game ammo pickup with a lid hinged at the back (the part named lid tips about x): a 30 cm steel ammo can with pressed ribs, a folding handle, a side latch and a belt of brass rounds inside, a 80 cm wooden ammo crate with planks, corner battens, rope handles, metal hasps and two rows of rifle magazines, or a 60 cm sci-fi ammo case with a chamfered shell, glowing strips and energy cells in a foam tray. Colour, lid opening and contents are knobs; sci-fi strips and cells glow at night.
- Size
- 0.32 × 0.31 × 0.19 m
- Triangles
- 1,654
Tune it
5 knobs: Style, Paint, Open, Contents, Glow.
Specs
- Size
- 0.32 × 0.31 × 0.19 m width × height × depth
- Triangles
- 1,654 of 6,000
- Draw calls
- 1 one vertex-colour material
- Moving parts
- 1 lid · rotate
- Knobs
- 5 3 presets
- Night lights
- 1 glow
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.
import { createAsset } from 'https://gaitkit.com/cdn/ammo-crate.mjs';
const ammoCrate = createAsset();
scene.add(ammoCrate); // rests on y = 0, front faces +Z
// 'lid' pivots on its hinge: -110° to 0° around x
ammoCrate.getObjectByName('lid').rotation.x = THREE.MathUtils.degToRad(-110);import { useMemo } from 'react';
import { createAsset } from 'https://gaitkit.com/cdn/ammo-crate.mjs';
export function AmmoCrate() {
const model = useMemo(() => createAsset(), []);
return <primitive object={model} />;
}# Import ammo-crate.glb (download below). Moving parts are separate nodes, pivoted on their hinge.
$AmmoCrate/lid.rotation_degrees.x = -110// Import ammo-crate.glb with glTFast (com.unity.cloud.gltfast).
transform.Find("lid").localEulerAngles = new Vector3(/* x: */ -110, 0, 0);Use the gaitkit MCP server: get_variant({ "id": "ammo-crate", "want": "default look" })
then place the result.
# MCP endpoint
https://gaitkit.com/mcpKnobs
| Knob | Type | Values | Default | What it does |
|---|---|---|---|---|
style | choice | can crate scifi | can | can (a 30 cm steel ammo can with a folding handle and a belt of rounds), crate (an 80 cm wooden crate with rope handles and two rows of rifle magazines) or scifi (a 60 cm armoured case with glowing strips and energy cells). |
finish | choice | olive tan grey black red | olive | Paint of the can or case, and of the crate hardware and magazines: olive (olive drab), tan (desert), grey, black or red (explosives / special ammo). |
open | range | 0 to 1, step 0.05 | 0.65 | How far the lid is open: 0 shut, 1 fully open (about 110 degrees) showing the ammo. |
contents | toggle | on / off | true | Ammo inside: a belt of brass rounds (can), rifle magazines (crate) or energy cells (scifi). Off: an empty dark interior. |
glow | color | any colour | #4fd8ff | Colour of the sci-fi strips and energy cells (scifi style only). #4fd8ff cyan, #7dff6a green, #ffb02e amber, #ff4a5a red. |
Presets: ammo can {"style":"can","finish":"olive","open":0} · open ammo crate {"style":"crate","finish":"olive","open":0.8} · energy cell case {"style":"scifi","finish":"black","glow":"#7dff6a","open":0.75}
Files
| File | What |
|---|---|
| ammo-crate.glb Pro | GLB, default look · 197 KB |
| ammo-crate.mjs Pro | ES module, every knob live |
| ammo-crate.obj Pro | OBJ, static; colours in the .mtl |
| ammo-crate.mtl | OBJ colours; keep it next to the .obj |
| ammo-crate-params.json | knob 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.