- Home /
Binding Cloth to hang from ceiling
As the title would suggest, I am attempting to use the new Interactive Cloth features of Unity to create a curtain that the character walks under. Right now I have the cloth setup with a join attached and gravity turned off. It deforms like it should, but when I run into the cloth, it continues moving and floating off into space. How do I bind or attach the cloth to a floating object so that it can hang down and not fly away?
Answer by mag · Aug 01, 2011 at 09:14 AM
You need to use attachment colliders.
Create a primitive (or more than one) shape like a cube.
Position it so that "overlaps" the part of your cloth mesh that you want to keep fixed/attached.
In the interactive cloth component, set 1 (or more if you use more than one) to the size of the array for "Attachment Colliders"
Click on the collider button and bind it to the collider primitive you created in step 1
Turn on gravity and test
Any part of the cloth NOT intersecting with the primitive should be free to flow and hang because of gravity. The part of it inside the collider will be stuck unless you allow tearing... but that's another story.