Skip to content

Items with moving parts

For creatorsAdd-on 2.2.2+Members

You make three things in Blender: a pistol whose slide kicks back when it fires, a car whose door swings open as you get in, and a flip phone you pick up and open. Then you play them.

▶ Play the items lab, the same three things ready-made — click to capture the mouse · W A S D move · Shift run · Space jump · F or the left button fires · right button aims · E gets in the car or picks up the phone · R reloads (signed in to MegaCity).

You need Blender 5.2 with the Simulacrum add-on 2.2.2 or newer. The item tools are in Properties ▸ Object ▸ Simulacrum. Make Hand Item, Make Moving Part and Make Item Clip are in the Make menu at the top, under Characters & Items. The Item panel below shows a hand item’s grips, its moving parts and its clips.

The add-on’s presets expect a gun made pointing down −Y, with +Z up and its origin where the right hand holds it.

  1. In a new file, add five cubes. For each, set its Dimensions (sidebar ▸ Item), place it, then apply its scale (Ctrl+A ▸ Scale) so its origin stays at its centre.

    Name Dimensions x × y × z (m) Location (m)
    Pistol 0.03 × 0.2 × 0.13 0, 0, 0
    slide 0.032 × 0.18 × 0.035 0, −0.01, 0.05
    trigger 0.006 × 0.01 × 0.025 0, −0.02, −0.03
    hammer 0.008 × 0.012 × 0.015 0, 0.095, 0.06
    magazine 0.022 × 0.04 × 0.11 0, 0.06, −0.05
  2. Parent the four pieces to Pistol: select them, then Pistol last, and press Ctrl+P ▸ Object (Keep Transform).

  3. Select Pistol and choose Make ▸ Make Hand Item ▸ Pistol. Three Empties appear as its children: grip.r (the right palm), grip.l (the support hand) and muzzle (an arrow down the barrel). They are placed from the pistol’s size: move them to fit.

  1. Select slide and choose Make ▸ Make Moving Part ▸ Slide. Then trigger ▸ Trigger, hammer ▸ Hammer and magazine ▸ Magazine. The Item panel lists them: Moving parts: hammer, magazine, slide, trigger.

    A part’s rest is the pose it was in when you pressed the button, so make each part at rest.

  2. With Pistol selected, choose Make ▸ Make Item Clip ▸ Fire. It plays: the trigger pulls, the hammer goes back and falls, and the slide goes 3 cm back and home. Ten frames at 30 fps.

  3. Choose Make ▸ Make Item Clip ▸ Reload. The magazine drops 15 cm, is held out, and goes home, then the slide is racked.

  4. The Item panel now has a Fire and a Reload button: each plays its clip again. Stop beside them puts every part back at rest.

