Package com.jme.scene

Examples of com.jme.scene.Line.updateModelBound()


            }
        }
        Geometry regularGrid = new Line("regularLine", regularVertices.toArray(new Vector3f[] {}), null, null, null);
        regularGrid.getDefaultColor().set(new ColorRGBA(1, 1, 1, 0.05f));
        regularGrid.setModelBound(new BoundingBox());
        regularGrid.updateModelBound();
        lines.attachChild(regularGrid);
        Geometry markerGrid = new Line("markerLine", markerVertices.toArray(new Vector3f[] {}), null, null, null);
        markerGrid.getDefaultColor().set(new ColorRGBA(1, 1, 1, 0.1f));
        markerGrid.setModelBound(new BoundingBox());
        markerGrid.updateModelBound();
View Full Code Here


        regularGrid.updateModelBound();
        lines.attachChild(regularGrid);
        Geometry markerGrid = new Line("markerLine", markerVertices.toArray(new Vector3f[] {}), null, null, null);
        markerGrid.getDefaultColor().set(new ColorRGBA(1, 1, 1, 0.1f));
        markerGrid.setModelBound(new BoundingBox());
        markerGrid.updateModelBound();
        lines.attachChild(markerGrid);
        if (rotation != null) lines.getLocalRotation().fromAngles(rotation.x, rotation.y, rotation.z);

        Node axis = new Node("axis");
        this.attachChild(axis);
View Full Code Here

        lx.setModelBound(new BoundingBox());
        lx.updateModelBound();
        ly.setModelBound(new BoundingBox());
        ly.updateModelBound();
        lz.setModelBound(new BoundingBox());
        lz.updateModelBound();
        axis.attachChild(lx);
        axis.attachChild(ly);
        axis.attachChild(lz);

        TextureState ts = DisplaySystem.getDisplaySystem().getRenderer().createTextureState();
View Full Code Here

    }

    Line l = new Line("Line Group", vertex, null, color, null);
    l.setMode(Line.CONNECTED);
    l.setModelBound(new BoundingBox());
    l.updateModelBound();
    l.setLightCombineMode(LightState.OFF);
     
      trajectoryLine.removeFromParent();
      trajectoryLine = l;   
      this.trajectoryNode.attachChild(trajectoryLine);
View Full Code Here

    }

    Line l = new Line("Line Group", vertex, null, color, null);
    l.setMode(Line.CONNECTED);
    l.setModelBound(new BoundingBox());
    l.updateModelBound();
    l.setLightCombineMode(LightState.OFF);
     
      trajectoryLine.removeFromParent();
      trajectoryLine = l;   
      this.trajectoryNode.attachChild(trajectoryLine);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.