View Full Version : Hit test to non-rectangular polygons?
Chronos
06-10-2003, 07:51 PM
I wanna do a hit-test to see if it's within an arbitraty polygon! I don't mean rectangle, I mean anything-- but it doesn't have to be converse it can be just for concave. How do I do this?
Do you mean how to carry out hitTest on "irregular" movieclips? If the answer is yes, be sure the boolean value for shapeFlag parameter(the 3rd one) is true.
mc.hitTest(x, y, true);
farafiro
06-11-2003, 10:07 AM
it needs more than x and y
it needs to calculate the angle, radius,.....
some math
see some here
http://www.bit-101.com/forum/viewtopic.php?t=656&highlight=angle
|
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.