I have the following problem: Im making a first person shooter with js + three.js. Now I wanna do collision detection. So far im doing simple aabb boxes wrapped around everything, but when i comes to complex shapes, like a building, the whole building gets wrapped in 1 aabb hitbox, the whole building becomes unaccessable. What would be a good way around this ? Is there some lib or aalgorithm that creates boxes for complex shapes or would i have to do it manually ? Also, this whole collision thing runs server side, so it shouldnt be too expensive.