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.
You can also run this command in the new world to put the camera in a state where it can trigger the bug.
/camera @s set minecraft:follow_orbit ease 4 in_out_quart view_offset 3 2I will place a mcworld containing the behavior packages below. And a behavior pack.
Thank you for helping us improve Minecraft! We saved your files: