Dump Truck
A dump truck in two builds: an 8.5 m three-axle road tipper or a 10 m off-highway mining haul truck with a cab on the upper deck and a canopy over it. The bed tips on its rear hinge (bed) with the hoist ram following; wheels roll with distance. Headlights, tail lights and the beacon glow at night. Optional gravel load.
- Size
- 3.2 × 3.6 × 9.0 m
- Triangles
- 1,468
Tune it
4 knobs: Build, Paint, Tip, Load.
Specs
- Size
- 3.2 × 3.6 × 9.0 m width × height × depth
- Triangles
- 1,468 of 6,000
- Draw calls
- 1 one vertex-colour material
- Loop clip
- 3.267 m of travel per cycle
- Moving parts
- 7 wheel_0 · spin, wheel_1 · spin, wheel_2 · spin, wheel_3 · spin, wheel_4 · spin, wheel_5 · spin, bed · rotate
- Knobs
- 4 3 presets
- Night lights
- 3 headlight, taillight, beacon
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/dump-truck.mjs';
const dumpTruck = createAsset();
scene.add(dumpTruck); // rests on y = 0, front faces +Z
let dist = 0;
renderer.setAnimationLoop(() => {
dist += speed * clock.getDelta();
dumpTruck.position.z = dist;
dumpTruck.userData.tick(dist); // wheels roll exactly with the distance
renderer.render(scene, camera);
});import { useMemo, useRef } from 'react';
import { useFrame } from '@react-three/fiber';
import { createAsset } from 'https://gaitkit.com/cdn/dump-truck.mjs';
export function DumpTruck({ speed = 1 }) {
const model = useMemo(() => createAsset(), []);
const dist = useRef(0);
useFrame((_, dt) => {
dist.current += speed * dt;
model.position.z = dist.current;
model.userData.tick(dist.current); // wheels roll exactly with the distance
});
return <primitive object={model} />;
}# Import dump-truck.glb (download below). It carries an in-place "Loop" animation.
@onready var anim: AnimationPlayer = $DumpTruck/AnimationPlayer
func _physics_process(delta):
velocity = transform.basis.z * speed
move_and_slide()
anim.play("Loop")
anim.speed_scale = speed / 3.267 # one Loop = 3.267 m of travel// Import dump-truck.glb with glTFast (com.unity.cloud.gltfast).
animator.Play("Loop");
animator.speed = speed / 3.267 // one Loop = 3.267 m of travelUse the gaitkit MCP server: get_variant({ "id": "dump-truck", "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 |
|---|---|---|---|---|
style | choice | tipper haul | tipper | tipper (8.5 m road tipper truck, three axles, steel box bed) or haul (10 m rigid mining haul truck, 2.6 m tyres, cab on the upper deck under a bed canopy). |
paint | choice | yellow orange red white green | yellow | Cab and bed colour: yellow (site classic), orange, red, white, green. The chassis stays dark. |
tip | range | 0 to 1, step 0.05 | 0 | How far the bed is tipped on its rear hinge: 0 down for driving, 1 raised 50 degrees to dump. |
load | toggle | on / off | true | A heaped load of gravel in the bed. Off shows the empty bed floor. |
Presets: site tipper {"style":"tipper"} · dumping gravel {"style":"tipper","tip":0.8,"paint":"orange"} · quarry hauler {"style":"haul","paint":"yellow"}
Files
| File | What |
|---|---|
| dump-truck.glb | GLB, default look · 213 KB |
| dump-truck.mjs | ES module, every knob live |
| dump-truck.obj | OBJ, static, no colour |
| dump-truck-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.