I’m using the vector2D property/method/component in a script I’m working on and it shows up blue as though it’s a legitimate AS3 component, however, when I test the code I get error #1046.
Is there some sort of “flash.display…” line I can put up top that will allow the program to recognize vector2D? I can’t seem to get a straight answer from the flash website, sad to say.
Alternately, are there any good tutorials or links out there concerning the implementation of SAT (Separation of Axis Theorem) collision in AS3?
Thanks a lot!
Simply googling as3 separation axis theorem should help. The Polygonal blog post looks quite handy (speedwise and has nice references).
By default as3 provides the Point and Vector3D classes if it helps. Point is a bit limited, but Vector3D supports of the typical vector operations (like dot and cross product).