CollideRect docs wrong?
BlitzMax Forums/BlitzMax Beginners Area/CollideRect docs wrong?
| ||
| The CollideRect documentation says Function CollideRect:Object[](x,y,w,h,collidemask%,writemask%,id:Object=Null) Surely it's NOT "Pixel accurate", it just uses rectangles right? Description Pixel accurate collision testing between image layers. |
| ||
| <edit> scrap that... talking rubbish. Second thoughts... think I was nearly right. Rectangle check against the non-transparent pixels of an image. That should be pixel perfect. |
| ||
| Ah I see, you are checking a rectangle against the sprite mask on the collision layer, thus pixel perfect OK. So for Rect to Rect collision, do we just write our own? (It's simplae after all.) |
| ||
| Yep Rectsoverlap1 Year ago 'we need one' from BRL Rectsoverlap with imagerectoverlap |
| ||
| thanks tonyg, snaffled a couple of those up. |
| ||
| Does it mean pixel accurate in the sense of, rectangles smaller than one pixel wouldn't work? |
| ||
| I doubt it! |