# PhysX clothing clip during animation

**URL:** <https://forums.unrealengine.com/t/physx-clothing-clip-during-animation/444361>\
**Category:** Character & Animation\
**Tags:** engine-tools, apex-clothing, unreal-engine, UE4, question\
**Created:** [February 28, 2019, 8:44pm UTC](https://forums.unrealengine.com/t/physx-clothing-clip-during-animation/444361 "2019-02-28T20:44:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Crowley\_Caine](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Crowley\_Caine](https://forums.unrealengine.com/u/Crowley_Caine)\
**Post date:** [February 28, 2019, 8:44pm UTC](https://forums.unrealengine.com/t/physx-clothing-clip-during-animation/444361/1 "2019-02-28T20:44:23Z")

</div>

Hi,

I’m running some tests with the PhysX Clothing plug-in for Maya and I am having an issue with clothes clipping in more extreme poses.

This is a closed skirt type of item, obviously that will have some challenges as compared to open trenchcoats, regular pants and capes etc.

To illustrate what is going on:  
269939-  
Now I realize that getting physx to work with something like this will be difficult, I obviously need potentially shorten the item, as well as figure out a way to constrain it the lower leg/calf so it doesn’t overflow the actual foot.

What I was wondering though: **What changes should I make to this mesh initially to get some better results?**

I imagine making the actual item a lot wider and potentially creasing it, either manually or through PhysX, might be a solution. I’ve tried experimenting with stretch factors both in the PhysX plug-in and in UE4, but haven’t had much luck with that.

**Also, I haven’t tried doing this in-engine with the ue4 cloth system - Does anyone have any experience with that? Will the results be better, worse or the same as compared to using PhysX directly?**

Finally would like to point out to people that haven’t tried using the procedural cloth simulation tools before: The results are amazing. Like ridiculously good, it’ll blow your mind when you actually try it.

---

<div class="post-metadata">

**Author:** ![Crowley\_Caine](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Crowley\_Caine](https://forums.unrealengine.com/u/Crowley_Caine)\
**Post date:** [February 28, 2019, 9:04pm UTC](https://forums.unrealengine.com/t/physx-clothing-clip-during-animation/444361/2 "2019-02-28T21:04:34Z")

</div>

Testing it out in UE4 right now and whenever I try to paint on the mesh it just completely freezes until I release the button, if I reduce the value it kinda works, but not really. Anyone know why? It’s not a very complicated mesh, it’s less than 7k verts.

Made this sort-of work by just clicking to paint, but the results aren’t really up to the PhysX in Maya. Constraining it to the physics asset is pretty hopeless with animations. Maybe I just don’t understand it all of course.

I like how the ue4 version seems to detect a two-sided cloth and eliminates the need for latching and driving though.
