Assault Rifle
A generic game assault rifle about 90 cm long, standing on its magazine and grip with the muzzle toward +Z (or lying on its side as a pickup): a chamfered upper receiver with a top rail, a lower with a magazine well, a vented octagonal handguard, a gas block, a ported muzzle brake, a raked pistol grip, a curved magazine and an adjustable stock with a butt pad. Iron sights, a holo red-dot or a scope, a suppressor, a vertical foregrip, an extended or drum magazine and the stock are knobs, in modern or sci-fi style. The bolt and side charging handle are a part named bolt that racks back along z; an empty node named muzzle marks the barrel tip (the bullet spawn point) and one named grip the pistol grip. Sights and sci-fi glow strips light up at night.
- Size
- 0.07 × 0.33 × 0.92 m
- Triangles
- 1,814
Tune it
8 knobs: Finish, Style, Optic, Suppressor, Foregrip, Magazine, Stock, Pose.
Specs
- Size
- 0.07 × 0.33 × 0.92 m width × height × depth
- Triangles
- 1,814 of 6,000
- Draw calls
- 1 one vertex-colour material
- Moving parts
- 1 bolt · slide
- Knobs
- 8 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/assault-rifle.mjs';
const assaultRifle = createAsset();
scene.add(assaultRifle); // rests on y = 0, front faces +Zimport { useMemo } from 'react';
import { createAsset } from 'https://gaitkit.com/cdn/assault-rifle.mjs';
export function AssaultRifle() {
const model = useMemo(() => createAsset(), []);
return <primitive object={model} />;
}# Import assault-rifle.glb (download below). Moving parts are separate nodes, pivoted on their hinge.
add_child(preload("res://assault-rifle.glb").instantiate())// Import assault-rifle.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": "assault-rifle", "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 gunmetal arctic | black | Colourway: black, tan (desert tan furniture on a dark receiver), olive (olive drab furniture), gunmetal (grey steel receiver with black furniture) or arctic (white furniture on grey, 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 contemporary rail-system rifle) or scifi (angular armoured shells over the handguard and receiver, glowing strips, a glowing magazine window and an emitter ring at the muzzle: a pulse rifle). |
optic | choice | iron reddot scope | reddot | Sight on the top rail: iron (folding front and rear iron sights), reddot (a boxy holographic sight with a glowing reticle) or scope (a 30 cm magnified scope on two rings with turrets). |
suppressor | toggle | on / off | false | Replaces the muzzle brake with a 17 cm suppressor; the muzzle node moves to its tip. |
foregrip | toggle | on / off | true | A vertical foregrip under the handguard. |
magazine | choice | standard extended drum | standard | standard (a curved 30-round box magazine), extended (a longer curved magazine) or drum (a round drum magazine for sustained fire). |
stock | toggle | on / off | true | An adjustable shoulder stock on a buffer tube. Off gives a compact rifle with only an end cap. |
pose | choice | upright ground | upright | upright (standing on its magazine and grip as if held, muzzle +Z) or ground (lying on its left side, as a pickup dropped on the floor). |
Presets: standard issue {"finish":"black","optic":"iron","foregrip":false} · desert marksman {"finish":"tan","optic":"scope","suppressor":true,"magazine":"extended"} · pulse rifle {"finish":"arctic","style":"scifi","optic":"reddot","magazine":"drum"}
Files
| File | What |
|---|---|
| assault-rifle.glb Pro | GLB, default look · 218 KB |
| assault-rifle.mjs Pro | ES module, every knob live |
| assault-rifle.obj Pro | OBJ, static; colours in the .mtl |
| assault-rifle.mtl | OBJ colours; keep it next to the .obj |
| assault-rifle-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.