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

2020/7/4

getoneintersectingobject

JohnBis JohnBis

2020/7/4

#
getoneintersectingobject(name.class) what does it do? Does it check whether it intersect/touch the name.class?
danpost danpost

2020/7/4

#
JohnBis wrote...
getoneintersectingobject(name.class) what does it do? Does it check whether it intersect/touch the name.class?
Yes, but there is more to it than that. It returns a reference to an intersecting Actor object of the type (?.class) given. If no actor of that type is found to be intersecting, it returns a null value.
You need to login to post a reply.