- Home /
Unity cloth stops moving (simulating) after a short time?
Hello everyone,
I really hope you can help as I've spent all evening trying to find an answer for this one.
I have made my own mesh (a flag) and attached the cloth renderer and interactive cloth elements to it.
It's attached where it should be, and has both random and external acceleration (I have tried both on, both off, 1 on and 1 off etc.) Also it has "Pause when not visible" disabled.
Everything looks great! However... after literally, 3-4 seconds, the simulation stops! And the flag no longer moves.
Things I've tried:
Re-starting unity
Changing external and random acceleration values
Adding a script which keeps changing those acceleration values (This almost works, but it still freezes unless i make it change every update which makes it look very artificial and jerky)
Quadruple checked the that "Pause when not visible" is disables :P
Please save me from insanity.
Thanks in advance.
Also tried using the default cloth mesh - same problem.
Do you use timeScale, what is your FixedTimeStep, and do you have a Physics Heavy FixedUpdate?
Does FPS drop at any point?
Nope. In fact I don't use any scripts in my scene right now. (It's an environmental piece).
I've never really used cloth much (never quite seems to work the way I expect), but I can sort of recreate this.
I created a simple default cloth using the plane mesh. Attached to the collider of a character that is spinning round via Transform.Rotate in script. After a short amount of time, the cloth appears to stop. Double-clicking the cloth in the hierarchy appears to wake it up again - is that the same for you?
Hmm, how strange. I would love to give you a reply, tanoshimi, but when I loaded up my project today - it's working perfectly.
I will leave this thread open, and return to it if the problem arises again.