Skip to content
lsl.devlsl.devLSL Dev

Constants in the CameraParam enum.

All constant groups

At a glance, from the LSL definitions
// 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

ConstantTypeValueDescription
CAMERA_ACTIVEinteger12Option flag used with llSetCameraParams to turn scripted control of the camera on or off.

Fixed position and focus

ConstantTypeValueDescription
CAMERA_POSITIONinteger13Sets camera position in region coordinates.
CAMERA_POSITION_LOCKEDinteger21Option flag used with llSetCameraParams to lock the camera position so it does not move.
CAMERA_FOCUSinteger17Sets camera focus (target position) in region coordinates.
CAMERA_FOCUS_LOCKEDinteger22Option flag used with llSetCameraParams to lock the camera focus so it does not move.

Following the avatar

ConstantTypeValueDescription
CAMERA_DISTANCEinteger7Sets how far away the camera wants to be from its target.
CAMERA_PITCHinteger0Adjusts the angular amount that the camera aims straight ahead versus straight down, maintaining the same distance (analogous to 'incidence').
CAMERA_FOCUS_OFFSETinteger1Adjusts the camera focus position relative to the target.
CAMERA_BEHINDNESS_ANGLEinteger8Sets the angle in degrees within which the camera is not constrained by changes in target rotation.
CAMERA_BEHINDNESS_LAGinteger9Sets how strongly the camera is forced to stay behind the target if outside of the behindness angle.

Lag and thresholds

ConstantTypeValueDescription
CAMERA_POSITION_LAGinteger5Sets how much the camera lags as it moves toward its ideal position.
CAMERA_FOCUS_LAGinteger6Sets how much the camera lags as it aims toward the target.
CAMERA_POSITION_THRESHOLDinteger10Sets the radius of a sphere around the camera's ideal position within which it is not affected by target motion.
CAMERA_FOCUS_THRESHOLDinteger11Sets the radius of a sphere around the camera's target position within which its focus is not affected by target motion.

Used by