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

From Flowcode Help
Jump to navigationJump to search
(XML import)
 
(9 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<sidebar>API contents</sidebar>
+
<sidebar>API Contents</sidebar>
 
Camera positioning
 
Camera positioning
This class is contained within [[API Panel.Position|Position]]
+
 
 +
This class is contained within [[API Panel.Position|Position]].
  
 
__TOC__
 
__TOC__
Line 12: Line 13:
 
|-
 
|-
 
|width="35%"|[[API Panel.Position.Camera.GetTarget|GetTarget]]
 
|width="35%"|[[API Panel.Position.Camera.GetTarget|GetTarget]]
|Gets a handle to the eye camera position
+
|Gets a handle to the target camera position
 
|-
 
|-
 
|width="35%"|[[API Panel.Position.Camera.SetView|SetView]]
 
|width="35%"|[[API Panel.Position.Camera.SetView|SetView]]
Line 32: Line 33:
  
 
==Examples==
 
==Examples==
''<span style="color:red;">No additional information</span>''
+
===SetEye===
 +
 
 +
Simple example to control the position of the system panel camera by providing the object or position handle of where we want the camera to be.
 +
 
 +
{{Fcfile|CameraSetEye.fcfx|CameraSetEye}}
 +
 
 +
===SetTarget===
 +
 
 +
Simple example to control the angle of the system panel camera by providing the object or position handle of what we want the camera to look at.
 +
 
 +
{{Fcfile|CameraSetTarget.fcfx|CameraSetTarget}}
 +
 
 +
===SetLookAt===
 +
 
 +
Simple example to move the camera and control where the camera is looking by providing two objects or position handles.
 +
 
 +
{{Fcfile|CameraSetLookAt.fcfx|CameraSetLookAt}}
  
 
==See also==
 
==See also==
''<span style="color:red;">No additional information</span>''
+
[[API System.ShowHandle|System.ShowHandle]]

Latest revision as of 15:03, 11 May 2016

<sidebar>API Contents</sidebar> Camera positioning

This class is contained within Position.

Functions provided for this class

GetEye Gets a handle to the eye camera position
GetTarget Gets a handle to the target camera position
SetView Sets the eye and target focal point of the camera
SetLookAt Sets the eye and target point of the camera
SetEye Sets the eye point of the camera
SetTarget Sets the target point of the camera
Spin Rotates the camera along its view axis


Examples

SetEye

Simple example to control the position of the system panel camera by providing the object or position handle of where we want the camera to be.

FC6 Icon.png CameraSetEye

SetTarget

Simple example to control the angle of the system panel camera by providing the object or position handle of what we want the camera to look at.

FC6 Icon.png CameraSetTarget

SetLookAt

Simple example to move the camera and control where the camera is looking by providing two objects or position handles.

FC6 Icon.png CameraSetLookAt

See also

System.ShowHandle