I found that when using the scriptapi of the Bedrock Edition and setting the player's camera to this mode,
player.camera.setCamera('minecraft:follow_orbit', { viewOffset: { x: 3, y: 3 } });The camera can penetrate through walls for imaging. The reason for this might be that the camera determines that the collision box is directly behind the player's head, and the camera has an offset property, which causes the camera to enter the wall and result in the imaging effect.
Thank you for helping us improve Minecraft! We saved your files: