- Home /
Making a Cloak using the Cloth GameObject
I was wondering if anyone here has made cloaks/capes/scarfs or anything for their characters that uses the Cloth GameObject, if so how do you make it attached to the character and follow him ? And if you use some other method what is that method of making these elements?
Answer by AVividLight · Feb 23, 2011 at 03:59 AM
I made a cape... Just attach it to the game object and attach some colliders...
-Edit-
Step 1) Make two small gameObjects (Name Them Collider1 & Collider2)
Step 2) Make a Cloth gameObject (Name it Cape)
Step 3) Move Collider1 & Collider2 onto your "player"
Step 4) Move the Cape INTO the colliders (So that the edges of the cape are intersecting the colliders)
Step 5) Under "Attached Colliders" (In the capes settings) set it to 2
Step 6) Drag & Drop Collider1 & Collider2 onto the two spaces that apear when you finish step 5
In case it isn't clear, here is a picture:
http://img826.imageshack.us/f/screencaptureu.png/
Here is a prefab of the "player"... Sorry I can't answer your questions specifically... I hope this helps!
Can you give me a more thorough explanation if it's not too much trouble? I'm new with Unity3D
If I made a Cloth GameObject added the Colliders to it, set the colliders in Attached Colliders and made a prefab with this, would this give me issues? Would I just search the prefab for the colliders and attach them to my character? Sorry for being a nuissance
But make sure the colliders and the cape are both children of the "player"
Ok, i did this and it's instantiating properly, but, the cape doesn't stay attached to the spheres. What I have is the Cloak prefab that is the Cloth and in it theres 2 prefabs contained 1 for each colliders, i set the colliders of the cloth to be the prefabs and instantiate it in my code but the cloth will just drop to the floor while the spheres move with my character
Answer by doomprodigy · Feb 23, 2011 at 04:03 AM
Model the Scarf etc first and then add it to the current model with colliders as GBStudios said, then add the modifier. This will work for Scarfs, Capes etc. For a cloak or robe etc, model it with your character and then the cloak part of the mesh give it the cloth modifier. Or just model both separately and add colliders to non moving parts.
Peace, Aaron Lewis
Your answer
Follow this Question
Related Questions
Attach a cloth to a character 0 Answers
Help when "connecting" 2 objects? 1 Answer
how to find existing cloth position? 1 Answer
Cloth attached to "Weights"? 0 Answers
Problem attaching cloth to gameobject 0 Answers