I'm faced with the challenge of placing huts randomly on a spherical world. While this task is feasible, the issue arises when the huts do not sit correctly - their bottom should be in contact with the tile below. I've experimented with the 'lookat' function, which typically works well with shapes or geometries I have created myself. However, it doesn't seem to work with someone else's model. This is because the hut's front (or axis) is designed as the front door. As a result, attempting to align the model with the tile beneath it causes the hut to lay on its front with the door touching the surface. Even placing a shape for the hut to look at can lead to inconsistencies, where the hut ends up lying on its side with the door facing the shape.
My ideal solution would involve changing the 'front' of the hut so that it aligns with the bottom of the model. Unfortunately, I believe this may not be achievable in Three.js. Any guidance on how to address this issue would be greatly appreciated.