コード例 #1
0
  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);
  }
コード例 #2
0
 /**
  * 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);
 }