Motorcycle
A 2 m motorcycle as a faired sport bike, a low chrome cruiser or a tall dirt bike. Both wheels spin with distance driven and the front end steers about the raked head (steer); head and tail lights glow at night.
- Size
- 0.62 × 1.3 × 2.0 m
- Triangles
- 748
Tune it
4 knobs: Style, Paint, Metal finish, Luggage.
Specs
- Size
- 0.62 × 1.3 × 2.0 m width × height × depth
- Triangles
- 748 of 6,000
- Draw calls
- 1 one vertex-colour material
- Loop clip
- 1.885 m of travel per cycle
- Moving parts
- 3 wheel_0 · spin, wheel_1 · spin, steer · rotate
- 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/motorcycle.mjs';
const motorcycle = createAsset();
scene.add(motorcycle); // rests on y = 0, front faces +Z
let dist = 0;
renderer.setAnimationLoop(() => {
dist += speed * clock.getDelta();
motorcycle.position.z = dist;
motorcycle.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/motorcycle.mjs';
export function Motorcycle({ 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 motorcycle.glb (download below). It carries an in-place "Loop" animation.
@onready var anim: AnimationPlayer = $Motorcycle/AnimationPlayer
func _physics_process(delta):
velocity = transform.basis.z * speed
move_and_slide()
anim.play("Loop")
anim.speed_scale = speed / 1.885 # one Loop = 1.885 m of travel// Import motorcycle.glb with glTFast (com.unity.cloud.gltfast).
animator.Play("Loop");
animator.speed = speed / 1.885 // one Loop = 1.885 m of travelUse the gaitkit MCP server: get_variant({ "id": "motorcycle", "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 |
|---|---|---|---|---|
style | choice | sport cruiser dirt | sport | sport (full fairing, clip-on bars, tucked tail), cruiser (long and low, teardrop tank, wide bars, V-twin, chrome), dirt (tall, high fender, flat seat, knobbly tyres). |
paint | choice | red blue orange green black pearl | red | Colour of the tank, fairing and fenders: red, blue, orange, green, black, pearl (white). |
finish | choice | chrome blackout | chrome | chrome (polished engine, pipes and forks) or blackout (everything metal in satin black). |
luggage | toggle | on / off | false | Touring luggage: two side cases and a top box on the tail. |
Presets: track day {"style":"sport","paint":"orange","finish":"blackout"} · highway cruiser {"style":"cruiser","paint":"black","luggage":true} · trail rider {"style":"dirt","paint":"green"}
Files
| File | What |
|---|---|
| motorcycle.glb | GLB, default look · 105 KB |
| motorcycle.mjs | ES module, every knob live |
| motorcycle.obj | OBJ, static, no colour |
| motorcycle-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.