Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
issue with collision
#5
(11-01-2022, 09:40 AM)josemendez Wrote: Hi!

There's tons of issues in your scene, these are the most important ones:

1) - Main issue is that your cloth transform is scaled x100. This means the actual cloth mesh is tiny, and is getting stretched at runtime to be rendered 100 times larger. So when you simulate it, all cloth edges get stretched to 100 times their rest length and particles get locked in place because of the huge stretching forces, with minimal reaction to any other forces (such as collisions).

Make sure you apply any transformations before exporting your cloth. This is done differently depending on the 3D editing program you use and your fbx exporter. See this video:
https://www.youtube.com/watch?v=5j7k_tJUSJc

2) - The floor is a collider, set inside a solver that's applied to two different updaters. Not sure if this is intentional, but A) won't have any effect, you don't need colliders to be inside a solver hierarchy B) updating a solver more than once yields undefined results.

3) - The skin radius of your cloth blueprint is set to zero for all particles. This means particles are not allowed to move from their animated position. This is another reason why collisions (or any kind of simulation, for that matter) won't work: particles are fully driven by animation. You should set the skin radius to a larger value, in order to allow cloth to move at all.

Thanks! I found the problem is the scale.
2) was just a legacy setting I forgot to remove. 3) I set part of the mesh to only follow skin animation.

It took a while for me to correctly export FBX from blender. Some settings were changed in newer versions.The FBS unit setting worked for me, otherwise the armature is always scaled 100 when in unity.
Blender to Unity with Correct Scale and Rotation - YouTube
Reply


Messages In This Thread
issue with collision - by nikov - 06-01-2022, 06:27 AM
RE: issue with collision - by josemendez - 10-01-2022, 10:44 AM
RE: issue with collision - by nikov - 11-01-2022, 08:35 AM
RE: issue with collision - by josemendez - 11-01-2022, 09:40 AM
RE: issue with collision - by nikov - 13-01-2022, 08:49 AM