SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Member
    Join Date
    Feb 2004
    Location
    louisville, ky
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    CBE Collision Detection

    I'm in the middle of doing a good bit of work with CBE -- and I was wondering if anyone had implemented any sort of collision detection with it. I've got something in mind that would add a new "event" called "collide", and you could specify what elements the "collide" event would be triggered upon.

    I think, however, I'd have to modify the moveTo and moveBy functions, but possibly even the .top and .left functions to check for collisions on each move... I'm trying to make up my mind.

    Any ideas?

  2. #2
    I'll take mine raw silver trophy MikeFoster's Avatar
    Join Date
    Dec 2002
    Location
    Alabama, USA
    Posts
    2,560
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Welcome to SitePoint Forums!

    Have a look at this drag demo, especially the intersection() function, maybe it will be helpful.


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
  •