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

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 sets the position of the target whilst maintaining the position of the eye point. The ''Target'' is used to set the coordinates, and if ''UseAxis'' is true, to establish an ''up-vector'' for orientation (which affects the ''roll'' around the vector from the eye to the target). If ''UseAxis'' is false then the current eye to target vector is used to calculate orientation. Scale is ignored.
  
  

Revision as of 21:09, 21 June 2013


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

Class hierarchy

Panel

Position
Camera
SetTarget

Parameters

HANDLE Target

The target position to look at

BOOL UseAxis

True to apply the axis to the eye, else just use the coordinates

BOOL Animate

True to animate movement from the current position


Return value

This call does not return a value


Detailed description

This sets the position of the target whilst maintaining the position of the eye point. The Target is used to set the coordinates, and if UseAxis is true, to establish an up-vector for orientation (which affects the roll around the vector from the eye to the target). If UseAxis is false then the current eye to target vector is used to calculate orientation. Scale is ignored.


Examples

Calling in a calculation

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

No additional examples