City Bus
A low-floor city bus, 12 m long, or 18 m articulated with a bellows joint (trailer pivots on a rigged hinge). Wheels roll with distance driven, the double sliding doors on the curb side are rigged parts (door_0_a, door_0_b, ...), and the blank destination boards, headlights, tail lights and the cabin glow at night. No text or logos.
- Size
- 3.1 × 3.4 × 12.5 m
- Triangles
- 1,520
- Kit
- City Street
Tune it
4 knobs: Paint, Articulated, Roof AC, Door side.
Specs
- Size
- 3.1 × 3.4 × 12.5 m width × height × depth
- Triangles
- 1,520 of 6,000
- Draw calls
- 1 one vertex-colour material
- Loop clip
- 3.142 m of travel per cycle
- Moving parts
- 10 wheel_0 · spin, wheel_1 · spin, wheel_2 · spin, wheel_3 · spin, door_0_a · slide, door_0_b · slide, door_1_a · slide, door_1_b · slide, door_2_a · slide, door_2_b · slide
- Knobs
- 4 3 presets
- Night lights
- 4 headlight, taillight, sign, cabin
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/city-bus.mjs';
const cityBus = createAsset();
scene.add(cityBus); // rests on y = 0, front faces +Z
let dist = 0;
renderer.setAnimationLoop(() => {
dist += speed * clock.getDelta();
cityBus.position.z = dist;
cityBus.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/city-bus.mjs';
export function CityBus({ 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 city-bus.glb (download below). It carries an in-place "Loop" animation.
@onready var anim: AnimationPlayer = $CityBus/AnimationPlayer
func _physics_process(delta):
velocity = transform.basis.z * speed
move_and_slide()
anim.play("Loop")
anim.speed_scale = speed / 3.142 # one Loop = 3.142 m of travel// Import city-bus.glb with glTFast (com.unity.cloud.gltfast).
animator.Play("Loop");
animator.speed = speed / 3.142 // one Loop = 3.142 m of travelUse the gaitkit MCP server: get_variant({ "id": "city-bus", "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 |
|---|---|---|---|---|
paint | choice | city red transit blue lime sunflower teal white | city red | Body colour: city red (London or Istanbul red), transit blue, lime (green city line), sunflower (yellow), teal, white (airport shuttle). The roof is always white and the skirt dark. |
articulated | toggle | on / off | false | Long 18 m bendy bus: a rear trailer joined by a black bellows, a third axle and a door in the trailer. Off is a standard 12 m bus. |
roofAC | toggle | on / off | true | Air-conditioning pod on the roof (one per section) with fan grilles. Off leaves a flat roof with a hatch. |
doorSide | choice | right left | right | Curb side of the doors: right for right-hand traffic (Europe, Americas, Turkey), left for left-hand traffic (UK, Japan, Australia). The bus faces +Z. |
Presets: metrobus {"paint":"city red","articulated":true} · airport shuttle {"paint":"white","roofAC":true} · london route {"paint":"city red","doorSide":"left"}
Files
| File | What |
|---|---|
| city-bus.glb | GLB, default look · 148 KB |
| city-bus.mjs | ES module, every knob live |
| city-bus.obj | OBJ, static, no colour |
| city-bus-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.