|
Post by vaulcul on Dec 16, 2017 15:03:20 GMT
Hi there!
It'd be really handy to allow the Update type have the ability to be set per individual axis.
I'm using Weathermaker 2D and the LATE method makes it look like you are jumping up closer to the clouds without actually getting their on the y axis... However, it just doesn't look good on the x axis as the clouds are yoyoing back and forth. Using the FIXED method fixes the yoyoing issue... but takes the interesting effect of the clouds getting a little closer on the y axis.
I think having the ability to set independent update types would solve this.
Thanks much.
|
|
|
Post by Luís Pedro Fonseca on Dec 16, 2017 18:35:38 GMT
Hi vaulcul, I don't think separating the update type per axis is necessary and would probably cause a lot of issues. I'm not sure what you're trying to accomplish, but you should only use FixedUpdate if your camera targets are being moved by physics. Otherwise, you should probably use LateUpdate. Can you please explain further (or share a video) of what you're trying to do?
|
|
|
Post by vaulcul on Dec 18, 2017 2:05:40 GMT
Luis, Here is a link to a video I took of the scene. Pay special note to the clouds. At first, the camera is set to Late update and the clouds stutter on the horizontal plane while running. On the vertical plane the camera has a bit of leeway with the clouds, which may be an effect I want, but the horizontal plane stuttering not so much. Near the end of the video I change to a fixed camera and the stuttering stops on the horizontal plane, it also makes it so the leeway on the vertical plane is no longer there. Video link - 1drv.ms/u/s!AhyWkkkMX3MsgYJ06p0Kbh0xjdn7pg
|
|
|
Post by Luís Pedro Fonseca on Dec 18, 2017 16:16:47 GMT
Your clouds are apparently being positioned on a FixedUpdate loop, that's why when you change your camera to FixedUpdate the stuttering goes away. As such, everything else that moves on your game should also be moved on a FixedUpdate, otherwise you'll get stutters on those objects.
To keep the "leeway" effect you need to change the way the clouds are positioned (instantly every frame) by adding an easing effect. Look at DOTween or some other library that can help you with it.
Cheers!
|
|