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.
1. A pistol, pointing −Y
Section titled “1. A pistol, pointing −Y”The add-on’s presets expect a gun made pointing down −Y, with +Z up and its origin where the right hand holds it.
-
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) Pistol0.03 × 0.2 × 0.13 0, 0, 0 slide0.032 × 0.18 × 0.035 0, −0.01, 0.05 trigger0.006 × 0.01 × 0.025 0, −0.02, −0.03 hammer0.008 × 0.012 × 0.015 0, 0.095, 0.06 magazine0.022 × 0.04 × 0.11 0, 0.06, −0.05 -
Parent the four pieces to
Pistol: select them, thenPistollast, and press Ctrl+P ▸ Object (Keep Transform). -
Select
Pistoland choose Make ▸ Make Hand Item ▸ Pistol. Three Empties appear as its children:grip.r(the right palm),grip.l(the support hand) andmuzzle(an arrow down the barrel). They are placed from the pistol’s size: move them to fit.
2. Its moving parts and clips
Section titled “2. Its moving parts and clips”-
Select
slideand choose Make ▸ Make Moving Part ▸ Slide. Thentrigger▸ Trigger,hammer▸ Hammer andmagazine▸ 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.
-
With
Pistolselected, 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. -
Choose Make ▸ Make Item Clip ▸ Reload. The magazine drops 15 cm, is held out, and goes home, then the slide is racked.
-
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.
3. A car’s door
Section titled “3. A car’s door”-
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.FLand 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.LandDoor.R, scale applied. - Parent the wheels and the doors to
Car(Keep Transform).
- A body: a cube
-
Select
Carand 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. -
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.Lis taggedvehicle.door=driverandDoor.R=passenger. Each opens 65°, signed so it swings out. -
To see the swing in Blender, select
Carand 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.
4. A phone you pick up and use
Section titled “4. A phone you pick up and use”-
A flip phone lying flat: a cube
Phone, 0.055 × 0.1 × 0.012 m, scale applied. -
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 toPhone(Keep Transform). -
Select
Phoneand 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. -
Select
Phone.lidand 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. -
Select
Phoneand 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 to0and To to110in the Item panel and itspart.opentag to110in Tags, then make the clip again. -
Make the phone something the hero can pick up. Add these custom properties to
Phone(Object Properties ▸ Custom Properties):Property Value smartphonesmart.carryhandsmart.use.labelPick up the phoneitem.thingphone
5. The scene
Section titled “5. The scene”-
A ground: a cube
Ground, 40 × 40 × 1 m, its top at z 0, with the custom propertyfps.block=1. -
Set the three things apart on it. Move each by its root: its parts and grips go with it.
Pistolout of the way at (12, 12, 1). The hero holds it from wherever it is.Carto 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), withPhonelying on top.
-
A spawn: an Empty named
Spawnwith the custom propertytype=spawn, at (0, −4, 0). -
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.modelnames 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" } ] } -
The scene’s custom properties (Scene Properties ▸ Custom Properties):
Property Value player.controllerthirdplayer.weapons.startpistolcollision.defaultmeshvehicle.tabledata/handling.jsoninput.moveX·input.moveZkeys:KeyA,KeyD·keys:KeyS,KeyWinput.jump·input.runkeys:Space·keys:ShiftLeft/ShiftRightinput.aimmouse:rightinput.firekeys:KeyF ; mouse:leftDo 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.
6. Play it
Section titled “6. Play it”-
Save the file and press Play in the 3D View’s header (preview your scene). Press to start. You stand with the pistol.
-
Stand clear of the car and the table and press F. The slide goes back about 3 cm and comes home.
-
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.
-
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.
-
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.
What you made
Section titled “What you made”- 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.
Limits
Section titled “Limits”- 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.