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

From Flowcode Help
Jump to navigationJump to search
(XML import of API auto-gen)
 
 
(15 intermediate revisions by 3 users not shown)
Line 1: Line 1:
wiki page name
+
<sidebar>API Contents</sidebar>
==Panel.PositionCamera==
+
Camera positioning
 +
 
 +
This class is contained within [[API Panel.Position|Position]].
 +
 
 +
__TOC__
 +
 
 +
==Functions provided for this class==
 +
{|
 +
|-
 +
|width="35%"|[[API Panel.Position.Camera.GetEye|GetEye]]
 +
|Gets a handle to the eye camera position
 +
|-
 +
|width="35%"|[[API Panel.Position.Camera.GetTarget|GetTarget]]
 +
|Gets a handle to the target camera position
 +
|-
 +
|width="35%"|[[API Panel.Position.Camera.SetView|SetView]]
 +
|Sets the eye and target focal point of the camera
 +
|-
 +
|width="35%"|[[API Panel.Position.Camera.SetLookAt|SetLookAt]]
 +
|Sets the eye and target point of the camera
 +
|-
 +
|width="35%"|[[API Panel.Position.Camera.SetEye|SetEye]]
 +
|Sets the eye point of the camera
 +
|-
 +
|width="35%"|[[API Panel.Position.Camera.SetTarget|SetTarget]]
 +
|Sets the target point of the camera
 +
|-
 +
|width="35%"|[[API Panel.Position.Camera.Spin|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.
 +
 
 +
{{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.
  
Camera positioning
+
{{Fcfile|CameraSetTarget.fcfx|CameraSetTarget}}
----
+
 
===Functions provided for this class===
+
===SetLookAt===
{||-|[[API Panel.Position.Camera.GetEye|GetEye]]|Gets a handle to the eye camera position|-|[[API Panel.Position.Camera.GetTarget|GetTarget]]|Gets a handle to the eye camera position|-|[[API Panel.Position.Camera.SetView|SetView]]|Sets the eye and target focal point of the camera|-|[[API Panel.Position.Camera.SetLookAt|SetLookAt]]|Sets the eye and target point of the camera|-|[[API Panel.Position.Camera.SetEye|SetEye]]|Sets the eye point of the camera|-|[[API Panel.Position.Camera.SetTarget|SetTarget]]|Sets the target point of the camera|-|[[API Panel.Position.Camera.Spin|Spin]]|Rotates the camera along its view axis|}
+
 
 +
Simple example to move the camera and control where the camera is looking by providing two objects or position handles.
 +
 
 +
{{Fcfile|CameraSetLookAt.fcfx|CameraSetLookAt}}
  
===Examples===
+
==See also==
 +
[[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