Movement
Position, rotate, and move objects using scripted motion.
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
Badges
Kind
llApplyImpulse(vector momentum, integer is_local)Applies a linear impulse (momentum) to a physical object. If local isTRUE, the impulse is applied in local coordinates; otherwise, it is applied in global region coordinates.functionllApplyRotationalImpulse(vector force, integer is_local)Applies a rotational impulse (force) to a physical object. If local isTRUE, the rotational impulse is applied in local coordinates; otherwise, it is applied in global region coordinates.functionvector llGetOmega()Returns a vector representing the physical rotation (angular velocity) of the object in radians per second.functionvector llGetTorque()Returns a vector representing the physical torque force currently acting on the object (if the object is physical).functionvector llGetVel()Returns 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.functionllLookAt(vector target, float strength, float damping)Causes 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 untilllStopLookAtis called or strength is set to 0.0.functionllMoveToTarget(vector target, float tau)Critically 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.functionllPushObject(key target, vector impulse, vector ang_impulse, integer is_local)Applies physical impulse (force) and ang_impulse (rotational force) to the specified target avatar or object.functionllRotLookAt(rotation target_direction, float strength, float damping)Causes 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 withllStopLookAt.functioninteger llRotTarget(rotation rot, float error)Registers the rotation rot with a leeway tolerance error (in radians) as a target, triggeringat_rot_targetandnot_at_rot_targetevents. Returns an integer handle to unregister the target viallRotTargetRemove.functionllRotTargetRemove(integer handle)Removes the rotational target specified by the integer handle registered withllRotTarget.functionllSetAgentRot(rotation rot, integer flags)Sets the rotation of the avatar to rot, controlled by flags.functionllSetAngularVelocity(vector initial_omega, integer is_local)Sets the angular velocity of a physical object to initial_omega (mass-independent). If local isTRUE, applied in local coordinates; ifFALSE, applied in global coordinates. Has no effect on non-physical objects.functionllSetForce(vector force, integer is_local)Applies a constant linear force to a physical object. If local isTRUE, force is applied relative to local coordinates; ifFALSE, applied relative to region coordinates.functionllSetForceAndTorque(vector force, vector torque, integer is_local)Sets both the constant linear force and constant torque acting on a physical object. If local isTRUE, forces are applied in local coordinates; ifFALSE, in global coordinates.functionllSetHoverHeight(float height, integer water, float tau)Critically damps the physical object's vertical movement to hover at height (above ground, or above water if water isTRUE) in tau seconds. Do not use with vehicles; callllStopHoverto cancel.functionllSetKeyframedMotion(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.functionllSetLocalRot(rotation rot)Sets the rotation of a child prim relative to its root prim using rot.functionS (Sleeps 0.2s)llSetPos(vector pos)Moves 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.functionS (Sleeps 0.2s)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). ReturnsTRUEon success orFALSEon failure.functionllSetRot(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.functionS (Sleeps 0.2s)llSetTorque(vector torque, integer is_local)Applies a constant torque rotational force to a physical object. If local isTRUE, torque is applied in local coordinates; ifFALSE, applied in global coordinates.functionllSetVelocity(vector velocity, integer is_local)Sets the linear velocity of a physical object to velocity. If local isTRUE, velocity is treated as a local directional vector; ifFALSE, as a global region directional vector. Has no effect on non-physical objects.functionllStopHover()Stops the hover behavior (such as that initiated byllSetHoverHeight).functionllStopLookAt()Stops causing the object to look at or point toward a target (cancelingllLookAtorllRotLookAt).functionllStopMoveToTarget()Stops the critically damped movement of the object toward a target (cancelingllMoveToTarget). UsellStopLookAtto stop rotational tracking.functioninteger llTarget(vector position, float range)Registers a positional target at position with a leeway radius range. This triggersat_targetandnot_at_targetevents. Returns an integer handle to unregister the target viallTargetRemove.functionllTargetOmega(vector axis, float spinrate, float gain)Applies 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.functionllTargetRemove(integer handle)Removes the positional target specified by the integer handle registered withllTarget.functionat_target(integer tnum, vector targetpos, vector ourpos)Triggered when the scripted object's position (ourpos) comes within the defined range of the target position (targetpos) set byllTarget(which returns the associated handle tnum).eventnot_at_target()Triggered continuously while the object's position has not yet reached the range of targets set viallTarget.eventat_rot_target(integer handle, rotation targetrot, rotation ourrot)Triggered when the script's rotation (ourrot) comes within a defined angle (error) of the target rotation (targetrot) set by a call tollRotTarget(which returns the associated handle).eventnot_at_rot_target()Triggered continuously while the object's rotation is outside the leeway angle of targets set viallRotTarget.eventmoving_start()Triggered whenever the physical or moving object containing the script starts moving.eventmoving_end()Triggered whenever the physical or moving object containing the script stops moving.event
No matching entries. Try a different term or filter.