Camera
Read camera state and configure scripted camera behavior.
What do you want to do?
vector llGetCameraPos()Returns a vector representing the camera's current position in region coordinates of the agent who granted PERMISSION_TRACK_CAMERA. Returns ZERO_VECTOR if permissions are not granted.llSetCameraParams(list rules)Sets multiple camera parameters simultaneously using the list of rules. Requires the PERMISSION_CONTROL_CAMERA runtime permission.llClearCameraParams()Resets all camera parameters to default values and turns off scripted camera control. Requires the PERMISSION_CONTROL_CAMERA runtime permission (automatically granted for attached or sat-on objects).Reference
11 topic entries
Badges
llClearCameraParams()Resets all camera parameters to default values and turns off scripted camera control. Requires thePERMISSION_CONTROL_CAMERAruntime permission (automatically granted for attached or sat-on objects).functionP (Requires PERMISSION_CONTROL_CAMERA)llForceMouselook(integer mouselook)Sets whether any avatar sitting on this prim is forced into mouselook mode. Setting mouselook toTRUEforces the mode;FALSE(default) allows the avatar to keep their current camera mode.functionfloat llGetCameraAspect()Returns a float representing the camera's current aspect ratio (width/height) of the agent who grantedPERMISSION_TRACK_CAMERA. Returns 0.0 if permissions are not granted.functionP (Requires PERMISSION_TRACK_CAMERA)float llGetCameraFOV()Returns a float representing the camera's current field of view (FOV) in radians of the agent who grantedPERMISSION_TRACK_CAMERA. Returns 0.0 if permissions are not granted.functionP (Requires PERMISSION_TRACK_CAMERA)vector llGetCameraPos()Returns a vector representing the camera's current position in region coordinates of the agent who grantedPERMISSION_TRACK_CAMERA. ReturnsZERO_VECTORif permissions are not granted.functionP (Requires PERMISSION_TRACK_CAMERA)rotation llGetCameraRot()Returns a rotation representing the camera's current orientation of the agent who grantedPERMISSION_TRACK_CAMERA. ReturnsZERO_ROTATIONif permissions are not granted.functionP (Requires PERMISSION_TRACK_CAMERA)llSetCameraAtOffset(vector offset)Sets the target offset vector (in local coordinates) that a seated avatar's camera will look at.functionllSetCameraEyeOffset(vector offset)Sets the eye offset vector (in local coordinates) where a seated avatar's camera is positioned.functionllSetCameraParams(list rules)Sets multiple camera parameters simultaneously using the list of rules. Requires thePERMISSION_CONTROL_CAMERAruntime permission.functionP (Requires PERMISSION_CONTROL_CAMERA)llSetLinkCamera(integer link, vector eye, vector at)Sets the camera eye position offset eye and looking-at position offset at for avatars who sit on the linked prim link.functionvector llWorldPosToHUD(vector world_pos)Returns the local position vector that places the center of the HUD object directly over the world coordinate world_pos as viewed by the current camera. Requires thePERMISSION_TRACK_CAMERAruntime permission.functionP (Requires PERMISSION_TRACK_CAMERA)
No matching entries. Try a different term or filter.