Prevent users from "walking" into 3D models
I used the template 3D project from lens studio and replaced the trophy with a 3D model of a house. Everything was easy to work with.
But when the model's scaled large enough, the player may physically walk around and have their camera into the model. They will see patches of gaps in the house due to back-face culling.
Is there any way I can prevent the user from getting that close to the model as they walk around it?
You could get the world position of the camera and the object, then do a distance check to see if they are colliding. From there maybe you can have text popup saying back up or just hide the house.
The code below is a simple example of collision detection, if you allow the user to resize the house you may have to make the collision zone grow/shrink as well. Hopefully this can put you on the right path.
The collision zone is a number which is compared to the distance, if the distance from the camera to the object is less or equal to the collision zone then we are colliding.