Movement
Position, rotate, and move objects using scripted motion.
Feature: Movement
What do you want to do?
integer llSetRegionPos(vector position)Tries to move the entire object so that its root prim is within 0.1m of the vector position (underground positions are set to ground level). Returns TRUE on success or FALSE on failure.llSetRot(rotation rot)Sets the rotation of the prim to rot. If in a child prim, rot is treated as root-relative; if in the root prim of a non-physical object, rotates the entire object.llSetKeyframedMotion(list keyframes, list options)Smoothly moves a non-physical object between the positions, orientations, and times specified in the keyframes list, configured via options. Collisions with keyframed objects are ignored. An empty keyframes list terminates the motion.Reference
35 topic entries
llApplyImpulse(vector momentum, integer is_local)functionApplies a linear impulse (momentum) to a physical object. If local is
TRUE, the impulse is applied in local coordinates; otherwise, it is applied in global region coordinates.llApplyRotationalImpulse(vector force, integer is_local)functionApplies a rotational impulse (force) to a physical object. If local is
TRUE, the rotational impulse is applied in local coordinates; otherwise, it is applied in global region coordinates.vector llGetOmega()functionReturns a vector representing the physical rotation (angular velocity) of the object in radians per second.
vector llGetTorque()functionReturns a vector representing the physical torque force currently acting on the object (if the object is physical).
vector llGetVel()functionReturns a vector representing the velocity of the object (in meters per second) relative to the global region coordinates. For physical objects, returns the velocity of its center of mass.
llLookAt(vector target, float strength, float damping)functionCauses the object to orient its positive Z-axis (up axis) toward the target vector, keeping its positive X-axis (forward axis) below the horizon. Tracks target until
llStopLookAtis called or strength is set to 0.0.llMoveToTarget(vector target, float tau)functionCritically damps the physical object's motion to position target in tau seconds. Setting tau to 0.0 stops the critical damping; recommended tau values are greater than 0.2.
llPushObject(key target, vector impulse, vector ang_impulse, integer is_local)functionApplies physical impulse (force) and ang_impulse (rotational force) to the specified target avatar or object.
llRotLookAt(rotation target_direction, float strength, float damping)functionCauses the object to smoothly rotate to target_direction with a force defined by strength and damping. A strength of 0.0 cancels the rotation target. Rotation is maintained until stopped with
llStopLookAt.integer llRotTarget(rotation rot, float error)functionRegisters the rotation rot with a leeway tolerance error (in radians) as a target, triggering
at_rot_targetandnot_at_rot_targetevents. Returns an integer handle to unregister the target viallRotTargetRemove.llRotTargetRemove(integer handle)functionRemoves the rotational target specified by the integer handle registered with
llRotTarget.llSetAgentRot(rotation rot, integer flags)functionSets the rotation of the avatar to rot, controlled by flags.
llSetAngularVelocity(vector initial_omega, integer is_local)functionSets the angular velocity of a physical object to initial_omega (mass-independent). If local is
TRUE, applied in local coordinates; ifFALSE, applied in global coordinates. Has no effect on non-physical objects.llSetForce(vector force, integer is_local)functionApplies a constant linear force to a physical object. If local is
TRUE, force is applied relative to local coordinates; ifFALSE, applied relative to region coordinates.llSetForceAndTorque(vector force, vector torque, integer is_local)functionSets both the constant linear force and constant torque acting on a physical object. If local is
TRUE, forces are applied in local coordinates; ifFALSE, in global coordinates.llSetHoverHeight(float height, integer water, float tau)functionCritically damps the physical object's vertical movement to hover at height (above ground, or above water if water is
TRUE) in tau seconds. Do not use with vehicles; callllStopHoverto cancel.llSetKeyframedMotion(list keyframes, list options)functionSmoothly moves a non-physical object between the positions, orientations, and times specified in the keyframes list, configured via options. Collisions with keyframed objects are ignored. An empty keyframes list terminates the motion.
llSetLocalRot(rotation rot)functionSets the rotation of a child prim relative to its root prim using rot.
llSetPos(vector pos)functionMoves the non-physical object or prim toward the vector pos (up to 10m). If called in a child prim, pos is treated as root-relative; if called from the root prim, the entire object is moved.
integer llSetRegionPos(vector position)functionTries to move the entire object so that its root prim is within 0.1m of the vector position (underground positions are set to ground level). Returns
TRUEon success orFALSEon failure.llSetRot(rotation rot)functionSets the rotation of the prim to rot. If in a child prim, rot is treated as root-relative; if in the root prim of a non-physical object, rotates the entire object.
llSetTorque(vector torque, integer is_local)functionApplies a constant torque rotational force to a physical object. If local is
TRUE, torque is applied in local coordinates; ifFALSE, applied in global coordinates.llSetVelocity(vector velocity, integer is_local)functionSets the linear velocity of a physical object to velocity. If local is
TRUE, velocity is treated as a local directional vector; ifFALSE, as a global region directional vector. Has no effect on non-physical objects.llStopHover()functionStops the hover behavior (such as that initiated by
llSetHoverHeight).llStopLookAt()functionStops causing the object to look at or point toward a target (canceling
llLookAtorllRotLookAt).llStopMoveToTarget()functionStops the critically damped movement of the object toward a target (canceling
llMoveToTarget). UsellStopLookAtto stop rotational tracking.integer llTarget(vector position, float range)functionRegisters a positional target at position with a leeway radius range. This triggers
at_targetandnot_at_targetevents. Returns an integer handle to unregister the target viallTargetRemove.llTargetOmega(vector axis, float spinrate, float gain)functionApplies a smooth client-side rotation around the local axis at a rate equal to spinrate multiplied by the magnitude of axis (in radians per second) with a force defined by gain. Set spinrate to 0.0 to cancel.
llTargetRemove(integer handle)functionRemoves the positional target specified by the integer handle registered with
llTarget.at_target(integer tnum, vector targetpos, vector ourpos)eventTriggered when the scripted object's position (ourpos) comes within the defined range of the target position (targetpos) set by
llTarget(which returns the associated handle tnum).not_at_target()eventTriggered continuously while the object's position has not yet reached the range of targets set via
llTarget.at_rot_target(integer handle, rotation targetrot, rotation ourrot)eventTriggered when the script's rotation (ourrot) comes within a defined angle (error) of the target rotation (targetrot) set by a call to
llRotTarget(which returns the associated handle).not_at_rot_target()eventTriggered continuously while the object's rotation is outside the leeway angle of targets set via
llRotTarget.moving_start()eventTriggered whenever the physical or moving object containing the script starts moving.
moving_end()eventTriggered whenever the physical or moving object containing the script stops moving.
No matching entries. Try a different term or filter.