So I've been googling around for information on detecting
collisions in AS3 and I found this page which has what troy claims
to be a 'pixel-perfect' collision detection algorithm:
[url]http://troygilbert.com/2007/06/25/pixel-perfect-collision-detection-in-actionscript3/ [/url]
I'm just getting into this and find myself wondering if such
an elaborate class is needed to see if two oddly shaped objects
touch each other. My understanding is that Flash only offers
point and
bounding box collision detection and that if you have a
weirdly shaped object, you need something like this class to really
tell if two objects are actually touching.
The class on that page also lacks any real documentation.
Lastly, I'm wondering what sort of performance considerations
this might have.
Any general advice about this would be appreciated -- or
perhaps a faster/easier/better documented collision detection
example.