Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  Cloth behaviour after tear
#1
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
Reply
#2
(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.
Reply
#3
(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
Reply
#4
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...
Reply
#5
(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
Reply
#6
(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).
Reply