Yes, getObjectsInRange would be more efficient. the reason I used getOneIntersecting Object is because the person I was helping out is not only new to greenfoot, he's new to Java as well. rather than confuse him with optimisation from the off, I thought I'd show him the logic behind collision detection so that he can investigate more efficient methods as he develops.
Thanks for the input though guys ;)
Recent Comments
2012/6/28
Bouncing Balls
2012/6/24
Bouncing Balls