This discussion is archived
1 Reply Latest reply: Aug 1, 2011 2:20 AM by 879348 RSS

how to get current view point position

838975 Newbie
Currently Being Moderated
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 Newbie
    Currently Being Moderated
    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

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points