Obi Official Forum
Help Cloth curtain - 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 curtain (/thread-4254.html)



Cloth curtain - balaji.v - 13-06-2024

Hi,
How can we implement a obi cloth curtain that can expand and shrink using controller drag in Quest?

Thanks.


RE: Cloth curtain - josemendez - 13-06-2024

(13-06-2024, 01:38 PM)balaji.v Wrote: Hi,
How can we implement a obi cloth curtain that can expand and shrink using controller drag in Quest?

Thanks.

Hi,

Create a simple cloth plane, generate a particle group out of evenly spaced particles at the top, and add a ObiParticleAttachment that attaches that particle group to a transform. Then simply scale the transform to open/close the curtain.

Here's an old tutorial for Obi 2.0, it's really outdated but the general idea of attaching particles to a transform and then scaling the transform is still applicable:
http://obi.virtualmethodstudio.com/manual/4.X/curtains.html

kind regards


RE: Cloth curtain - balaji.v - 14-06-2024

(13-06-2024, 01:44 PM)josemendez Wrote: Hi,

Create a simple cloth plane, generate a particle group out of evenly spaced particles at the top, and add a ObiParticleAttachment that attaches that particle group to a transform. Then simply scale the transform to open/close the curtain.

Here's an old tutorial for Obi 2.0, it's really outdated but the general idea of attaching particles to a transform and then scaling the transform is still applicable:
http://obi.virtualmethodstudio.com/manual/4.X/curtains.html

kind regards
Thank you it helps a lot