ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Client functions
  3. setElementPreviewOrbit

Function

setElementPreviewOrbit

ClientGame engineTrilogy Hub only

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)

See also