- Home /
Camera rapidly changes it's position when the parent changes.
Hello.
I'm working on my RTS camera script at the moment and I have a small problem.
My script involves changing the parent of camera from time to time, and when the camera adjusts to the Local positioning it rapidly changes it's position.
(EDIT: I want it to stay in the same position as it was in before changing parent)
Is there any way to solve this problem?
-Xentarok
P.S: I'm sorry if this question was answered here before.
It is difficult to offer any specific advice without seeing the script.
Do you mean that is snaps to the new position and you want it to slowly transition, or do you mean that is jumps around from the old position to the new position back and forth? You might need to add code or a slightly more detailed explanation.
I want it to stay in the same position as it was before changing the parent. I'll try to put in some code in a moment.
Your answer
Follow this Question
Related Questions
RTS Camera problem. 0 Answers
Attaching an RTS scrolling script to a camera (Noob Question) 3 Answers
Free Camera 2 Answers
Local Velocity for Rigidbody? 1 Answer