13-06-2024, 01:44 PM
(This post was last modified: 13-06-2024, 01:45 PM by josemendez.)
(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/manua...tains.html
kind regards