Mine Cart
A riveted steel mine cart: a tapered tub with a rolled rim, corner angles, riveted side bands and end handles on a channel under-frame with timber bumpers, axle boxes and link couplers, running on four flanged spoked wheels (0.6 m narrow gauge), loaded with ore, coal or gold nuggets, standing on a short piece of track with flat-bottomed rails, tie plates and timber sleepers. The wheels are spin parts that roll with distance along +Z; turn rails off to run it on your own track (the wheel flanges then rest on y = 0, treads 3 cm up).
- Size
- 1.0 × 1.2 × 2.4 m
- Triangles
- 3,024
- Kit
- Wild West
Tune it
4 knobs: Load, Tub, Rails, Seed.
Specs
- Size
- 1.0 × 1.2 × 2.4 m width × height × depth
- Triangles
- 3,024 of 6,000
- Draw calls
- 1 one vertex-colour material
- Loop clip
- 1.131 m of travel per cycle
- Moving parts
- 4 wheel_0 · spin, wheel_1 · spin, wheel_2 · spin, wheel_3 · spin
- 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.
import { createAsset } from 'https://gaitkit.com/cdn/mine-cart.mjs';
const mineCart = createAsset();
scene.add(mineCart); // rests on y = 0, front faces +Z
let dist = 0;
renderer.setAnimationLoop(() => {
dist += speed * clock.getDelta();
mineCart.position.z = dist;
mineCart.userData.tick(dist); // wheels roll exactly with the distance
renderer.render(scene, camera);
});import { useGLTF, useAnimations } from '@react-three/drei';
import { useEffect } from 'react';
// mine-cart.glb from the Download button (it carries the knobs you set), saved in /public
export function MineCart({ speed = 1 }) {
const { scene, animations } = useGLTF('/mine-cart.glb');
const { actions } = useAnimations(animations, scene);
useEffect(() => {
const clip = actions['Loop'];
clip?.play();
if (clip) clip.timeScale = speed / 1.131; // one Loop = 1.131 m of travel
}, [actions, speed]);
return <primitive object={scene} />;
}
// Live knobs or terrain-following feet: copy mine-cart.mjs and runtime/ into your project and use the three.js tab.# Import mine-cart.glb (download below). It carries an in-place "Loop" animation.
@onready var anim: AnimationPlayer = $MineCart/AnimationPlayer
func _physics_process(delta):
velocity = transform.basis.z * speed
move_and_slide()
anim.play("Loop")
anim.speed_scale = speed / 1.131 # one Loop = 1.131 m of travel// Import mine-cart.glb with glTFast (com.unity.cloud.gltfast).
animator.Play("Loop");
animator.speed = speed / 1.131 // one Loop = 1.131 m of travelUse the gaitkit MCP server: get_variant({ "id": "mine-cart", "want": "default look" })
then place the result and drive it with userData.tick(distance).
# MCP endpoint
https://gaitkit.com/mcpKnobs
| Knob | Type | Values | Default | What it does |
|---|---|---|---|---|
load | choice | ore coal gold empty | ore | What the cart carries: ore (grey rock with gold flecks), coal (black lumps), gold (a heap of nuggets), empty. |
tub | choice | rust steel grey red green | rust | Tub paint: rust (worn brown steel), steel grey, red, green. |
rails | toggle | on / off | true | A 2.4 m piece of narrow-gauge track with timber sleepers under the cart. |
seed | range | 1 to 40, step 1 | 4 | Reshapes the heap of ore, coal or gold. Same seed always builds the same cart. |
Presets: gold strike {"load":"gold","tub":"steel grey"} · coal tub {"load":"coal","tub":"red","seed":9} · abandoned cart {"load":"empty","tub":"rust","rails":true}
Files
| File | What |
|---|---|
| mine-cart.glb Pro | GLB, default look · 401 KB |
| mine-cart.mjs Pro | ES module, every knob live |
| mine-cart.obj Pro | OBJ, static; colours in the .mtl |
| mine-cart.mtl | OBJ colours; keep it next to the .obj |
| mine-cart-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.