Pig
A round farm pig about 0.8 m at the shoulder and 1.4 m long with a flat snout disc and a curly tail, in pink, spotted, saddleback, black, ginger or wild boar (with tusks and a bristle crest), with upright or floppy ears and optional mud. Walks with a real lateral-sequence gait on short legs: front knees bend forward, hind hocks bend back, trotters stay planted, the head nods and the tail wiggles.
- Size
- 0.62 × 1.0 × 1.6 m
- Triangles
- 2,174
- Kit
- Animals
Tune it
4 knobs: Coat, Ears, Mud, Size.
Specs
- Size
- 0.62 × 1.0 × 1.6 m width × height × depth
- Triangles
- 2,174 of 6,000
- Draw calls
- 1 one vertex-colour material
- Legs
- 4 2 gait groups
- Stride
- 22 cm duty factor 0.68
- Foot slide
- 0.00 mm limit 1 mm
- Walk clip
- 0.55 m/s at playback speed 1
- Moving parts
- 2 neck · rotate, tail · rotate
- Knobs
- 4 3 presets
- Night lights
- 1 eye
Passed the validator: real scale, rests on y = 0, front faces +Z, deterministic, planted feet never slide past 1 mm.
Use it
Code for the specimen as it is set up above; it follows your knobs.
import { createAsset } from 'https://gaitkit.com/cdn/pig.mjs';
import { walker } from 'https://gaitkit.com/runtime/walk.mjs';
const pig = createAsset();
scene.add(pig); // rests on y = 0, front faces +Z
const gait = walker(pig, { ground: (x, z) => terrainHeight(x, z) }); // or omit ground for a flat floor
let dist = 0;
renderer.setAnimationLoop(() => {
dist += speed * clock.getDelta();
pig.position.z = dist;
gait.poseAt(dist); // feet stay planted, at any frame rate
renderer.render(scene, camera);
});import { useMemo, useRef } from 'react';
import { useFrame } from '@react-three/fiber';
import { createAsset } from 'https://gaitkit.com/cdn/pig.mjs';
import { walker } from 'https://gaitkit.com/runtime/walk.mjs';
export function Pig({ speed = 1 }) {
const model = useMemo(() => createAsset(), []);
const gait = useMemo(() => walker(model), [model]);
const dist = useRef(0);
useFrame((_, dt) => {
dist.current += speed * dt;
model.position.z = dist.current;
gait.poseAt(dist.current); // feet stay planted, at any frame rate
});
return <primitive object={model} />;
}# Import pig.glb (download below). It carries an in-place "Walk" animation.
@onready var anim: AnimationPlayer = $Pig/AnimationPlayer
func _physics_process(delta):
velocity = transform.basis.z * speed
move_and_slide()
anim.play("Walk")
anim.speed_scale = speed / 0.55 # Walk clip covers 0.55 m/s at 1x// Import pig.glb with glTFast (com.unity.cloud.gltfast).
animator.Play("Walk");
animator.speed = speed / 0.55 // Walk clip covers 0.55 m/s at 1xUse the gaitkit MCP server: get_variant({ "id": "pig", "want": "default look" })
then place the result and walk it with walker() so the feet stay planted.
# MCP endpoint
https://gaitkit.com/mcpKnobs
| Knob | Type | Values | Default | What it does |
|---|---|---|---|---|
coat | choice | pink spotted saddleback black ginger boar | pink | Coat: pink (classic farm pig), spotted (pink with black spots and black ears), saddleback (black with a white band over the shoulders), black (with a pale snout and white trotters), ginger (red-gold), boar (bristly brown wild boar with tusks and a mane). |
ears | choice | upright floppy | upright | Ear shape: upright (pointed ears standing up) or floppy (big ears drooping forward over the eyes). |
mud | toggle | on / off | false | Caked mud on the legs, belly and flanks, fresh from wallowing. |
size | range | 0.4 to 1.25, step 0.05 | 1 | Uniform scale. 1 is a grown pig 0.8 m at the shoulder; 0.4 is a piglet; 1.25 is a huge sow or boar. |
Presets: muddy piglet {"coat":"pink","size":0.45,"mud":true} · wild boar {"coat":"boar","ears":"upright","size":1.1} · old spot sow {"coat":"spotted","ears":"floppy","size":1.15}
Files
| File | What |
|---|---|
| pig.glb | GLB, default look · 281 KB |
| pig.mjs | ES module, every knob live |
| pig.obj | OBJ, static, no colour |
| pig-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.