How do I make it so the player's camera doesn't go through glass windows?

I’m wondering about how can I make it so the player’s camera cannot go through glass. How can I do this?

1 Like

You could raycast from the Player’s head and manually set the camera, but there’s probably an easier way than this.

You can try putting a brick over it that isnt glass with 0.999 transparency or something but it’s a bit hacky and involves no coding

Try looking at this topic: