So I'm trying to detect camera collisions. I'm thinking to just raycast in the direction the camera is moving. (I have a way to do that since the camera and character movements are all in the same function, and a way to track what movement keys are down and their net direction output)
Anyways, I just need help in how to actually prevent the camera from going through walls. Any suggestions/ideas?