- Home /
Can you lerp an object when Time.timeScale = 0?
Hey guys , At the moment I'm trying to lerp an object from one position to another, independent of the time scale. I understand that most lerp functions utilize time in their lerp to move the object but i need the rest of the game to be paused while the object moves. In this case i am moving a camera back during a dialogue transition with the game being paused in the background. So my question is is there any alternative ways to stop the time of a game without using time scale that would allow me to still lerp an object?
Timescale is independent of how the Lerp functions / extensions work. It sounds like you are using a time delta value as your Lerp t
value within one of the Update events, which is admittedly how tutorials tend to show it off.
Answer by Vega4Life · Dec 06, 2018 at 08:49 PM
Even with timeScale set to zero, your Updates() are being called. The main thing here is that Time.deltaTime is zero when you do this, but... Time.fixedDeltaTime isn't. So try using fixedDeltaTime to lerp your object.
Thanks im sure ill be able to work around my problem with that advice!
Your answer
Follow this Question
Related Questions
Pausing an Invoke for a time 2 Answers
How to detect collision when Time.timeScale == 0? 2 Answers
Accelerating Time Dramatically 1 Answer
Making a pause menu resume 2 Answers