Examples of OrbitBehavior


Examples of com.sun.j3d.utils.behaviors.vp.OrbitBehavior

        //Default position of the viewer.
        us.getViewingPlatform().setNominalViewingTransform();


        //The following three lines enable navigation through the scene using the mouse.
        OrbitBehavior ob = new OrbitBehavior(meuCanvas3D, OrbitBehavior.REVERSE_ALL);
        BoundingSphere bounds = new BoundingSphere(new Point3d(0.0, 0.0, 0.0), 100.0);
        ob.setSchedulingBounds(bounds);
        us.getViewingPlatform().setViewPlatformBehavior(ob);

        us.addBranchGraph(cena);

        //Show the canvas/window.
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.