Are there plans to implement a collision detection manager in Overloaded? The layer class lends itself to this.
Collision Detection (Boundingbox/pixel perfect)
We do not have plans to implement this at the moment, although it sounds like a good idea. Are you looking for sprite collisions or other collisions?
Sprite collisions w/ some way to find a normal to the ...gradient(that the right word...)... of the collision. This is probably one of the biggest setbacks I'm messing with right now, I wrote a rectangle/circle bounding box collision manager for my current project, but it would just make sense to have something internalized with the OL framework (lends itself to issuing id's for object, creating links and such). It'd be nice to use vectors for this, but I didn't think STL was supported.
Later,
Robert
Yoda + Chewbaca <> Your Mom
Later,
Robert
Yoda + Chewbaca <> Your Mom
for fast collision detection you could also have an invisible low resolution grid in which you draw your sprites a second time. This way, if they collide it is easily detectable in the grid.
The resolution of this grid could easily be 8 times as coarse as your real playing field.
R
The resolution of this grid could easily be 8 times as coarse as your real playing field.
R
hmmm I now just read the topic which is 'pixel perfect collision detection'.
so to add to my previous post... the method handed is hardly pixel perfect, but is fast enough as an easy trvial rejection algorithm after which you can do some more fancy collision detection
R
so to add to my previous post... the method handed is hardly pixel perfect, but is fast enough as an easy trvial rejection algorithm after which you can do some more fancy collision detection
R
Ah, Reinier deleted his posts.
He had some good ideas btw: A coarse test is useful even for pixel-perfect collision detection; just use it as an initial (early-out) test to speed up pixel perfect collision detection...
Whoa! Bug! I add a post and Reinier's posts are back! Reinier, did you delete them and did they reappear, or did I stumble upon another bug?
"If you are not there, it's perfect software,
I you are near, them bugs reappear..."
I you are near, them bugs reappear..."
Rhino123 wrote:
"If you are not there, it's perfect software,
I you are near, them bugs reappear..."
Cool quote...
I think I will remember it for a long time
Update:
I just improved it
"when you're far away, the software is ok,
when you get near, them bugs reappear"
It is similar to the medieaval philosophic debate: "Does a tree make a sound, if there is no one aroundto hear it?"
This is hard to prove/unprove
the same goes for the Jacco vs bugs quote. Jacco will never be able to unprove the fact that the software works fine if he's not there
This is hard to prove/unprove
the same goes for the Jacco vs bugs quote. Jacco will never be able to unprove the fact that the software works fine if he's not there