EDIT: changed the question
Im trying to achieve a door peeking mechanic and ive used move component to i have two problems.
- the first time the node is used it over shoots the position. then when i return back to normal it never reaches its original position(ends up closer to the player). this new position is always the return postion and on the second time the node is called to peek it always moves to the right location but the return is never where it started
- when i peek how would i restrict the rotation of the camera and set a new pivot point.
Thanks for your time