/** * Updates the appearance of this obstacle cylinder. */ protected void updateAppearance() { this.getAttributes().setInteriorMaterial(new Material(ObstacleColor.getColor(activeCost))); if (0 > this.activeCost) { this.getAttributes().setInteriorOpacity(1.0); } else { this.getAttributes().setInteriorOpacity(0.5); } // TODO: elements could change color, transparency or even an associated image/icon }