Difference between revisions of "API Panel.Position.Camera.SetLookAt"

From Flowcode Help
Jump to navigationJump to search
(XML import of updated API docs)
Line 29: Line 29:
  
 
==Detailed description==
 
==Detailed description==
''<span style="color:red;">No additional information</span>''
+
This call is the equivalent of calling both the [[API Panel.Position.Camera.SetEye|SetEye]] and [[API Panel.Position.Camera.SetTarget|SetTarget]] calls.
 +
 
 +
 
 +
The ''Eye'' and ''Target'' are used to calculate the camera coordinates. The orientation of the camera is calculated by taking the ''up-vector'' of the ''Eye'' position and rotating this to look at the target. If the up-vector is parallel to the vector from the eye to target, an orthogonal vector is chosen as ''up''.
 +
 
  
  

Revision as of 21:03, 21 June 2013


<sidebar>API contents</sidebar> Sets the eye and target point of the camera

Class hierarchy

Panel

Position
Camera
SetLookAt

Parameters

HANDLE Eye

The position of the eye to set the camera to

HANDLE Target

The position of the target to set the camera to

BOOL Animate

True to animate movement from the current position


Return value

This call does not return a value


Detailed description

This call is the equivalent of calling both the SetEye and SetTarget calls.


The Eye and Target are used to calculate the camera coordinates. The orientation of the camera is calculated by taking the up-vector of the Eye position and rotating this to look at the target. If the up-vector is parallel to the vector from the eye to target, an orthogonal vector is chosen as up.


Examples

Calling in a calculation

  • Add to a calculation icon:
    ::Panel.Position.Camera.SetLookAt(eye, target, false)

No additional examples