Version: 
Back to list

View :: getCurrentCamera

Synopsis

   Returns the information of the current camera (used in the main viewer)

Script function

   view.getCurrentCamera() -> (position, view, up, fovX)

Return value

   position (Point3) : Position of the camera
   view (Vector3) : Direction of the camera view
   up (Vector3) : Up vector of the camera
   fovX (Angle) : Horizontal field of view of the camera