Semi Truck
A three-axle tractor unit (long-nose with a rounded hood, swept fenders, chrome grille and air cleaners, or a cab-over with visor and steps; both with a sleeper, roof fairing, raked two-pane windscreen, big mirrors, chrome fuel tanks with steps, stacks and air horns) pulling an optional 13.6 m box trailer with rails, posts, side guards, landing gear and two rear doors with lock rods, about 17 m long in all. The trailer turns about y on the fifth-wheel kingpin (trailer); all wheels roll with distance. Headlights, tail lights and amber marker lights glow at night. Plain sides, no logos or text.
- Size
- 3.3 × 4.4 × 18.9 m
- Triangles
- 4,148
Tune it
5 knobs: Cab, Paint, Trailer, Trailer colour, Hitch angle.
Specs
- Size
- 3.3 × 4.4 × 18.9 m width × height × depth
- Triangles
- 4,148 of 6,000
- Draw calls
- 1 one vertex-colour material
- Loop clip
- 3.267 m of travel per cycle
- Moving parts
- 11 wheel_0 · spin, wheel_1 · spin, wheel_2 · spin, wheel_3 · spin, wheel_4 · spin, wheel_5 · spin, wheel_6 · spin, wheel_7 · spin, wheel_8 · spin, wheel_9 · spin, trailer · rotate
- Knobs
- 5 3 presets
- Night lights
- 3 headlight, taillight, marker
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/semi-truck.mjs';
const semiTruck = createAsset();
scene.add(semiTruck); // rests on y = 0, front faces +Z
let dist = 0;
renderer.setAnimationLoop(() => {
dist += speed * clock.getDelta();
semiTruck.position.z = dist;
semiTruck.userData.tick(dist); // wheels roll exactly with the distance
renderer.render(scene, camera);
});import { useGLTF, useAnimations } from '@react-three/drei';
import { useEffect } from 'react';
// semi-truck.glb from the Download button (it carries the knobs you set), saved in /public
export function SemiTruck({ speed = 1 }) {
const { scene, animations } = useGLTF('/semi-truck.glb');
const { actions } = useAnimations(animations, scene);
useEffect(() => {
const clip = actions['Loop'];
clip?.play();
if (clip) clip.timeScale = speed / 3.267; // one Loop = 3.267 m of travel
}, [actions, speed]);
return <primitive object={scene} />;
}
// Live knobs or terrain-following feet: copy semi-truck.mjs and runtime/ into your project and use the three.js tab.# Import semi-truck.glb (download below). It carries an in-place "Loop" animation.
@onready var anim: AnimationPlayer = $SemiTruck/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 semi-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": "semi-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 |
|---|---|---|---|---|
cab | choice | long nose cab over | long nose | long nose (American-style conventional with a long hood) or cab over (European flat-front cab sitting over the engine). |
paint | choice | red blue white black green orange | red | Tractor colour: red, blue, white, black, green or orange. Chrome grille, tanks and stacks either way. |
trailer | toggle | on / off | true | Couple the 13.6 m box trailer. Off shows the tractor unit alone (bobtail) with its fifth wheel visible. |
trailerPaint | choice | white silver red blue reefer white | white | Box trailer colour: white, silver (aluminium), red, blue, or reefer white (refrigerated trailer with a front cooling unit). |
hitch | range | -45 to 45, step 5 | 0 | Trailer angle on the kingpin in degrees, as when turning: positive swings the trailer tail to the left (+X), negative to the right. |
Presets: highway hauler {"cab":"long nose","paint":"red"} · european artic {"cab":"cab over","paint":"blue","trailerPaint":"silver"} · reefer in a turn {"cab":"long nose","paint":"white","trailerPaint":"reefer white","hitch":25}
Files
| File | What |
|---|---|
| semi-truck.glb Pro | GLB, default look · 540 KB |
| semi-truck.mjs Pro | ES module, every knob live |
| semi-truck.obj Pro | OBJ, static; colours in the .mtl |
| semi-truck.mtl | OBJ colours; keep it next to the .obj |
| semi-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.