Sailboat
A 9 m cruising sloop with a fin keel, a cabin with portlights, a 12 m mast, mainsail on a swinging boom and a jib, lifelines and a cockpit. Sails can be set or furled. It sits on the water surface (keel bottom at y = 0, waterline about 1.75 m up) and rolls and pitches gently as it sails; portlights and nav lights glow at night.
- Size
- 3.0 × 15.3 × 9.0 m
- Triangles
- 1,145
Tune it
4 knobs: Hull, Sail colour, Sails, Length.
Specs
- Size
- 3.0 × 15.3 × 9.0 m width × height × depth
- Triangles
- 1,145 of 6,000
- Draw calls
- 1 one vertex-colour material
- Loop clip
- 6 m of travel per cycle
- Altitude
- 0 m below the surface
- Moving parts
- 3 boat · rotate, pitch · rotate, boom · rotate
- Knobs
- 4 3 presets
- Night lights
- 2 window, nav
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/sailboat.mjs';
const sailboat = createAsset();
scene.add(sailboat); // rests on y = 0, front faces +Z
let dist = 0;
renderer.setAnimationLoop(() => {
dist += speed * clock.getDelta();
sailboat.position.set(0, groundY + sailboat.userData.altitude, dist);
sailboat.userData.tick(dist); // the body waves 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/sailboat.mjs';
export function Sailboat({ speed = 1 }) {
const model = useMemo(() => createAsset(), []);
const dist = useRef(0);
useFrame((_, dt) => {
dist.current += speed * dt;
model.position.set(0, groundY + model.userData.altitude, dist.current);
model.userData.tick(dist.current); // the body waves with the distance
});
return <primitive object={model} />;
}# Import sailboat.glb (download below). It carries an in-place "Loop" animation.
@onready var anim: AnimationPlayer = $Sailboat/AnimationPlayer
func _physics_process(delta):
velocity = transform.basis.z * speed
move_and_slide()
anim.play("Loop")
anim.speed_scale = speed / 6 # one Loop = 6 m of travel// Import sailboat.glb with glTFast (com.unity.cloud.gltfast).
animator.Play("Loop");
animator.speed = speed / 6 // one Loop = 6 m of travelUse the gaitkit MCP server: get_variant({ "id": "sailboat", "want": "default look" })
then place the result.
# MCP endpoint
https://gaitkit.com/mcpKnobs
| Knob | Type | Values | Default | What it does |
|---|---|---|---|---|
hull | choice | white navy green red | white | Hull colour: white (blue boot stripe, red antifouling), navy, green or red (cream boot stripe). The deck stays light grey with teak trim. |
sailColor | choice | white cream tan grey | white | Sailcloth: white (modern), cream, tan (traditional tanbark red-brown) or grey. |
sails | choice | set furled | set | set: mainsail and jib up and drawing. furled: mainsail flaked under a blue cover on the boom and the jib rolled on the forestay, as when moored or motoring. |
length | range | 6 to 14, step 0.5 | 9 | Length overall in metres; everything scales with it. 6 is a small day-sailer, 9 a family cruiser, 14 a big ocean yacht with a 19 m mast. |
Presets: classic tanbark {"hull":"green","sailColor":"tan","length":11} · moored {"sails":"furled","hull":"navy"} · day sailer {"hull":"red","length":6.5}
Files
| File | What |
|---|---|
| sailboat.glb | GLB, default look · 156 KB |
| sailboat.mjs | ES module, every knob live |
| sailboat.obj | OBJ, static, no colour |
| sailboat-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.