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

2018/2/27

Code for isTouching

maxt maxt

2018/2/27

#
Hi, I'm working on a school project at school and our school runs an old version of Greenfoot which I am not allowed to update, but I need to use the isTouching command? Is there any way I can get the code or otherwise use the method?
Vercility Vercility

2018/2/27

#
protected boolean isTouching(Class<?> cls)
    {
        return getOneIntersectingObject(cls) != null;
    }
You need to login to post a reply.