Magic Tower
A tower-defense magic tower on a 2 x 2 m grid footprint with three upgrade levels: 1 a rune-carved stone plinth with a crystal held in three claws, 2 a slender tower with a balcony and a bigger crystal, 3 a tall spire with a pointed roof, a large crystal above it and an orbiting ring of shards. The part named crystal spins about y (userData.tick, Loop clip baked) and glows in the element colour at night.
- Size
- 2.0 × 5.0 × 2.0 m
- Triangles
- 964
Tune it
3 knobs: Level, Element, Stone.
Specs
- Size
- 2.0 × 5.0 × 2.0 m width × height × depth
- Triangles
- 964 of 6,000
- Draw calls
- 1 one vertex-colour material
- Loop clip
- 8 m of travel per cycle
- Moving parts
- 1 crystal · spin
- Knobs
- 3 3 presets
- Night lights
- 2 crystal, rune
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/magic-tower.mjs';
const magicTower = createAsset();
scene.add(magicTower); // rests on y = 0, front faces +Zimport { useMemo } from 'react';
import { createAsset } from 'https://gaitkit.com/cdn/magic-tower.mjs';
export function MagicTower() {
const model = useMemo(() => createAsset(), []);
return <primitive object={model} />;
}# Import magic-tower.glb (download below). Moving parts are separate nodes, pivoted on their hinge.
add_child(preload("res://magic-tower.glb").instantiate())// Import magic-tower.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": "magic-tower", "want": "default look" })
then place the result.
# MCP endpoint
https://gaitkit.com/mcpKnobs
| Knob | Type | Values | Default | What it does |
|---|---|---|---|---|
level | range | 1 to 3, step 1 | 2 | Upgrade level. 1 stone plinth with a claw-held crystal (about 2.4 m), 2 slender tower with a balcony and a bigger crystal (about 4.6 m), 3 tall spire with a roof, a large crystal and an orbiting ring of shards (about 7 m). |
element | choice | arcane frost fire nature storm | arcane | Magic school, which sets the crystal, rune and roof colours: arcane (violet), frost (ice blue), fire (orange), nature (green), storm (yellow). |
stone | choice | grey white dark | grey | Masonry: grey, white (elven marble) or dark (warlock basalt). |
Presets: frost spire (lv 3) {"level":3,"element":"frost","stone":"white"} · fire obelisk (lv 1) {"level":1,"element":"fire","stone":"dark"} · druid tower {"level":2,"element":"nature"}
Files
| File | What |
|---|---|
| magic-tower.glb | GLB, default look · 141 KB |
| magic-tower.mjs | ES module, every knob live |
| magic-tower.obj | OBJ, static, no colour |
| magic-tower-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.