Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: PollyColly for Pascal

  1. #1

    PollyColly for Pascal

    I've been working with Polygon Collision for a few days now. After looking at pollycolly (a C library for Polygon Collision) and its implementation in Project Phoenix, I came up with a decent generic library for polygon, rectangle, and circle collision. Actually, its more of a joining of all of the units of Phoenix with some modifications to make a common number type available in a single unit. Anyways, I'm posting it here in case anyone else needs this type of thing.

    Download:
    http://www.eonclash.com/Lazarus/pollycolly.zip

  2. #2

    PollyColly for Pascal

    Sounds nice! I'll be sure to have a look at them.

  3. #3

    PollyColly for Pascal

    Acually didn't notice this thread before, good work there.

    I'm in the process of rewriting this code through, there's a bug in it that can make the seperation of the objects occuring in the wrong axis (same problem exists in Oliver's code). Currently there's support for all kinds of collisions between AABB's, circles and polygons (including Polygon <> Circle and so forth). It will also support rotating polygons (Circles and AABB's doesnt make any sence of rotating)

    Working on finishing the last parts of the responces for some of the collisions, it's as a bonus a bit faster then the last version aswell, and that's no bad thing
    Amnoxx

    Oh, and this code appears to be an approximate replacement for return(random() & 0x01);

    Phoenix Wiki
    http://www.phoenixlib.net/

    Phoenix Forum
    http://www.pascalgamedevelopment.com/viewforum.php?f=71

  4. #4

    PollyColly for Pascal

    Actually, on oliver's website, there is a delphi / pascal code example.
    This is my game project - Top Down City:
    http://www.pascalgamedevelopment.com...y-Topic-Reboot

    My OpenAL audio wrapper with Intelligent Source Manager to use unlimited:
    http://www.pascalgamedevelopment.com...source+manager

  5. #5

    PollyColly for Pascal

    @Andreaz - Can't wait to see the final version with everything fixed in it. I've noticed the bug in a few of the demos I've been working on for JumpStart. Its one of the reasons I don't allow for Circle/Poly/Rect intersection testing right now. I found a work around but it doesn't always work, and my math skills are a bit rusty to find the real fix.

    @Delphi - Odd, didn't see that there when I went to his site. Oh well, duplication of work isn't always a bad thing.

  6. #6

    PollyColly for Pascal

    Quote Originally Posted by jdarling
    @Delphi - Odd, didn't see that there when I went to his site. Oh well, duplication of work isn't always a bad thing.
    Well, i paid some coder 40どィ to translate it to pascal, but later never used it.
    This is my game project - Top Down City:
    http://www.pascalgamedevelopment.com...y-Topic-Reboot

    My OpenAL audio wrapper with Intelligent Source Manager to use unlimited:
    http://www.pascalgamedevelopment.com...source+manager

  7. #7

    PollyColly for Pascal

    Quote Originally Posted by Delfi
    Quote Originally Posted by jdarling
    @Delphi - Odd, didn't see that there when I went to his site. Oh well, duplication of work isn't always a bad thing.
    Well, i paid some coder 40どィ to translate it to pascal, but later never used it.
    40どィ, dam i would do it for half and still buy you a beer But then i'm kind of an open source kind of person
    Amnoxx

    Oh, and this code appears to be an approximate replacement for return(random() & 0x01);

    Phoenix Wiki
    http://www.phoenixlib.net/

    Phoenix Forum
    http://www.pascalgamedevelopment.com/viewforum.php?f=71

  8. #8
    Legendary Member NecroDOME's Avatar
    Join Date
    Mar 2004
    Location
    The Netherlands, Eindhoven
    Posts
    1,059

    PollyColly for Pascal

    is it 3D or only 3D?
    NecroSOFT - End of line -

  9. #9

    PollyColly for Pascal

    It's 2D, as Phoenix is a 2D library, i have no plans of doing a 3D version of it either, i can only recomend a physics engine for that, like TrueAxis as i've used myself.
    Amnoxx

    Oh, and this code appears to be an approximate replacement for return(random() & 0x01);

    Phoenix Wiki
    http://www.phoenixlib.net/

    Phoenix Forum
    http://www.pascalgamedevelopment.com/viewforum.php?f=71

  10. #10

    PollyColly for Pascal

    Quote Originally Posted by Andreaz
    Quote Originally Posted by Delfi
    Quote Originally Posted by jdarling
    @Delphi - Odd, didn't see that there when I went to his site. Oh well, duplication of work isn't always a bad thing.
    Well, i paid some coder 40どィ to translate it to pascal, but later never used it.
    40どィ, dam i would do it for half and still buy you a beer But then i'm kind of an open source kind of person
    Well, you can always try translating this
    http://www.pascalgamedevelopment.com...ghlight=#33721
    This is my game project - Top Down City:
    http://www.pascalgamedevelopment.com...y-Topic-Reboot

    My OpenAL audio wrapper with Intelligent Source Manager to use unlimited:
    http://www.pascalgamedevelopment.com...source+manager

Page 1 of 2 12 LastLast

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
  •