Pistol
A generic semi-automatic game pistol about 20 cm long, standing on its grip with the muzzle toward +Z (or lying on its side as a pickup): a chamfered slide with rear and front serrations, an ejection port, three-dot sights, a raked grip with textured panels, a trigger guard, an accessory rail and a magazine baseplate, in modern or sci-fi style with an optional suppressor, red-dot sight and extended magazine. The slide is a part named slide that racks back along z; an empty node named muzzle marks the barrel tip (the bullet spawn point) and one named grip the centre of the hand grip. Sights and sci-fi glow strips light up at night.
- Size
- 0.03 × 0.14 × 0.19 m
- Triangles
- 1,080
Tune it
6 knobs: Finish, Style, Suppressor, Red dot, Magazine, Pose.
Specs
- Size
- 0.03 × 0.14 × 0.19 m width × height × depth
- Triangles
- 1,080 of 6,000
- Draw calls
- 1 one vertex-colour material
- Moving parts
- 1 slide · slide
- Knobs
- 6 3 presets
- Night lights
- 1 glow
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/pistol.mjs';
const pistol = createAsset();
scene.add(pistol); // rests on y = 0, front faces +Zimport { useMemo } from 'react';
import { createAsset } from 'https://gaitkit.com/cdn/pistol.mjs';
export function Pistol() {
const model = useMemo(() => createAsset(), []);
return <primitive object={model} />;
}# Import pistol.glb (download below). Moving parts are separate nodes, pivoted on their hinge.
add_child(preload("res://pistol.glb").instantiate())// Import pistol.glb with glTFast (com.unity.cloud.gltfast).
// Drop it in the scene: 1 unit = 1 metre, +Z is its front.Use the gaitkit MCP server: get_variant({ "id": "pistol", "want": "default look" })
then place the result.
# MCP endpoint
https://gaitkit.com/mcpKnobs
| Knob | Type | Values | Default | What it does |
|---|---|---|---|---|
finish | choice | black tan olive chrome arctic | black | Colourway: black (all black polymer and steel), tan (desert tan frame, dark slide), olive (olive drab frame), chrome (black frame with a polished steel slide) or arctic (white frame with a grey slide, clean sci-fi look). In sci-fi style it also picks the glow colour (cyan, amber, green, cyan, red). |
style | choice | modern scifi | modern | modern (a clean contemporary service pistol) or scifi (an angular slide with a wedge nose, side vents, glowing strips along the slide, an emitter ring at the muzzle and a glowing power cell window in the grip). |
suppressor | toggle | on / off | false | Screws a 15 cm suppressor with grip bands onto the barrel; the muzzle node moves to its tip. |
optic | toggle | on / off | false | A small red-dot sight on top of the slide, with a framed lens and a glowing dot. |
magazine | choice | standard extended | standard | standard (flush with the grip) or extended (a longer magazine sticking 4 cm out of the grip, more rounds). |
pose | choice | upright ground | upright | upright (standing on its grip as if held, muzzle +Z) or ground (lying on its left side, as a pickup dropped on the floor). |
Presets: service pistol {"finish":"black","style":"modern"} · spec ops sidearm {"finish":"tan","suppressor":true,"optic":true,"magazine":"extended"} · plasma pistol {"finish":"arctic","style":"scifi","optic":true}
Files
| File | What |
|---|---|
| pistol.glb | GLB, default look · 136 KB |
| pistol.mjs | ES module, every knob live |
| pistol.obj | OBJ, static; colours in the .mtl |
| pistol.mtl | OBJ colours; keep it next to the .obj |
| pistol-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.