Package nu3a.scene

Examples of nu3a.scene.N3VisualObject


  public void mouseClicked(MouseEvent e) {
    N3Ray ray = scene.getActiveCamera().getRay(new N3Point2D((float) e.getX(), (float) e.getY()), 1000.0f);
    Vector objects = scene.getHierarchyRoot().testRec(ray);
        if (objects.size() > 0) {
          scene.Zorder(objects, scene.getActiveCamera().getPosition());
            N3VisualObject o = (N3VisualObject) objects.elementAt(0);
            if (o.testGeometry(ray, true))
            o.setBoundingVolumeVisible(!o.isBoundingVolumeVisible());
        }
  }
View Full Code Here

TOP

Related Classes of nu3a.scene.N3VisualObject

Copyright © 2018 www.massapicom. 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.