|
Post by niklas on Oct 21, 2021 20:59:50 GMT
I'm trying to block an area from the camera which works fine. However, when I move the camera target around the blocking collider it's not sliding as I would expect and the character might even leave the view.
Hard to explain but think of an area like this. You are allowed to walk everywhere except X:ed area:
12345
XXX67
If I start at 1 and walk right at the bottom of the screen it will follow correctly without showing X. When I reach 4 it just drops down in a blink to center the followed the target when there is no collider below the camera. If I then try to walk towards 1 again the camera will be stuck against the right side of the collider. Eventually the camera will not follow the target anymore because it can't progress more to the left with the collider blocking.
Expected behavior: If I walk from 1 and reach 4 the camera should have a smooth animation down so that the target that can be centered now is centered since there are no bottom collider stopping this. If I walk from 4 towards 1 and the camera is lower than that's possible in 1,2 and 3 it should slide up and around the corner and then follow the player resting on the collider. The player starts upper left of the camera with the left side blocked, so the camera should scroll up as it is possible and when it cut the corner it should pan left so that the player is always followed.
|
|
|
Post by Luís Pedro Fonseca on Nov 2, 2021 21:43:50 GMT
Hi niklas, Sorry for the late reply. It seems your images haven't attached correctly. Anyhow, the GeometryBoundaries extension is finicky and I'd recommend using another method (like NumericBoundaries) if possible.
|
|