Is there a camera limit smoothing alternative on PhantomCamera2D ? #411
-
Im currently working on a scene with a first PhantomCamera2D following the player, and a second for the main menu. They are both glued to the player and got limits set to the same values. 'Follow Dampin' is on, the cameras work smoothly when moving. The 2 problems im currently having is when approching the cameras limits : 1. No limit smoothing :I did not found any options similar to 'Limit > Smoothed' option of Camera2D in PhantomCamera2D. The camera movement just stops instantly when it hits the limits. No.limit.smoothing.webm2. Forget the limits when swaping between cams :When opening or closing the menu just next to the borders, wich are using different PhantomCamera2D, they do not take in account the fixed limit borders, resulting in an instant correction when finishing the animation. Forget.the.limits.webmHere are the scene's tree structure and camera settings for better understanding :As you can imagine, these questions are not blocking anything, but if there are alternatives to solve them, whether negative or positive, I'd be delighted. If there's no solution, maybe these could be potential features to add ? (in the limits of possible) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
This was something I did briefly explore when I initially added the
That one is odd, the |
Beta Was this translation helpful? Give feedback.
Think that happens because you're using the default (
disabled
)Stretch Mode
inside Project Settings?As it would mean that as the window gets bigger, so too does the Viewport Width / Height of the camera. The complication is that if you have a relatively compact limit region and increase the window size too much, then the camera's viewport may extend beyond the bounds of the limit. Which can result in the PCam2D getting confused as it's now bigger than the area it's confined too.
If you change the Viewport Width / Height inside Project Settings to match your full-screen resolution, and see how it behaves in the editor, then might give a better clue for how it behaves during runtime.
Happy…