code: public static void updateLocation(ShanksSimulation simulation,
              MobileShanksAgent agent, Location location) {
          if (location.is2DLocation()) {
              ShanksAgentMovementCapability.updateLocation(simulation, agent,
                      location.getLocation2D());
          } else if (location.is3DLocation()) {
              ShanksAgentMovementCapability.updateLocation(simulation, agent,
                      location.getLocation3D());
          }
      }
docs: Update the location of the agent in the simulation
  
  @param simulation
  @param agent
  @param location