示例#1
0
  public void explode(SimpleVector origin) {
    if (!exploding && animIndex < 1) {
      checkChild();
      if (!botUsage) {
        if (origin.x > 0.5f || origin.x < -0.5f) {
          if (origin.x > 0.5f) {
            child.rotateY((float) Math.PI / 2f);
          } else {
            child.rotateY(-(float) Math.PI / 2f);
          }
        } else {
          if (origin.z < 0.5f) {
            child.rotateY((float) Math.PI);
          }
        }
      }

      setSuperVisibility(false);
      if (!botUsage) {
        child.setRealVisibility(true);
      }
      exploding = true;
      setCollisionMode(Object3D.COLLISION_CHECK_NONE);
      if (decMan != null) {
        decMan.parentRemoved(this);
        decMan = null;
      }
    }
  }
示例#2
0
 public void removeUponServerRequest() {
   setVisibility(false);
   setCollisionMode(Object3D.COLLISION_CHECK_NONE);
   if (decMan != null) {
     decMan.parentRemoved(this);
     decMan = null;
   }
 }