- Home /
Clothes goes mad with a near-zero time scale?
Hi, I'm using Clothes in unity to simulate... clothes.
The problem is that I need to make a pause menu, and, since many scripts uses Time.deltaTime and deactivating them all would be an issue, I can't use Time.timeScale = 0.
So I thought... let's use 0.0001, it works. The problem is that Clothes goes mad, like this:
It seems like physics of Clothes doesn't depends on time scale, just gravity does.
What should I do? Is there a way to stop clothes without resetting them?
Thank you!
Try scale fixedDeltaTime also.
Time.fixedDeltaTime = Time.timeScale * 0.02f;
Ok, I'll try. Even if the Unity Scripting API says:
Note that the fixedDeltaTime interval is with respect to the in-game time affected by timeScale.
Doesn't work, maybe it's also because there is a lower limit to that value (something like 0.00001), or maybe not, since I had to use a timeScale of 0.1 to start to see some results. I'll do more experiment eventually to find out what's going on.
I wonder if the opposite would work. I mean: If the FixedUpdate functions are called a very few times, that thing should not happen anymore and physics would be like stopped, am I right?
In that case I better check if it's different from 0, since I don't want to broken the Engine.