CollisionDetection

From Gnash Project Wiki

Jump to: navigation, search

Collision detection is the algorithm used to find out which characters in the movie are touched by the mouse point or by another character. Current implementation is not deeply tested and is known to be bogus for checking bounds of curved edges.

UPDATE the bounds of curved edges is not bogus anymore, just not very precise and not necessarely performant. The current algorighmt approximates the curve as a set of 10 segments, using regula T invervals. Then computes distance between query point and each segment.


References