Camera Follow Boundary

Hello there! Here’s my scenario. I have a camera follow script attached to the camera. What I have right now are collision triggers that will set the camera follow speed to 0 which then will let the PC move freely in the camera view when the camera edge reaches the level boundary. And then if the PC moves back far enough away from and triggers the collider again, it will reset the camera speed to follow the PC again.

The issue Im having is when the trigger is set to 0 and the PC is at the boundary, I want the camera to still move with the PC when it moves ALONG the boundary. I hope this makes sense.

you could just limit the movement of the camera along one axis at a time.