|
Post by panurgy on Dec 19, 2020 4:31:15 GMT
Hi,
I just started to check out the asset, and I have some questions. I would normally try to figure it out, but the User Guide link in the ReadMe is down, and google leads to links on the pages that no longer exist.
First: a basic guide would be nice. I'm all for experimentation, but staggering out of the start is a bummer.
I wanted to try out a quick test scene, hoping for a camera that lazily follows the player. That is, the player can move from the center of the screen, but the camera always returns to it's relative position, near the player.
1. The camera seems to be biased towards the left, and never returns to it's (relative) initial position. The offsets are at 0 or close (to the player, who's the target). But the camera seems to stop moving half a screen away from the player. 2. The camera is very slow, even with tiny "smoothness" values. (Acceleration would be really nice here, have the camera move faster as the player gets further away.) 3. Pan works fine, but zoom doesn't work at all. I was just using my own zoom script (dumb and written in 5 minutes) and it worked fine. It's frustrating that this one doesn't. Also, the camera seems to settle after panning, rather than returning to the expected position (again, the player).
Any help would be appreciated.
Thanks!
|
|
|
Post by Luís Pedro Fonseca on Dec 19, 2020 15:41:00 GMT
panurgy Sorry for the issue the website. I wasn't aware that it went down (due to some expiring license on GitHub). It's up again. Regarding your issues: 1 - The camera should always be centered on its targets. If its biased towards the left, my guess is that you have more than one camera target. 2 - Tiny smooothness values should result in a very fast camera. Again, I think you might unknowingly have multiple camera targets. Check the ProCamera2D inspector and confirm please. 3 - Zoom should work just fine. Can you please try it on the included demo scene at ProCamera2D/Examples/Platformer/Scenes/PanAndZoom Let me know if something else comes up.
|
|
|
Post by panurgy on Dec 19, 2020 22:15:19 GMT
Hey Luis, thanks for your reply. I deleted and re-added the ProCam to the main camera, and that fixed the default camera follow. (The PC was the only target, but I'm assuming that was just a typical Unity bug.) Now it works as expected with just the base setup. If I add Pan and Zoom, then the camera no longer properly follows - and zoom doesn't work. I tried the PanAndZoom example scene, and it has the same problems. I didn't make any changes, except to add the Player to an empty target list in one of the examples.
Tested with both Unity 2019.4.15 and 2020.1.17.
Also: glad to see the docs back up. Thanks!
|
|
|
Post by Luís Pedro Fonseca on Dec 19, 2020 22:19:42 GMT
The PanAndZoom extension basically adds an "invisible" camera target that you control with your input. It's not supposed to be used in conjunction with other camera targets. Otherwise it will follow both at the same time and it ends up in the middle of them. If you want to switch between both modes (manual input and following a target automatically), you'll have to toggle the extensions accordingly through scripting.
|
|