andrey.ershov Posted July 17, 2012 Share Posted July 17, 2012 Hello, I can't joint coat (cloth) to ragdoll (example in attachment to skinned mesh: https://developer.un...loth/#attaching). Where I read about it? Link to comment
ulf.schroeter Posted July 17, 2012 Share Posted July 17, 2012 Have a look into physics cloth code examples \data\samples\physics\cloth_*.cpp. Samples can be started via \demos\samples_physics_d3d9.bat Link to comment
andrey.ershov Posted July 18, 2012 Author Share Posted July 18, 2012 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
manguste Posted July 18, 2012 Share Posted July 18, 2012 That's very simple: On the editor panel click Play button to disable physics. Choose editing button for a node reference cloth_06_coat. Go to Joints tab, choose Particles type and click Add. Choose a bone to attach a cloth to: BodyRigid - Bip01 Spine1. Click Ok and that's it. Click Play again to enable physics. Link to comment
andrey.ershov Posted July 19, 2012 Author Share Posted July 19, 2012 I have this triouble in model from example cloth6. Physics or joints working incorrect. test_cloth.rar Link to comment
manguste Posted July 19, 2012 Share Posted July 19, 2012 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
andrey.ershov Posted July 20, 2012 Author Share Posted July 20, 2012 Thank you, it's work! Link to comment
Recommended Posts