|
Post by tommeta on Apr 4, 2021 15:39:01 GMT
I'm trying to address an issue with PC2D and follow targets, when used in the following manner:
1. Camera is initially following the player object. 2. A cutscene is triggered, wherein I remove all targets (i.e. the player object), and manually move the camera. 3. At the end of the cutscene, the player is re-added.
Expected behavior: The player target is added, and the camera smoothly moves from its current position (i.e. where I positioned it during the cutscene) to the new target position (the player position).
Observed behavior: The camera first instantly snaps to position 0,0,0 then rapidly moves to the new target position (the player position).
Is there a way to prevent the camera from first snapping back to 0,0,0 when adding/re-adding a target, and instead track from its current transform position?
Note also, there appears to be a second bug: when removing follow targets, FollowHorizontal and FollowVertical must both also be unticked, otherwise, the camera will begin to move on its own accord, even without any follow targets. Unclear if this bug is related to the above.
|
|
|
Post by tommeta on Apr 14, 2021 4:17:45 GMT
Bumping this in case anyone has seen similar issues or has a solution?
Again, the issue seems to be that when adding a PC2D target, when no targets are currently in the list, the camera first moves to position 0,0,0 before moving to the target.
|
|
|
Post by Luís Pedro Fonseca on May 1, 2021 15:15:18 GMT
tommeta I'm not seeing that issue. Adding a camera target when the camera has no targets it doesn't move it first to 0,0,0 position. Can you please record a video or share a sample project that does it?
|
|