Semi Truck
A three-axle tractor unit (long-nose or cab-over, with sleeper and roof fairing) pulling an optional 13.6 m box trailer, 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.1 × 4.3 × 18.8 m
- Triangles
- 2,180
Tune it
5 knobs: Cab, Paint, Trailer, Trailer colour, Hitch angle.
Specs
- Size
- 3.1 × 4.3 × 18.8 m width × height × depth
- Triangles
- 2,180 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 { useMemo, useRef } from 'react';
import { useFrame } from '@react-three/fiber';
import { createAsset } from 'https://gaitkit.com/cdn/semi-truck.mjs';
export function SemiTruck({ 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 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 | GLB, default look · 317 KB |
| semi-truck.mjs | ES module, every knob live |
| semi-truck.obj | OBJ, static, no colour |
| 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.