So, I’m not a programmer at all, I’m just an animator trying to do stuff… and now trying to replicate Zelda’s camera, the way you move your right stick and the camera moves around a certain limited amount and then it goes back to “center” (original position).
First I’m using world location because the camera is rotated down, so relative location won’t work, or at least I couldn’t make it work.
Right now I have it so it adds the right stick X and Y to a stored vector “CameraOffset” and I add that to the camera world location and set it while I move the right trigger, but I have problem with getting the camera back to its original position.
Initially I tried storing the value just as I start moving the camera and setting that as world location on relase, but as you can imagine If i move from that location the camera focus the nothingness.
Also I have no idea how to limit that to a certain distance, I though using a clamp on the vector values, but as the values are world space they do not have a reference point (Actually I made a “camerarelativelocation” that is camera world space - camera boom world space, but can’t figure out how to use that xD my artist mind doesn’t go that far)
Anyways any insights will be helpful, thanks in advance.
TL;DR: How would you replicate the Zelda Echoes of Wisdom Camera ?