public void setVisibility(String objectID, boolean isVisible) {
    Spatial object = Util.findNode(sim.getRootNode(), objectID);

    if (isVisible) object.setCullHint(CullHint.Dynamic);
    else object.setCullHint(CullHint.Always);
  }
 /**
  * Constructor
  *
  * @param assetManager to load models
  */
 public BargeShip(AssetManager assetManager) {
   bargeship = assetManager.loadModel("Models/Ship/BargeShip/BargeBoot.j3o");
   bargeship.setCullHint(cullHint.Dynamic);
   bargeship.scale(3);
   attachChild(bargeship);
 }