Jump to content

[SOLVED] Cloth problem


photo

Recommended Posts

Have a look into physics cloth code examples \data\samples\physics\cloth_*.cpp. Samples can be started via \demos\samples_physics_d3d9.bat

 

post-82-0-26899200-1342560786_thumb.jpg

Link to comment

I looked this example. Load ragdoll and coat from node file (cloth_06_coat.node). It's work. I can not joint coat in UnigineEditor

Link to comment

That's very simple:

  1. On the editor panel click Play button to disable physics.
  2. Choose editing button for a node reference cloth_06_coat.
  3. Go to Joints tab, choose Particles type and click Add.
  4. Choose a bone to attach a cloth to: BodyRigid - Bip01 Spine1.
  5. Click Ok and that's it. Click Play again to enable physics.

post-13-0-33885800-1342621192_thumb.jpg

Link to comment

Too high radius of cloth particles causes this jittering. As they collide with a ragdoll body (rigid bodies that it consists of), they are forces back -> joints force them to move closer -> back again -> etc. Set Radius (cloth particle size) to 0.01 and all problems are gone,

 

P.S. The best variant will be to disable collision between a ragdoll body and a cloth, because that's the cause of any jittering between them. You can:

  • Disable collision of the cloth with all objects (Cloth -> Collision option).
  • Set up physics collision masks for a ragdoll and a cloth so they do not collide with each other and only with other objects. For example, if you do this for Bip01 L Clavicle shape, you'll see the difference.

test_cloth.zip

Link to comment
×
×
  • Create New...