A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Collision Detection with projection

  1. #1
    Junior Member
    Join Date
    Jul 2009

    Collision Detection with projection

    I have been working on a platformer, and I tried to implement the collision detection method used in n by metanet. http://www.metanetsoftware.com/technique/tutorialA.html
    If you look at Figure 5, you will see what I am trying to do.

    I project the triangle and box onto 5 different axis which they could possible intersect on. However, the script is slightly off in every direction for some reason. If someone could help me find out what is causing the problem, I would appreciate it.

    .fla: http://www.truploader.com/view/942517

  2. #2
    Flash Intermediate XenElement's Avatar
    Join Date
    Sep 2008
    At my computer
    have you tried PixelPerfectCollisionTest? it may be a bit slow, but it works for weirdly shaped objects.

    Pixel Perfect Collision Code
    In the process of designing a quirky little game engine called gulp. Check out it's progress below: @ my blog.


    Check out my blog at XenElement.com

  3. #3
    Senior Member
    Join Date
    May 2006
    your .fla won't compile. maybe post some code and a diagram of the problem?

Posting Permissions

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

Click Here to Expand Forum to Full Width

HTML5 Development Center