Currently, I am experimenting with Three.js and trying to figure out a way to check if one mesh is completely contained within another mesh. I've created a small robot that moves around inside a home box controlled by the player. While I know how to detect collisions, I'm wondering if there's a simple method to determine if an object is fully enclosed by another object.
One approach I thought of is calculating the center position of the home box and comparing it to the robot's position. However, I'm curious if Three.js has a built-in feature for this kind of detection.