This site requires JavaScript, please enable it in your browser!
Greenfoot
Username
Password
Remember Me?
Sign Up, Lost Password
Activity
About
Documentation
Download
Discuss
Scenarios
erdelf
wrote ...
2012/6/13
Difference between intersecting and atoffset(0,0)
erdelf
2012/6/13
#
Hello, is there a difference between
getOneIntersectingObject(Wall.class);
and
getOneObjectAtOffset(0,0,Wall.class);
?
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.
X