Camera Restraints only work when moving slowly?
I have a top down game I'm working on and I want to restrict the camera from moving beyond certain bounds. This works, unless I walk straight at these bounds quickly, then the camera ignores them and follows the player. I have a gif of this in effect and I'll link some screenshots of my setup. As far as I can tell I'm not turning off the restrictions when moving, it seems to be some problem with how I set things up but I have no idea how else I'd restrict the camera.
You can see here walking straight to the bounds lets me walk right past it, then when I stop the camera snaps up to the bounds. I then walk up back to th e bounds to show again the camera works fine now.
This screenshot is the basics of my restraints. I have variables keeping track of all four bounds (they change based on where I am in the level) I check if the player is close to one and then I start using the bounds instead of following the player completely. I use Vinterp to set the world location of the camera smoothly (Although I don't think this actually affects anything since I'm using a camera boom and my interp speed is really high) https://gyazo.com/9ee26726b8c111d9c3f7308630a07e0c
I have a camera attached to a spring arm with these lag settings https://gyazo.com/7eee083a664c66ed861b0ebae75bd9fa https://gyazo.com/28605406536602335907fea4dbee6fc2
Hope somebody can help!
Follow this question
Once you sign in you will be able to subscribe for any updates here