Obi Official Forum
Help Resetting simulation on-animation-change - Printable Version

+- Obi Official Forum (https://obi.virtualmethodstudio.com/forum)
+-- Forum: Obi Users Category (https://obi.virtualmethodstudio.com/forum/forum-1.html)
+--- Forum: Obi Cloth (https://obi.virtualmethodstudio.com/forum/forum-2.html)
+--- Thread: Help Resetting simulation on-animation-change (/thread-2489.html)



Resetting simulation on-animation-change - ThoughtMango - 14-09-2020

Hello,

I'm wondering if there's an easy way to reset simaulation of particles of a cloth back to it's skinned values, and reset all forces on it with some form of callback?

I'm running into an issue where changing an animation on a character "explodes" the simulation suddenly.

Thanks


RE: Resetting simulation on-animation-change - josemendez - 18-09-2020

(14-09-2020, 12:37 PM)ThoughtMango Wrote: Hello,

I'm wondering if there's an easy way to reset simaulation of particles of a cloth back to it's skinned values, and reset all forces on it with some form of callback?

I'm running into an issue where changing an animation on a character "explodes" the simulation suddenly.

Thanks

You can use the particle API to set any particle property (positions, velocities, external forces, etc) to any value you need:
http://obi.virtualmethodstudio.com/tutorials/scriptingparticles.html


RE: Resetting simulation on-animation-change - ThoughtMango - 21-09-2020

Nice

I'll play around with those, see if I can get the result we need!