krikienoid / flagwaver

A web app for simulating a waving flag.
https://krikienoid.github.io/flagwaver/
MIT License
367 stars 118 forks source link

Self intersection #62

Open zwocrcy opened 2 years ago

zwocrcy commented 2 years ago

The flag sometimes goes through itself. Hope it gets fixed.

krikienoid commented 2 years ago

This would definitely be a nice to have

blpdelivery commented 7 months ago

Flags also go through the pole, especially with the crossbar pole.

https://github.com/krikienoid/flagwaver/assets/166796077/d8eb5b3a-672f-4f23-9006-cdef4702df2d

krikienoid commented 6 months ago

@blpdelivery This is a known limitation, would need to implement some kind of collision detection to fix. It's definitely something I would like to fix but just haven't gotten around to it.

mulliganaceous commented 6 months ago

Can be a bother, and could make the algorithm much more computationally complex... I can still see some self-intersections while animating the AIN flag...

https://www.youtube.com/watch?v=HB8-wVxAxA8