Log in

View Full Version : Collision Coordinates



neo_philiac
07-01-2008, 05:32 PM
Hey guys :

I have a simple question I am trying to find the intersection of two (or more) lines at random angle and coordinate. All I want are the coordinates of the intersections. I know there is a

checkForCollision(movieClip1,movieClip2,alphaTolerance);

But is there a way to find the occurrence?

Please help

Medyman
07-02-2008, 09:08 PM
Hmm...

I'm not sure what checkForCollision() is. It's definitely a custom function. You might have seen some code online and mistook it for a native method.

After some googling, I've learned that checkForCollision() is a method of Grant Skinner's custom CollisionDetection class. Have you installed this class in your project?

Natively, AS2 has the hitTest() method but that only test is there is a hit. It doesn't return values of where the intersection point is.

The only way that I know of is to just do the calculations.