Camera
Read camera state and configure scripted camera behavior.
Feature: Camera
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
llClearCameraParams()functionResets all camera parameters to default values and turns off scripted camera control. Requires the
PERMISSION_CONTROL_CAMERAruntime permission (automatically granted for attached or sat-on objects).llForceMouselook(integer mouselook)functionSets whether any avatar sitting on this prim is forced into mouselook mode. Setting mouselook to
TRUEforces the mode;FALSE(default) allows the avatar to keep their current camera mode.float llGetCameraAspect()functionReturns a float representing the camera's current aspect ratio (width/height) of the agent who granted
PERMISSION_TRACK_CAMERA. Returns 0.0 if permissions are not granted.float llGetCameraFOV()functionReturns a float representing the camera's current field of view (FOV) in radians of the agent who granted
PERMISSION_TRACK_CAMERA. Returns 0.0 if permissions are not granted.vector llGetCameraPos()functionReturns a vector representing the camera's current position in region coordinates of the agent who granted
PERMISSION_TRACK_CAMERA. ReturnsZERO_VECTORif permissions are not granted.rotation llGetCameraRot()functionReturns a rotation representing the camera's current orientation of the agent who granted
PERMISSION_TRACK_CAMERA. ReturnsZERO_ROTATIONif permissions are not granted.llSetCameraAtOffset(vector offset)functionSets the target offset vector (in local coordinates) that a seated avatar's camera will look at.
llSetCameraEyeOffset(vector offset)functionSets the eye offset vector (in local coordinates) where a seated avatar's camera is positioned.
llSetCameraParams(list rules)functionSets multiple camera parameters simultaneously using the list of rules. Requires the
PERMISSION_CONTROL_CAMERAruntime permission.llSetLinkCamera(integer link, vector eye, vector at)functionSets the camera eye position offset eye and looking-at position offset at for avatars who sit on the linked prim link.
vector llWorldPosToHUD(vector world_pos)functionReturns 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 the
PERMISSION_TRACK_CAMERAruntime permission.
No matching entries. Try a different term or filter.