I am trying to go through the hole with first-person camera view. This is what I have done so far.
The idea is that I just want to prevent going through the wall except the door hole. On line 29: I looped all the meshes and made collision set to true. How should the camera go through the hole except the wall?
camera.ellipsoid = new BABYLON.Vector3(0.3, 0.3, 0.5); // makde the camera collision shape smaller
camera.minZ = 0.1 // render walls very close to the camera
So the camera shape size is the reason for not going through the hole. Am I right? What if I make the hole bigger, or how can I know what’s the default collision size of the camera? Sorry if I ask a stupid question. I’m just learning yet.