i have two actor 1.Tree and 2.squirrel .. i am creating two object of Tree and one object of squirrel. now squirrel is on one tree and i want to move it on another tree .(* both tree are linear )(squirrel move -5 and stop when tree found)
if ( !isTouching(Tree.class))
{
move(-5);
}