Obi Official Forum
Help Cloth behaviour after tear - 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 Cloth behaviour after tear (/thread-2845.html)



Cloth behaviour after tear - Gwynbleidd00 - 06-04-2021

Hey there! 
I want to push cloth parts after tearing. Where should I look for this?
*I'm tearing by collider atm not by script.
Thanks!
https://imgur.com/YiSCddv


RE: Cloth behaviour after tear - josemendez - 06-04-2021

(06-04-2021, 02:21 PM)Gwynbleidd00 Wrote: Hey there! 
I want to push cloth parts after tearing. Where should I look for this?
*I'm tearing by collider atm not by script.
Thanks!
https://imgur.com/YiSCddv

What kind of interaction do you want for this? Is clicking and dragging enough? In that case you can use th ObiParticleDragger/ObiParticlePicker components. They're included sample components that will raycast against all particles and let you move them around by applying a spring force between the mouse cursor and the particle you clicked on.


RE: Cloth behaviour after tear - Gwynbleidd00 - 06-04-2021

(06-04-2021, 02:29 PM)josemendez Wrote: What kind of interaction do you want for this? Is clicking and dragging enough? In that case you can use th ObiParticleDragger/ObiParticlePicker components. They're included sample components that will raycast against all particles and let you move them around by applying a spring force between the mouse cursor and the particle you clicked on.

Actually cutting progress is happennig like this

https://imgur.com/80a8Ru3
https://imgur.com/7FkvGlD
Thanks for fast help btw


RE: Cloth behaviour after tear - josemendez - 06-04-2021

Sure, but how do you want the user to interact with the cloth to separate both parts after cutting the cloth? there's many ways to do this: attach the cloth to two transforms and separate them, let the user click and drag the cloth, animate a couple bones that separate the cloth, etc...


RE: Cloth behaviour after tear - Gwynbleidd00 - 06-04-2021

(06-04-2021, 02:48 PM)josemendez Wrote: Sure, but how do you want the user to interact with the cloth to separate both parts after cutting the cloth? there's many ways to do this: attach the cloth to two transforms and separate them, let the user click and drag the cloth, animate a couple bones that separate the cloth, etc...
After cut user won't interact with them they need to just seperate by cutting then no user interaction, push to sides a bit and that's it. User will continue to next cloth after cut.
Attaching to two transforms is helping, but I would like to see them seperated as like a zip


RE: Cloth behaviour after tear - josemendez - 06-04-2021

(06-04-2021, 02:55 PM)Gwynbleidd00 Wrote: After cut user won't interact with them they need to just seperate by cutting then no user interaction, push to sides a bit and that's it. User will continue to next cloth after cut.
Attaching to two transforms is helping, but I would like to see them seperated as like a zip

You can use multiple transforms along each side of the cloth, and then animate them separating like a zipper (like you would animate any other object in Unity, creating animation clips and an animator, etc).