This is documentation of an archived release.
For documentation on the current version, please check Knowledge Base.

Example: Get the View Vector

This example demonstrates using the active View Vector of the viewer.

When any view changes position or direction, you can retrieve that view's position using the getViewVector() function. The return value is a CoordinatePart with 3 coordinates :

  • The view position
  • A second position that, together with the view position, forms the forward vector
  • A third position that, together with the view position, forms the up vector



 
Last modified:: 2023/01/09 12:48