drag to orbit · tap the ground to send it
Vehicle · Rolls with distance
Police Car
A 4.8 m four-door patrol sedan in a generic two-tone livery (no text or badges) with a red and blue light bar that glows at night. Wheels spin with distance driven, front doors swing (door_L, door_R).
- Size
- 2.1 × 1.7 × 5.1 m
- Triangles
- 1,104
Tune it
4 knobs: Livery, Roof lights, Push bar, Spotlight.
Specs
- Size
- 2.1 × 1.7 × 5.1 m width × height × depth
- Triangles
- 1,104 of 6,000
- Draw calls
- 1 one vertex-colour material
- Loop clip
- 2.073 m of travel per cycle
- Moving parts
- 6 wheel_0 · spin, wheel_1 · spin, wheel_2 · spin, wheel_3 · spin, door_L · rotate, door_R · rotate
- Knobs
- 4 3 presets
- Night lights
- 4 headlight, taillight, redlight, bluelight
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/police-car.mjs';
const policeCar = createAsset();
scene.add(policeCar); // rests on y = 0, front faces +Z
let dist = 0;
renderer.setAnimationLoop(() => {
dist += speed * clock.getDelta();
policeCar.position.z = dist;
policeCar.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/police-car.mjs';
export function PoliceCar({ 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 police-car.glb (download below). It carries an in-place "Loop" animation.
@onready var anim: AnimationPlayer = $PoliceCar/AnimationPlayer
func _physics_process(delta):
velocity = transform.basis.z * speed
move_and_slide()
anim.play("Loop")
anim.speed_scale = speed / 2.073 # one Loop = 2.073 m of travel// Import police-car.glb with glTFast (com.unity.cloud.gltfast).
animator.Play("Loop");
animator.speed = speed / 2.073 // one Loop = 2.073 m of travelUse the gaitkit MCP server: get_variant({ "id": "police-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 |
|---|---|---|---|---|
livery | choice | black-white blue-white green-yellow unmarked | black-white | Paint scheme: black-white (black car, white doors and roof), blue-white (white car, blue side band), green-yellow (white car, green and yellow block band), unmarked (plain grey, hidden grille lights instead of a roof bar). |
beacons | choice | bar domes | bar | bar (long low light bar, red left and blue right) or domes (two round beacons, older style). Ignored when unmarked. |
pushBar | toggle | on / off | true | A black steel push bumper on the nose with two small lamps. |
spotlight | toggle | on / off | false | A pillar-mounted search spotlight by the driver window. |
Presets: city patrol {"livery":"black-white"} · highway patrol {"livery":"blue-white","pushBar":false,"spotlight":true} · undercover {"livery":"unmarked","pushBar":false}
Files
| File | What |
|---|---|
| police-car.glb | GLB, default look · 157 KB |
| police-car.mjs | ES module, every knob live |
| police-car.obj | OBJ, static, no colour |
| police-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.