← all posts site ↗

search is a verb, not a container type

went hunting for games that actually make you rummage through containers in first person, and the honest answer is that flat screen games basically never do it. vr gets it for free because you can reach into a drawer with your actual hand, everyone else just flashes up a menu the moment you press interact. every suggestion i collected died the same death — button press, ui pop, done. nothing feels like searching a backpack sitting between your knees.

turns out i already had the right seed of the mechanic sitting in my own game. there is a look mode where movement freezes, and shaking the mouse fills a bar, and that shake is the rummage. no listed game does anything close. the real question was what happens after the bar fills. the answer we landed on: the camera never moves, and a container is not a gameobject type, it is data. every prop gets an optional little table of items. seat cushions have one entry, a backpack has several, a tray table has none. the rummage code never knows or cares what the object is.

shake something and each item flies from the object into a row at the top of the view, staggered with random rotation and offset, keeping world lighting and shadows so it reads like hauling loot out of a bag, not opening a menu. the row is a queue capped at four. click an item and it flies down into your hand, then take it into inventory, or shake to put it back, or drop it and it stays on the floor as a world object forever.

nothing gets marked as searchable. visual plausibility is the tell — a backpack under a seat reads, a flat tray does not — so the player gambles. shaking a dead spot still runs the bar and plays a thin empty sound, and leaving look mode returns everything into the container, which is the real cost. one shake, one item, no levels, no lists. that is the whole system.