private void idleUpdate(Vector3f orientation, float distance)
    {
        double time = ((double)Time.getTime())/((double)Time.SECOND);
        double timeDecimals = time - (double)((int)time);

        if(timeDecimals < 0.5){
            canLook = true;
            material.setTexture(animations.get(0));
        }else{
            material.setTexture(animations.get(1));

            if (canLook) {
                Vector2f lineStart = new Vector2f(transform.getTranslation().getX(), transform.getTranslation().getZ());
                Vector2f castDirection = new Vector2f(orientation.getX(), orientation.getZ());
                Vector2f lineEnd = lineStart.add(castDirection.mul(SHOOT_DISTANCE));

                Vector2f collisionVector = Game.getLevel().checkIntersection(lineStart, lineEnd, false);

                Vector2f playerIntersectVector = new Vector2f(Transform.getCamera().getPos().getX(),
                        Transform.getCamera().getPos().getZ());

                if (collisionVector == null ||
                        playerIntersectVector.sub(lineStart).length() < collisionVector.sub(lineStart).length()) {
                    state = CHASE;
                }
                canLook = false;
            }
        }
    }