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?