Math question: How to compute the area of polygons
miscdas at boxfrog.com
miscdas at boxfrog.com
Wed Mar 19 11:21:01 EST 2003
Malte Brill writes:
[snip]
> Thanks again for the link Mr. Miscdas.
>
> Mr Miscdas wrote:
>
>>Now that you mentioned Sprites and collision detection, did you look at the
>>intersect function?
> If I don´t do something essential wrong this won´t work. The intersect
> function seems only to check the bounding rectangle of an object.(I check at start using the intersect function for the
> rough part of the collision detection.)
You are correct; I had fogotten that the graphic objects actually have a
bounding rectangle rather than being bounded by the displayed line.
> Perhaps I should follow the tips that were suggested on this list a few
> month earlier checking the image- and maskdata of the objects and look if
> their values are bigger than a certain threshhold.
Yes, this would probably be a better solution for you in the long run.
>
> Thank you,
>
> Malte
miscdas
More information about the use-livecode
mailing list