How to use the cloth system effectively?

Posted By: MatAllum

How to use the cloth system effectively? - 03/03/15 17:37

The clothdemo.c example that ships with the latest A8 update demonstrates nicely how to create a waving flag, but it seems unclear how to do anything else. Neither the example nor the manual nor the forums make it clear how to attach to an entity. Obviously you pass the entity pointer, but there's no mention of vertex attachment.

My only guess is that the flag in the example intersects with the pole model, but when I tried intersecting it with my own model (convex polygon hull), the flag just fell off and flopped onto the ground.

Does anyone have additional info or examples on this, particularly something applicable to an animated character wearing a cape?
Posted By: Random

Re: How to use the cloth system effectively? - 03/04/15 19:20

Would be interested as well.
Posted By: rojart

Re: How to use the cloth system effectively? - 03/04/15 21:20

Hi, the trick is: you should only impose your cloth with entity and not attach it, like sample 9.

Posted By: MatAllum

Re: How to use the cloth system effectively? - 03/04/15 23:10

Thanks for the insight. Perhaps I can do something with this.

(Also, for others facing this situation, polygon meshes apparently don't like cloth.)
© 2024 lite-C Forums