CollideRect docs wrong?

BlitzMax Forums/BlitzMax Beginners Area/CollideRect docs wrong?

Grey Alien(Posted 2006) [#1]
The CollideRect documentation says
Function CollideRect:Object[](x,y,w,h,collidemask%,writemask%,id:Object=Null)
Description Pixel accurate collision testing between image layers.

Surely it's NOT "Pixel accurate", it just uses rectangles right?


tonyg(Posted 2006) [#2]
<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.


Grey Alien(Posted 2006) [#3]
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.)


tonyg(Posted 2006) [#4]
Yep
Rectsoverlap1
Year ago 'we need one' from BRL
Rectsoverlap with imagerectoverlap


Grey Alien(Posted 2006) [#5]
thanks tonyg, snaffled a couple of those up.


taxlerendiosk(Posted 2006) [#6]
Does it mean pixel accurate in the sense of, rectangles smaller than one pixel wouldn't work?


Grey Alien(Posted 2006) [#7]
I doubt it!