Difference between revisions of "API Panel.Position.Camera"
From Flowcode Help
Jump to navigationJump to searchLine 35: | Line 35: | ||
===SetEye=== | ===SetEye=== | ||
− | Simple example to | + | 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}} | {{Fcfile|CameraSetEye.fcfx|CameraSetEye}} | ||
Line 41: | Line 41: | ||
===SetTarget=== | ===SetTarget=== | ||
− | Simple example to | + | 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}} | {{Fcfile|CameraSetTarget.fcfx|CameraSetTarget}} | ||
Line 47: | Line 47: | ||
===SetLookAt=== | ===SetLookAt=== | ||
− | Simple example to move the camera and control where the camera is looking. | + | Simple example to move the camera and control where the camera is looking by providing two objects or position handles. |
{{Fcfile|CameraSetLookAt.fcfx|CameraSetLookAt}} | {{Fcfile|CameraSetLookAt.fcfx|CameraSetLookAt}} |
Revision as of 15:03, 11 May 2016
<sidebar>API Contents</sidebar> Camera positioning
This class is contained within Position.
Contents
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.
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.
SetLookAt
Simple example to move the camera and control where the camera is looking by providing two objects or position handles.