← Workshop

mofu no longer gets stuck in the furniture.

101 → 1 scenes where she gets stuck

The other day at the litter box: mofu has just finished, she's standing there looking pleased with herself, and her back paws are sunk up to the ankles in the plastic rim. Sadly, that wasn't a one-off. So we went looking properly.

Physics would have been too expensive

The obvious idea was a physics engine. It would have fixed this, but at a cost in every single frame, and in battery too. On top of that, mofu's moves are designed by hand. If she slides off the armchair, it should look that way because we wanted it to, not because some force went sideways.

Instead, every piece of furniture has fixed spots: she can sit here, lie there, sleep over there. Where exactly those spots are, we measure ahead of time on the Blender model. The app just has to look them up.

The test rig

To find all the places where things went wrong, we built a test rig. It has mofu play through every furniture scene once, with her real skin, and every 0.2 seconds it notes where she is. Each of those moments is about 350 points on her fur. For each point it checks whether it's inside the furniture, and how deep.

Litter box as a wireframe, next to a section through the model made of small cells
How the test rig sees the litter box: lots of small cells, 2 × 1 cm each. The darker a cell, the farther it is from there to the nearest surface.

From 3 cm deep, a point counts as stuck. If more than 8 in 1,000 points are that deep in one moment, the scene fails. The limit is deliberately a little forgiving, or every tail that brushes over an edge would set it off.

The first run was sobering: 101 of 349 scenes failed.

The litter box

The worst one was the litter box, and the reason was embarrassingly simple. It was too small. mofu just didn't fit, so her paws, her belly and sometimes her head ended up inside the rim and the hood.

Old and new litter box, below them mofu as a blue point cloud, marked red where she is stuck
Top: the old box and the new one. Below: both on the test rig. Red marks everything more than 3 cm inside.

The new box is quite a bit bigger, and the hood only covers the back. Now she stands in the sand, the way she should.

Furniture in cat size

It didn't stop at the litter box. We built a lot of furniture in Blender without mofu standing next to it, and it shows: a four-poster bed she barely fits into, a bathtub the size of a teacup. These days, the size of a piece depends on what mofu does with it. If she's supposed to sleep in it, she has to fit.

Eight pieces of furniture with mofu, top in their Blender size, bottom in cat size
Top: each model as it came out of Blender. Bottom: the size it needs to be for mofu.

For that, we know her measurements in every pose. If a spot is too small, she won't lie down there in the first place, she'll just look at it. That was the case for 30 pieces. They're being made bigger right now, until the test rig has nothing left to complain about.

What's next

Of the 349 scenes, exactly one still fails: the wall steps, where her tail brushes the wall. So we don't find ourselves back at 101 in a few weeks, the test rig now runs on its own whenever anyone touches a piece of furniture, mofu's body or a scene.

To finish, a few of her favorite spots, the way the test rig sees them. Blue is mofu, gray is the furniture.

mofu in the litter box
Litter box
mofu in the four-poster bed
Four-poster bed
mofu on the bean bag
Bean bag
mofu under the kotatsu
Kotatsu, under the quilt on purpose
mofu in the hammock
Hammock
mofu in the beach chair
Beach chair
mofu in the cardboard box
Cardboard box
mofu in the moon chair
Moon chair
mofu in the feather nest
Feather nest
mofu in the cuddle basket
Cuddle basket
mofu on the wool cushion
Wool cushion
mofu on the hay bale
Hay bale
mofu on the wooden crate
Wooden crate
mofu on the tree stump
Tree stump table
mofu in the tent
Tent
mofu on the driftwood lounger
Driftwood lounger
mofu in the rowing boat
Rowing boat
mofu in the rocking chair
Rocking chair
mofu on the melon cushion
Melon cushion
mofu on the cooler
Cooler
mofu on the floor cushion
Floor cushion
mofu in the cardboard sled
Cardboard sled
mofu in the bread basket
Bread basket
mofu on the flour sack
Flour sack
mofu in the tea trolley
Tea trolley
mofu on the wall steps
Wall steps, the last open case

Read more: How mofu is built, How mofu's world is built and Costumes that belong to her fur.