Search code examples
three.jscollisionammo.js

ammo.js collision cloth with soft body


I'm using ammo.js in three.js and made experiments with cloth (simple table cloth) falling down on 1° rigid body and 2° soft body. Cloth collides well with rigid body but does not detect soft body and simply crosses the soft body. What could I have made wrong ?


Solution

  • The mass needs more area to resist force. The cloth must be thicker, or else make use of hidden helper geometries which assume the position(s) of key vertices. These will displace the volume, depending on your unit scale, mass, and other forces.

    There is a dancing anime character in three.js/examples which uses IK. Look at the hidden rigging and notice the weights the bones have for hair. It is an artistic expression.