Examples of rotateUpTo()


Examples of com.jme.scene.shape.Arrow.rotateUpTo()

            //? Mesh orientation in ortogonal vector not clear
            Vector3f v=md.getDirection();
            if (v.x==0) v.x=0.0001f;

            a.rotateUpTo(v);
            a.updateModelBound();
            i++;
            rootNode.attachChild(a);
            driveMeshes.add(a);
        }
View Full Code Here

Examples of com.jme3.scene.Geometry.rotateUpTo()

        // create yz-grid
        Grid yzPlane = new Grid(size, size, segSize);
        yzGrid = new Geometry("YZ-Plane", yzPlane);
        yzGrid.setMaterial(mat);
        yzGrid.rotateUpTo(new Vector3f(1.0f, 0.0f, 0.0f));
        yzGrid.setLocalTranslation(new Vector3f(0.0f, offset, -offset));

        // create z-axis
        Arrow arrowZ = new Arrow(new Vector3f(0.0f, 0.0f, size));
        zAxis = new Geometry("Z-Axis", arrowZ);
View Full Code Here

Examples of com.l2client.model.jme.VisibleModel.rotateUpTo()

      NewCharSummary c = new NewCharSummary();
      c.name = "Myname";
      VisibleModel v = new VisibleModel(c);
      rootNode.attachChild(v);
      v.attachVisuals();
      v.rotateUpTo(Vector3f.UNIT_Z.mult(-1f));
     
      printHierarchy(rootNode, "");
    }
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.