Build
Physics
Ciwb can drop your objects with real physics and keep where they land. Pick a few crates, rocks or barrels, let them fall onto the floor and onto each other, and the pile you get is an ordinary layout you can keep editing. It is the quickest way to make rubble, a messy storeroom or props scattered after a fight look natural, because nobody places things that randomly by hand.
Physics in Ciwb is a tool you run while you build. Nothing is simulated in your game afterwards: what you keep is plain voxels and ordinary keyframes, exported like everything else.
Drop with physics
- In the Model workspace, switch to World and pick the objects to drop. Ctrl-click or Shift-click in Layers to pick several.
- Choose Object > Drop with Physics, or press Ctrl+K and type "drop".
- The objects fall straight away. The bar at the bottom of the viewport plays the fall; drag along it to look at any moment.
- Press Keep (Enter) to keep where they landed, or Cancel (Esc) to put everything back.
Keeping is one undo step, so Ctrl+Z puts the whole pile back where it started.
Everything you did not pick stays still and gets in the way: a dropped crate lands on a table, rolls off a ramp, or wedges between two walls. The floor is the ground grid at height 0. Hidden objects, lights, cameras and attachment points are ignored.
Lift objects into the air before dropping them for a proper tumble. Objects that start on the floor barely move.
Tuning the fall
Changing a setting runs the fall again at once, from the same start.
| Setting | What it does |
|---|---|
| Gravity | How hard things fall. 1 g is Earth, with one voxel as 10 cm. Lower values give a slow, floaty fall with more time to spread out. |
| Bounce | How much objects bounce off the floor and each other. 0 lands dead; above 0.5 things skip and scatter. |
| Friction | How much they grip. Low friction lets things slide and topple off each other; high friction makes them stop where they land. |
| Tumble | How much each object spins and drifts as it starts to fall. 0 drops everything straight down; 1 gives a wild, scattered pile. |
Another throw runs the same fall with a different random start, so you can try a few piles and keep the one you like. The same settings and throw always give exactly the same result.
How objects land on the grid
During the fall objects turn freely. Voxels have to sit on the grid, so when you keep the result each object turns to the nearest quarter turn (on any axis), keeps its spot, and settles straight down onto whatever is under it. A crate that came to rest tilted against a wall ends up upright or on its side; a rock that landed upside down stays upside down. Nothing ends up inside anything else, and colours stay on the voxels they belong to.
Because of this the kept pile can differ a little from the last frame of the fall, most of all for objects that rested at a steep angle against another object.
Good to know
- Each object falls as one solid piece, shaped by its voxels, so a chair has legs and an arch has a hole you can drop things through.
- Bigger objects are heavier: weight comes from the number of voxels.
- Locked objects, groups and cutters cannot be dropped. Children do not follow their parent: pick them too.
- The physics engine loads the first time you drop something, which takes a moment once; Ciwb starts up as fast as before.
- Dropping works in the browser version and the desktop app alike, and gives the same result in both.
Break apart
Break Apart smashes an object into pieces that fly with physics, and bakes the flight into the animation as ordinary keys. Use it for a crate hit by a sword, a wall blown open or a statue that crumbles.
- Select the object and move the playhead to the moment of the hit.
- Choose Object > Break Apart… or Animate > Break Apart… (or Ctrl+K and "break"). Ciwb switches to the Animate workspace and breaks the object straight away.
- Scrub or play the timeline to watch it. Every change below rebakes at once.
- Press Keep (Enter) to keep it, or Cancel (Esc) to take it back out.
| Setting | What it does |
|---|---|
| Hit from | The side the blow comes from: above, front, behind, left, right, or a blast from inside. Pieces near the hit fly furthest; the far side mostly crumbles. |
| Time chip | When the blow lands. Click it to move the hit to the playhead. Before then the object stands whole. |
| Pieces | How big each piece is, in voxels. Small pieces make a fine shatter; large ones a few heavy chunks. |
| Force | How hard the blow is. 0 lets the object simply collapse under its own weight. |
| Gravity, Bounce | As for dropping. |
Another break cracks the object along different lines. The same settings always give the same pieces and the same flight.
The original object is hidden, not deleted, and the pieces go in a new group named after it ("Crate pieces"), one object per piece, each with its own keys in the active clip. The clip is lengthened if the flight runs past its end. Pieces bounce off everything else that is visible and come to rest on the floor or on other objects. Pieces that have come to rest carry no more keys than they need.
Because the result is plain keyframes on plain objects, it exports to game engines like any other animation, and you can still edit any piece's keys by hand. To use the broken object in a game, play the clip at the moment of the hit; the hidden original is the unbroken version.
Swinging chains
Capes, tails, ropes and chains swing with springs. Select the top bone of the chain and click Spring in the Animate workspace: the bone and every bone below it get a spring, and each link swings with the one above it, so motion ripples down the chain and the end trails furthest behind. See Add follow-through with springs for the settings and how to bake the swing into keys.