This site requires JavaScript, please enable it in your browser!
Greenfoot back
erdelf
erdelf wrote ...

2012/6/13

Difference between intersecting and atoffset(0,0)

erdelf erdelf

2012/6/13

#
Hello, is there a difference between
getOneIntersectingObject(Wall.class);
and
getOneObjectAtOffset(0,0,Wall.class);
?
davmac davmac

2012/6/13

#
Yes. "getOneIntersectingObject" finds an actor whose bounds intersect this actor's bounds; "getOneObjectAtOffset" finds an actor which intersects (covers) the point at offset 0, 0 from this actor's location.
You need to login to post a reply.