drag to orbit · tap the ground to send it
Vehicle · Rolls with distance
City Car
A chunky low-poly car that can be a hatchback, a pickup or a delivery van. Wheels are separate parts that spin with distance driven; headlights glow at night.
- Size
- 1.9 × 1.5 × 4.1 m
- Triangles
- 380
- Kit
- City Street
Tune it
4 knobs: Paint, Body, Wheel size, Roof rack.
Specs
- Size
- 1.9 × 1.5 × 4.1 m width × height × depth
- Triangles
- 380 of 6,000
- Draw calls
- 1 one vertex-colour material
- Loop clip
- 2.136 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
- 2 headlight, taillight
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-car.mjs';
const cityCar = createAsset();
scene.add(cityCar); // rests on y = 0, front faces +Z
let dist = 0;
renderer.setAnimationLoop(() => {
dist += speed * clock.getDelta();
cityCar.position.z = dist;
cityCar.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-car.mjs';
export function CityCar({ 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-car.glb (download below). It carries an in-place "Loop" animation.
@onready var anim: AnimationPlayer = $CityCar/AnimationPlayer
func _physics_process(delta):
velocity = transform.basis.z * speed
move_and_slide()
anim.play("Loop")
anim.speed_scale = speed / 2.136 # one Loop = 2.136 m of travel// Import city-car.glb with glTFast (com.unity.cloud.gltfast).
animator.Play("Loop");
animator.speed = speed / 2.136 // one Loop = 2.136 m of travelUse the gaitkit MCP server: get_variant({ "id": "city-car", "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 | cherry sky mint charcoal sunflower cream | cherry | Body colour: cherry (red), sky (blue), mint, charcoal, sunflower (yellow, reads as taxi), cream. |
body | choice | hatchback pickup van | hatchback | hatchback (small car), pickup (open cargo bed), van (tall box, delivery or camper). |
wheelSize | range | 0.8 to 1.4, step 0.05 | 1 | Wheel radius multiplier. Above 1.2 lifts the body into an off-road look. |
roofRack | toggle | on / off | false | Adds roof rails with a strapped box on top. |
Presets: taxi {"paint":"sunflower"} · off-roader {"body":"pickup","paint":"mint","wheelSize":1.35,"roofRack":true} · delivery van {"body":"van","paint":"cream"}
Files
| File | What |
|---|---|
| city-car.glb | GLB, default look · 57 KB |
| city-car.mjs | ES module, every knob live |
| city-car.obj | OBJ, static, no colour |
| city-car-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.