How can i zoom a 3d camera to prevent see trough walls?

Hello, i’m creating a 3d zelda-like game but i can’t find a way to zoom the camera when there is a wall to prevent x-ray.

I dont under stand???

OrangeManBADBAD is either a bot or a troll. in either case, ignore their comments.

How are you zooming the camera? Can you provide some screen snips of your events?

by using third peson camera and mouse pointer lock


my player as third person camera behavior

So you want to prevent the camera from swinging round and being on the other side of a wall?

If so, you could use the 3D Raycast extension and use a raycast from the camera position to the player position. If a wall object is in between, change the camera position closer to the player.