Cloth going crazy in game, fine in animation

Hi everybody! Sorry if this is a dumb question, but I’m still extremely new to the software. I’m trying to create a character with a long coat made of cloth. Model built in Blender, cloth painted in Unreal (4.26).

In the mesh and animation viewers, everything seems to work ok. The coat flows around the body, bounces off the legs, looks good, etc.

But when I try playing the game, it whips around like crazy. I’ve tried painting extreme weights (1000), very low weights (10-20), removing all physics capsules, rescaling and re-importing, but nothing seems to really have an effect.

Any ideas?

Here’s how it looks in the animation window
111

Then here’s how it looks in the game screen
222

Most likely your physics asset…In the game screen its actually using it, and you probably have large capsules on the legs

I tried shrinking the physics capsules and then deleting them entirely, but still got the same behavior.

I strongly suggest you to create the physics asset from scratch rather than modifying the existing one, since physics in UE is not always reliable.

After that delete all the capsule except for the one on the legs, scale them accordingly and try again.

Also, I’ve noticed 2 separate physics assets one for cloth and one for sk. mesh. get out of sync. Change the one for the body to the one for cloth and see if that solves the issue.

Bad idea.

There’s 2 phat assets for a reason.
The one for cloth is used to build cloth data. If you change it you have to go though and act like you edit the paint to get it to update.

OP hasn’t responded yet, but generally speaking you all are handing off not that great advice.

First of, the very first question to ask is almost always:
“What are the cloth settings?” (Bonus, “where did you get them from?”)

The second one should have been:
“Please screen-shot and share the paint”.

The third is:
“Do you know what a phat asset is?”
And
“Are you using one for cloth”?

Unless those questions are answered any and all suggestions are basically just a wild guess. Not that they are bad guesses, mind you.
The phat asset is very likely to be at fault here.

Thanks for replying.

To answer your questions:

  1. What are the cloth settings? Cloth settings are default, the errors occurred before I attempted changing any settings.
  2. Please screen-shot and share the paint. Ok!
  3. Do you know what a phat asset is? Maybe, I’m still very new. I do know what a physics asset is, how to create, resize and move one, but not much beyond that.
  4. Are you using one for cloth? Due to the frustration, I’ve been pretty destructive. As I mentioned above, I’ve deleted all physics assets except the legs in hopes of narrowing down the problem. So currently, yes, the only physics I am using are for cloth.

Screen shots of cloth settings, physics assets and paint.



Paint is just wrong.
It needs to FADE from black to white. Also the distance from the origin should probably be a max of 30CM for your specific asset. I’m guessing it’s just painted with a 100 default.

Follow this at x2 speed:

Thank you for your guess, unfortunately, that was not the cause of the issue. As mentioned in the top post, I tried painting lower weights and various gradients.

Good news is, after some 40 variations, I found out what it was!! Well, what they were anyway because there were 2 issues. Adding my solution in case it helps anyone else.

Not sure how it happened, but the first issue was that the rest post in Blender was rotated 90 degrees forward. I think that’s what was causing the crazy flailing of the cloth - maybe the cloth solver was applying force in wrong or multiple directions at once. Resetting the rest pose in pose mode in Blender worked to solve the crazy motion.

The second issue was that the cuffs of the sleeves were brushing against the lower part of the coat and trapping the cloth between them and the physics assets in the legs. This made the cloth freak out and crumple around the legs. The fix here was to apply a second material to the sleeves (again in blender), so they were not part of the cloth.

I used this video to learn how to apply a second material:

Thank you again everyone for your help and attention!

Not a guess.
Cloth paint has to gradually increase from 0 to whatver total value, otherwise it will push the vertex off and create steps or tearing.

Your sleeves weren’t painted, so they shouldn’t have affected cloth movement in theory. In practice, sure, they possibly could, but creating more materials is always a bad idea. Period.

Obviously, if doing things right works for the tunic in the video I shared (even with really heavy paint), then logically at least, it should work just the same if you did the same paint setup for your asset.

If your goal is “whatever works”, then sure. What you have works. :wink: