Castle Wall
A modular stone curtain wall for a 4 m castle grid: 4 m long, 2 m thick, with a wall walk 6 m up behind a corbelled, crenellated parapet facing +Z. Pieces: straight, corner (L with a corner turret), broken (ruined top with rubble) and stairs (a two-flight stone stair up to the walk on the -Z courtyard side). Torches glow at night.
- Size
- 4.0 × 7.8 × 2.7 m
- Triangles
- 1,352
- Kit
- Castle
Tune it
5 knobs: Piece, Stone, Crenellations, Torches, Seed.
Specs
- Size
- 4.0 × 7.8 × 2.7 m width × height × depth
- Triangles
- 1,352 of 6,000
- Draw calls
- 1 one vertex-colour material
- Knobs
- 5 3 presets
- Night lights
- 1 torch
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/castle-wall.mjs';
const castleWall = createAsset();
scene.add(castleWall); // rests on y = 0, front faces +Zimport { useMemo } from 'react';
import { createAsset } from 'https://gaitkit.com/cdn/castle-wall.mjs';
export function CastleWall() {
const model = useMemo(() => createAsset(), []);
return <primitive object={model} />;
}# Import castle-wall.glb (download below). It is a static mesh, one material per colour.
add_child(preload("res://castle-wall.glb").instantiate())// Import castle-wall.glb with glTFast (com.unity.cloud.gltfast).
// Drop it in the scene: 1 unit = 1 metre, +Z is its front.Use the gaitkit MCP server: get_variant({ "id": "castle-wall", "want": "default look" })
then place the result.
# MCP endpoint
https://gaitkit.com/mcpKnobs
| Knob | Type | Values | Default | What it does |
|---|---|---|---|---|
piece | choice | straight corner broken stairs | straight | straight (4 m wall section), corner (L piece: one arm to +X, one to -Z, outer faces +Z and -X, with a round corner turret), broken (ruined top and fallen stones; its left end stays whole to meet an intact neighbour), stairs (straight wall with a two-flight stone stair up to the wall walk on the -Z courtyard side; the stair reaches 2.4 m behind the wall). |
stone | choice | limestone granite sandstone slate redstone | limestone | Stone for the whole kit: limestone (pale warm grey, classic), granite (neutral grey), sandstone (warm tan, desert fort), slate (dark blue-grey, grim northern hold), redstone (red-brown). Use the same value on every Castle piece so they match. |
crenels | toggle | on / off | true | Merlons with arrow slits along the parapet (the classic notched battlement). Off gives a plain solid parapet with slits. |
torches | toggle | on / off | true | An iron torch sconce on the outer face that burns after dark. |
seed | range | 1 to 50, step 1 | 9 | Reshuffles block shades, proud stones and, for broken, the ruined outline and rubble. Course heights and the 4 m length never change, so any seeds tile. |
Presets: ruined curtain {"piece":"broken","stone":"slate","seed":21} · desert rampart {"piece":"straight","stone":"sandstone","crenels":true} · corner bastion {"piece":"corner","stone":"granite"}
Files
| File | What |
|---|---|
| castle-wall.glb | GLB, default look · 172 KB |
| castle-wall.mjs | ES module, every knob live |
| castle-wall.obj | OBJ, static, no colour |
| castle-wall-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.