Package nu3a.collision

Examples of nu3a.collision.N3Ray


  public void keyTyped(KeyEvent e) {
  }

  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))
View Full Code Here


        * internalCamera.getZFar(), -internalCamera.getZFar());

    src = getAccMatrix().mult(src);
    dest = getAccMatrix().mult(dest);

    return new N3Ray(src, dest);
  }
View Full Code Here

TOP

Related Classes of nu3a.collision.N3Ray

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.