CameraParam
Constants in the CameraParam enum.
// Scripted controlCAMERA_ACTIVE, integer isActive // default FALSE// Fixed position and focusCAMERA_POSITION, vector position // region coordinatesCAMERA_POSITION_LOCKED, integer isLocked // default FALSECAMERA_FOCUS, vector position // region coordinatesCAMERA_FOCUS_LOCKED, integer isLocked // default FALSE// Following the avatarCAMERA_DISTANCE, float meters // 0.5 to 50; default 3.0CAMERA_PITCH, float degrees // -45 to 80; default 0.0CAMERA_FOCUS_OFFSET, vector meters // <-10,-10,-10> to <10,10,10>; default ZERO_VECTORCAMERA_BEHINDNESS_ANGLE, float degrees // 0 to 180; default 10.0CAMERA_BEHINDNESS_LAG, float seconds // 0 to 3; default 0.0// Lag and thresholdsCAMERA_POSITION_LAG, float seconds // 0 to 3; default 0.1CAMERA_FOCUS_LAG, float seconds // 0 to 3; default 0.1CAMERA_POSITION_THRESHOLD, float meters // 0 to 4; default 1.0CAMERA_FOCUS_THRESHOLD, float meters // 0 to 4; default 1.0
Constants
Scripted control
| Constant | Type | Value | Description |
|---|---|---|---|
CAMERA_ACTIVE | integer | 12 | Option flag used with llSetCameraParams to turn scripted control of the camera on or off. |
Fixed position and focus
| Constant | Type | Value | Description |
|---|---|---|---|
CAMERA_POSITION | integer | 13 | Sets camera position in region coordinates. |
CAMERA_POSITION_LOCKED | integer | 21 | Option flag used with llSetCameraParams to lock the camera position so it does not move. |
CAMERA_FOCUS | integer | 17 | Sets camera focus (target position) in region coordinates. |
CAMERA_FOCUS_LOCKED | integer | 22 | Option flag used with llSetCameraParams to lock the camera focus so it does not move. |
Following the avatar
| Constant | Type | Value | Description |
|---|---|---|---|
CAMERA_DISTANCE | integer | 7 | Sets how far away the camera wants to be from its target. |
CAMERA_PITCH | integer | 0 | Adjusts the angular amount that the camera aims straight ahead versus straight down, maintaining the same distance (analogous to 'incidence'). |
CAMERA_FOCUS_OFFSET | integer | 1 | Adjusts the camera focus position relative to the target. |
CAMERA_BEHINDNESS_ANGLE | integer | 8 | Sets the angle in degrees within which the camera is not constrained by changes in target rotation. |
CAMERA_BEHINDNESS_LAG | integer | 9 | Sets how strongly the camera is forced to stay behind the target if outside of the behindness angle. |
Lag and thresholds
| Constant | Type | Value | Description |
|---|---|---|---|
CAMERA_POSITION_LAG | integer | 5 | Sets how much the camera lags as it moves toward its ideal position. |
CAMERA_FOCUS_LAG | integer | 6 | Sets how much the camera lags as it aims toward the target. |
CAMERA_POSITION_THRESHOLD | integer | 10 | Sets the radius of a sphere around the camera's ideal position within which it is not affected by target motion. |
CAMERA_FOCUS_THRESHOLD | integer | 11 | Sets the radius of a sphere around the camera's target position within which its focus is not affected by target motion. |
Used by
llSetCameraParamsfunctionSets multiple camera parameters simultaneously using the list of rules. Requires the PERMISSION_CONTROL_CAMERA runtime permission.