I have updated the example,
As you can see in the example, .intersectBox returns true when the blue cube and other cubes intersect. The problem is with the gltf model, which returns false when it intersects with cubes
How can I solve it?
hey teymoor, I havne’t had a chance to look in any detail, but is it possible that you run your intersectBox function before the fox is loaded? you might have to change your logic so that you run intersectBox as a callback
intersectBox It currently runs before loading the model.
I think I need to run “intersectBox” in the “updateBoxes” function to check the intersection of all cubes with the model. As I did now. Currently, this happens before the model is loaded.