- Documentation
- Client functions
- setElementPreviewOrbit
Function
setElementPreviewOrbit
Sets a camera orbiting the target: the horizontal angle (yaw, 0 = from the north), the vertical angle (pitch), the distance (0 = the whole target in frame), the height and the field of view.
Syntax
bool setElementPreviewOrbit(preview preview, float yaw, float pitch [, float distance = 0, float height, float fov])Arguments
previewpreview- The preview.
yawfloat- Horizontal angle.
pitchfloat- Vertical angle.
distancefloat, optional = 0- Distance.
heightfloat, optional- Height.
fovfloat, optional- Field of view.
Returns
true on success.
Example
setElementPreviewOrbit(preview, 45, 20)