As I understand, clothes were rewritten, are faster, and now only usable to dress your characters like if you were playing with Barbies. A lot of other uses, like as a parachute or a flag, are no longer supported.
What is the current approach to create a flag-like object? Manually program it? We no longer have the possibility to add colliders to some specific points of the cloth, or adding a join or anything.
Is there any straightforward alternative?
(yeah, I know there are some flags being sold in Asset Store, but not sure if they will work with Unity5, now!!)
If you want to make a flag, create plane & add cloth component > add the plane mesh to the skinned mesh renderer > edit constraints and constrain on one edge > use external acceleration for wind.
Basically, you write âCull offâ in the Pass of the SubShader. Download the Built-in shaders from the Unity Download page (itâs under âAdditional Downloadsâ), copy the Standard.shader out of the .zip file into your project and edit it with MonoDevelop.
Thank you all for the answers. Iâll try to follow your suggestions. On the âone-side onlyâ problem, I usually did that with two panes, one in each direction. But if changing the shader also works, I will dig that.
But as far as I could understand, I will need to turn of gravity, right? As the constrain does not force the object not to move.
Thanks! I did that, and it nearly works, but I noticed that the shadows/lighting donât appear correctly when viewing the object from the reverse side. Examples:
From the front of the plane, the sphere casts a shadow:
After rotating the plane 180 degrees around the Y axis (no other changes to the scene), thereâs no more shadow, and the lighting looks different:
I just added âCull Offâ into each SubShader Pass (I attached the edited version of the shader for reference). Is there something else I should be doing?