Exemple #1
0
  protected void buildArrow() {
    // Start with cylinders:
    final Cylinder base = new Cylinder("base", 4, 16, _width * .75, _length);
    rotator.fromEulerAngles(0, 0, 90 * MathUtils.DEG_TO_RAD);
    base.getMeshData().rotatePoints(rotator);
    base.getMeshData().rotateNormals(rotator);
    attachChild(base);
    base.updateModelBound();

    final Pyramid tip = new Pyramid("tip", 2 * _width, _length / 2f);
    tip.getMeshData().translatePoints(0, _length * .75, 0);
    attachChild(tip);
    tip.updateModelBound();
  }