When using Game Camera 2D, and unchecked Lock? in order to follow the Player, I encountered a few issues:
1) Target direction factor only works when the Player's Turn root object in 3D space? option is checked, which is not a big problem. But since I am also using Move with Rigidbody 2D? to avoid jittering motion when the Player is walking into colliders, AC suggests me to turn the Turn root object in 3D space? option off. May I ask what are the possible problems of using urn root object in 3D space? and Move with Rigidbody 2D? together?
2) When Target direction factor and Track freedom are both non-zero, Track freedom kind of giving the same effect of Offset.
Are those real issues or I just made some wrong settings? Thank you for advice.
Comments
-------------
2) Actually I just found the Track freedom value is useful when only being used alone.
But once if Offset has a non-zero value, the Track freedom value will add to the Offset value:
e.g. if Offset = 1 & Track freedom = 1, the effective result is Offset = 2 & Track freedom = 0.
If Target direction factor has a non-zero value, the Track freedom value will add to the Target direction factor value:
e.g. if Target direction factor = 1 & Track freedom = 1, the effective result is Target direction factor = 2 & Track freedom = 0, also with some fast camera movement when the camera center passes the player when catching up from behind.
If both Offset and Track freedom are non-zero, Track freedom will still add to Offset.
-------------
3) Another relatively simple issue is, if the Game Camera 2D has any non-zero transform position (either in x, y, or z), when the game is run, those x y z values will become additional camera offsets from the player on top of the camera tracking settings.
This could be solved by not using non-zero transform position for the camera, but it would be quite inconvenient when designing the scene. The 3D NavCam doesn't has this problem.
2) When I was trying to write my script, I too realized it is difficult to decide what is the desired effects of using Track freedom together with the other 2 settings. I will leave use only the Target direction factor for now.
3) I understand, but the 3D NavCam doesn't seem to have this issue. I personal think the 3D case is more convenient in building the scene, just a thought.
I realized a problem now, the horizontal movement would be lagged and jiggled if using both the Move with Rigidbody 2D? & Turn root object in 3D space? together. The effect is subtle when the character moves slow, but it is more obvious when moving faster.