private void checkForPath(){
        CollisionResults [] results = new CollisionResults [4];
        
        for(int i = 0; i < results.length; i++){
            results[i] = new CollisionResults();
        }
        
        getStageNode().getChild("TerrainNode").collideWith(new Ray(Vector3f.ZERO, Vector3f.UNIT_X), results[0]);
        
//        CollisionResults results2 = new CollisionResults();  
        getStageNode().getChild("TerrainNode").collideWith(new Ray(Vector3f.ZERO, Vector3f.UNIT_X.negate()), results[1]);
        
//        CollisionResults results3 = new CollisionResults();  
        getStageNode().getChild("TerrainNode").collideWith(new Ray(Vector3f.ZERO, Vector3f.UNIT_Z), results[2]);
        
//        CollisionResults results4 = new CollisionResults();  
        getStageNode().getChild("TerrainNode").collideWith(new Ray(Vector3f.ZERO, Vector3f.UNIT_Z.negate()), results[3]);
        
        if(results[0].size() <= 0){
            newPoint = new Vector3f(0, FastMath.HALF_PI, 0);
//            newPoint = Vector3f.UNIT_X;
        }else if(results[1].size() <= 0){
            newPoint = new Vector3f(0, -FastMath.HALF_PI, 0);
//            newPoint = Vector3f.UNIT_X.negate();
        }else if(results[2].size() <= 0){
            newPoint = Vector3f.UNIT_Z;
        }else if(results[3].size() <= 0){
            newPoint = Vector3f.UNIT_Z.negate();
        }else{
            float dist = spatial.getWorldTranslation().distance(results[0].getClosestCollision().getContactPoint());
            int index = 0;
            
            for(int i = 1; i < results.length; i++){
                if(spatial.getWorldTranslation().distance(results[i].getClosestCollision().getContactPoint()) > dist){
                    dist = spatial.getWorldTranslation().distance(results[i].getClosestCollision().getContactPoint());
                    index = i;
                }
            }
            
            newPoint = results[index].getClosestCollision().getContactPoint();
            
            
//            if(spatial.getWorldTranslation().distance(results1.getClosestCollision().getContactPoint()) > 
//                    spatial.getWorldTranslation().distance(results2.getClosestCollision().getContactPoint())){
//                newPoint = Vector3f.UNIT_X;
//            }else{
//                newPoint = Vector3f.UNIT_X.negate();
//            }
        }
        
        current_TimerObMove = timer_ObstacleMove;
    }