Shopping Cart
A supermarket shopping cart about 1 m tall and 95 cm long: a tapered wire or plastic basket, a lower tray, a coloured push handle at the back (-Z) and four casters that roll with distance. The back gate swings in and a child seat flap folds down; optional seeded groceries in the basket. The nose faces +Z.
- Size
- 0.62 × 1.0 × 0.97 m
- Triangles
- 1,736
Tune it
5 knobs: Style, Colour, Size, Groceries, Seed.
Specs
- Size
- 0.62 × 1.0 × 0.97 m width × height × depth
- Triangles
- 1,736 of 6,000
- Draw calls
- 1 one vertex-colour material
- Loop clip
- 0.393 m of travel per cycle
- Moving parts
- 6 wheel_0 · spin, wheel_1 · spin, wheel_2 · spin, wheel_3 · spin, back_gate · rotate, child_seat · rotate
- Knobs
- 5 3 presets
- Night lights
- 0 none
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/shopping-cart.mjs';
const shoppingCart = createAsset();
scene.add(shoppingCart); // rests on y = 0, front faces +Z
let dist = 0;
renderer.setAnimationLoop(() => {
dist += speed * clock.getDelta();
shoppingCart.position.z = dist;
shoppingCart.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/shopping-cart.mjs';
export function ShoppingCart({ 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 shopping-cart.glb (download below). It carries an in-place "Loop" animation.
@onready var anim: AnimationPlayer = $ShoppingCart/AnimationPlayer
func _physics_process(delta):
velocity = transform.basis.z * speed
move_and_slide()
anim.play("Loop")
anim.speed_scale = speed / 0.393 # one Loop = 0.393 m of travel// Import shopping-cart.glb with glTFast (com.unity.cloud.gltfast).
animator.Play("Loop");
animator.speed = speed / 0.393 // one Loop = 0.393 m of travelUse the gaitkit MCP server: get_variant({ "id": "shopping-cart", "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 | wire plastic | wire | wire (classic chrome wire basket) or plastic (moulded basket in the accent colour with slotted sides on a grey frame). |
color | choice | red blue green yellow orange | red | Accent colour of the handle grip, child seat, bumpers (and the whole basket on the plastic style): red, blue, green, yellow or orange. |
size | choice | full compact | full | full (big 95 cm supermarket cart) or compact (shorter city-store cart with a smaller basket). |
groceries | toggle | on / off | true | A seeded load of boxes, bottles, bread, fruit and a pack of water in the basket and on the lower tray. |
seed | range | 1 to 99, step 1 | 4 | Shuffles which groceries are in the cart and where. Same seed, same load. |
Presets: weekly shop {"style":"wire","color":"red","size":"full","groceries":true,"seed":4} · abandoned trolley {"style":"wire","color":"blue","size":"full","groceries":false} · city store cart {"style":"plastic","color":"green","size":"compact","groceries":true,"seed":12}
Files
| File | What |
|---|---|
| shopping-cart.glb | GLB, default look · 270 KB |
| shopping-cart.mjs | ES module, every knob live |
| shopping-cart.obj | OBJ, static, no colour |
| shopping-cart-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.