The clips are ordinary Blender actions, Pistol.fire and Pistol.reload, with a slot for each part: edit them as you like. Making a clip again replaces its action, so hand edits are lost.

  1. Make a car facing −Y, with its left side on +X:

    • A body: a cube Car, 1.8 × 4.2 × 1.2 m, centred at (0, 0, 0.8), scale applied.
    • Four wheels: cylinders of radius 0.33 m and depth 0.24 m, turned 90° about Y, at x ±0.82, y ±1.35, z 0.33. Name each with the word Wheel (Car.Wheel.FL and so on).
    • Two front doors: cubes 0.06 × 1.1 × 0.9 m at (0.93, −0.4, 0.9) and (−0.93, −0.4, 0.9), named Door.L and Door.R, scale applied.
    • Parent the wheels and the doors to Car (Keep Transform).
  2. Select Car and choose Make ▸ Make Vehicle, with Handling Sedan and Front −Y. It finds the four wheels and gives the car a handling row. The row is kept in a text block, data/handling.json. Open it in a Text Editor and turn on its fake user (the shield) so it is kept when you save.

  3. Select both doors and choose Make ▸ Make Moving Part ▸ Door. Each door’s origin moves to its hinge, its front edge on its outer skin, without the door moving. Door.L is tagged vehicle.door = driver and Door.R = passenger. Each opens 65°, signed so it swings out.

  4. To see the swing in Blender, select Car and choose Make ▸ Make Item Clip ▸ Open: both doors swing out over 20 frames. Afterwards, press Stop in the Vehicle panel’s Parts section to put them back.

  1. A flip phone lying flat: a cube Phone, 0.055 × 0.1 × 0.012 m, scale applied.

  2. Its lid: a cube Phone.lid, 0.055 × 0.1 × 0.01 m, lying on top of it. Put the lid’s origin on its hinge, at the phone’s +Y end: place the 3D cursor there, then Object ▸ Set Origin ▸ Origin to 3D Cursor. Parent it to Phone (Keep Transform).

  3. Select Phone and choose Make ▸ Make Hand Item ▸ Small Item. One grip, grip.r, lands 30 % along its length from the −Y end, where a hand holds it.

  4. Select Phone.lid and choose Make ▸ Make Moving Part ▸ Lid. A lid turns −110° about its own X: with its hinge at the +Y end, that flips it up and over.

  5. Select Phone and choose Make ▸ Make Item Clip ▸ Use. The lid opens, holds, and shuts. If it swings down into the phone instead, your lid lies the other way: select the lid, set From to 0 and To to 110 in the Item panel and its part.open tag to 110 in Tags, then make the clip again.

  6. Make the phone something the hero can pick up. Add these custom properties to Phone (Object Properties ▸ Custom Properties):

    Property Value
    smart phone
    smart.carry hand
    smart.use.label Pick up the phone
    item.thing phone
  1. A ground: a cube Ground, 40 × 40 × 1 m, its top at z 0, with the custom property fps.block = 1.

  2. Set the three things apart on it. Move each by its root: its parts and grips go with it.

    • Pistol out of the way at (12, 12, 1). The hero holds it from wherever it is.
    • Car to x 5, y 4, keeping its z.
    • A table for the phone: a cube Table, 1.2 × 0.7 × 0.8 m at (−2, −2, 0.4), with Phone lying on top.
  3. A spawn: an Empty named Spawn with the custom property type = spawn, at (0, −4, 0).

  4. The weapons table: in a Text Editor, press New, name the text data/weapons.json, paste this row, and turn on its fake user so it is kept when you save. model names the pistol’s object: the hero holds that.

    { "format": 1, "rows": [ { "id": "pistol", "name": "Pistol", "kind": "gun", "damage": 30, "reach": 35, "pierce": 1, "knock": 0.25,
    "stagger": 0.25, "cooldown": 0.28, "noise": 22, "ammo": -1, "hotkey": "1", "grip": "pistol", "model": "Pistol" } ] }
  5. The scene’s custom properties (Scene Properties ▸ Custom Properties):

    Property Value
    player.controller third
    player.weapons.start pistol
    collision.default mesh
    vehicle.table data/handling.json
    input.moveX · input.moveZ keys:KeyA,KeyD · keys:KeyS,KeyW
    input.jump · input.run keys:Space · keys:ShiftLeft/ShiftRight
    input.aim mouse:right
    input.fire keys:KeyF ; mouse:left

    Do not bind fire to G. While you carry something, G is the world’s Drop, and Drop wins: it would drop the phone instead of using it.

  1. Save the file and press Play in the 3D View’s header (preview your scene). Press to start. You stand with the pistol.

  2. Stand clear of the car and the table and press F. The slide goes back about 3 cm and comes home.

  3. Signed in to MegaCity, press R: the magazine drops out and goes home. Signed out, the default body has no reload key, but the fire clip plays either way.

  4. Walk to the car and press E. The driver’s door swings open, then shuts behind you. Stopped, E gets you out and it swings again.

  5. Press E at the phone on the table to pick it up. Fire uses it (F, the left button, or a gamepad’s right trigger): the lid flips open and shut. G drops it.

Signed in, where the members’ clips include a phone hold, the hero holds the phone by its grip and plays a call clip with it. Otherwise it is carried in a plain carrying pose.

  • An item: a pistol whose grips, moving parts and clips travel as one, and whose own fire and reload play in the hero’s hands.
  • A vehicle’s moving part: a door with its hinge found and its swing signed outward, which swings as you get in and out.
  • Any item in the hands: a phone that is a smart object, held by its own grip and used with the fire button.
  • Only the driver’s and the passenger’s doors open in play. Rear doors, the hood and the trunk can be made with Make Moving Part and swing in Blender, but they do not open in play.
  • The Open and Close clips play only in Blender. In play, the doors swing on their own as you get in and out.
  • A moving part must be a child of an object made with Make Hand Item or Make Vehicle. Until it is, Make Moving Part is greyed out.
  • Only a door, a hood or a trunk has its origin moved to its hinge for you. Put a trigger’s origin where it turns and a lid’s on its hinge yourself.

Every kind, clip and tag is in hand items, moving parts and weapons.