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

From Flowcode Help
Jump to navigationJump to search
(XML import of API documentation)
Line 1: Line 1:
  
  
<sidebar>API contents</sidebar>
+
<sidebar>API Contents</sidebar>
 
Sets the eye and target point of the camera
 
Sets the eye and target point of the camera
  

Revision as of 14:27, 9 August 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