Results 1 to 2 of 2

Thread: Collision Coordinates

  1. #1
    Join Date
    Jul 2006
    Posts
    142
    Thanks
    7
    Thanked 0 Times in 0 Posts

    Default Collision Coordinates

    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

  2. #2
    Join Date
    Mar 2007
    Location
    Currently: New York/Philadelphia
    Posts
    2,735
    Thanks
    3
    Thanked 519 Times in 507 Posts

    Default

    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.

    [blockquote]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?[/blockquote]

    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.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •