I wanted to make myself a command for removing objects but it seems that my function doesn't work..
1 2 3 4 5 6 | if ( getOneIntersectingObject() == Hero. class ) { getWorld.removeObject(Hero. class ); getWorld.removeObject( this ); } |