Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  Moving cloth with colliders
#1
Hello! I've started using Obi for cloth and its great. I have a quick question though.
I have some drapes set up to blow in front of spooky windows and I want to add the ability for the user to pull them aside with his hand (in VR).
Can someone point me in the right direction for that? I can't seem to figure out how to get colliders to move cloth.
Reply
#2
(25-03-2018, 10:41 AM)Ravenshadow Wrote: Hello! I've started using Obi for cloth and its great. I have a quick question though.
I have some drapes set up to blow in front of spooky windows and I want to add the ability for the user to pull them aside with his hand (in VR).
Can someone point me in the right direction for that? I can't seem to figure out how to get colliders to move cloth.

Welcome Ravenshadow!

You just need to:
- add a ObiCollider component to your regular collider.
- make sure its layer is checked for collisions by the solver (the "Default" layer is, by default)
- make sure its "phase" value is different from the ones of the cloth particles.

see:

http://obi.virtualmethodstudio.com/tutor...sions.html
Reply
#3
(25-03-2018, 10:59 AM)josemendez Wrote: Welcome Ravenshadow!

You just need to:
- add a ObiCollider component to your regular collider.
- make sure its layer is checked for collisions by the solver (the "Default" layer is, by default)
- make sure its "phase" value is different from the ones of the cloth particles.

see:

http://obi.virtualmethodstudio.com/tutor...sions.html

Worked like a charm! Thank you very much.

One more question, not sure if it's possible with Obi cloth but I thought I'd ask.

I have a scene with a skeleton under the covers of a bed and I'd like the player to be able to grab the covers and pull them down to reveal the skeleton. I can think of a couple complicated bone systems to do it, but is there an Obi Cloth way to do it?

Maybe  a particle attractor or something? I realize Obi might not have a way to solve this but the sim makes everything look so cool I'd like to keep the solution in Obi if possible.
Reply
#4
Ok, so I figured it out in case anyone is looking for this. Use Handles: http://obi.virtualmethodstudio.com/tutor...ments.html
and fiddle with the Obi Skin Constraints (I set Stiffness to 0 to get what I wanted).
Reply
#5
(26-03-2018, 07:32 AM)Ravenshadow Wrote: Ok, so I figured it out in case anyone is looking for this. Use Handles: http://obi.virtualmethodstudio.com/tutor...ments.html
and fiddle with the Obi Skin Constraints (I set Stiffness to 0 to get what I wanted).

Nice Sonrisa  That is exactly what I needed as well. Well, I would have liked to add more than handles, it could have been cool to have been able to make the whole rope or cloth grabable, but that would probably cause a lot of problems.
Reply