1 Reply Latest reply: Aug 1, 2011 4:20 AM by 879348 RSS

    how to get current view point position

    838975
      may i know how to get current view point position?

      Edited by: anIdiot on 27-Jul-2011 22:01
        • 1. Re: how to get current view point position
          879348
          1- get viewing platform from universe :

          u = new SimpleUniverse(canvas3D);
          ViewPlat=u.getViewingPlatform(); // get universe view

          viewplat definition : ViewingPlatform ViewPlat ;

          2- get viewing platform transform in an existing Transform3D

          ViewPlat.getViewPlatformTransform().getTransform(t3d);

          3- look at the trandform : t3d.get(Quater1, vector1); // get object orientation and coords

          Regards.
          jfp