I’m trying to store the camera’s position and orientation right before a user starts tracking an entity so we can set it back when the user stops tracking the entity. However, while the orientation seems to update to the previous orientation properly, the position does not. Attached is a sandcastle edit that shows the issue.
If you click on the “View aircraft” button, it stores the existing camera position/orientation. Then if you hit the “Back” button, it should fly the camera to the original location. But you’ll see that it doesn’t appear to change the position.
Is it possible that my issue is one of coordinate frames? ie … that I’m recording the camera position in one frame of reference and setting that value in a different frame of reference?
If so, could someone give me a run-down of what coordinate frames each of these values is in?
entity.position.getValue( Date.now() )
As in … are the ECEF or ENU, with respect to some sort of parent, etc, etc?
It would be awesome if that information was reflected in the documentation (maybe it is, and I haven’t found it)?
Interpolation.html (6.69 KB)