Obi Official Forum
Help Having trouble getting cloth to collide with other gameobjects - 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 Having trouble getting cloth to collide with other gameobjects (/thread-1215.html)



Having trouble getting cloth to collide with other gameobjects - digitalOctopus - 05-06-2019

I have a table mesh with a separate tablecloth mesh. Both are sitting upon a floor mesh. The table is a rigidbody with a mesh collider.

The tablecloth has an Obi Cloth component, set up as shown in the Obi Cloth setup video. The simulation works great, the tablecloth that came with the table actually moves like cloth now. The only trouble is, it falls through the table and through the floor, off into space. I've tried different colliders, configurations, etc, but can't seem to get it. Thanks for any help!


RE: Having trouble getting cloth to collide with other gameobjects - josemendez - 05-06-2019

(05-06-2019, 04:45 AM)digitalOctopus Wrote: I have a table mesh with a separate tablecloth mesh. Both are sitting upon a floor mesh. The table is a rigidbody with a mesh collider.

The tablecloth has an Obi Cloth component, set up as shown in the Obi Cloth setup video. The simulation works great, the tablecloth that came with the table actually moves like cloth now. The only trouble is, it falls through the table and through the floor, off into space. I've tried different colliders, configurations, etc, but can't seem to get it. Thanks for any help!

Make sure you've setup collisions correctly:
- Added a ObiCollider component to each collider you want to affect the cloth.
- Make sure the cloth and the collider have different phases (this is the case by default, unless you change it).

See:
http://obi.virtualmethodstudio.com/tutorials/collisions.html


RE: Having trouble getting cloth to collide with other gameobjects - digitalOctopus - 05-06-2019

(05-06-2019, 07:10 AM)josemendez Wrote: Make sure you've setup collisions correctly:
- Added a ObiCollider component to each collider you want to affect the cloth.
- Make sure the cloth and the collider have different phases (this is the case by default, unless you change it).

See:
http://obi.virtualmethodstudio.com/tutorials/collisions.html

Thanks so much!