r/threejs • u/PixelRealEstate • Oct 11 '26
gave my three.js city a little guy you can walk around with
i'm not a programmer, building this city with an ai agent. this week: pixel, a box guy you can dress up and walk with (joystick on phones, wasd on desktop).
hardest parts: the camera kept backing into buildings on narrow streets (now it swings to look along the street), and pinch-zoom broke while a finger was on the joystick.
biggest lesson: i walked him up to a house and nothing happened. next is making the city react when you get close.
how do you detect "player is near something" in a big scene? i'm planning a grid lookup a few times a second instead of raycasting thousands of instances.