If an object
, sets the rotation
. In a linked set
, this will be root-relative.
If the object is a child in a linked physical
set, this function will also work (see ChildRotation
, use llSetRot
to rotate an attachment.
For rotation on physical
tasks see llRotLookAt
For the translational analog, see llSetPos
To set the rotation of a child
prim, use llSetLocalRot
Beginners are often confused about the difference between this function and llTargetOmega
makes the object SPIN with the specified angular velocity. llSetRot just turns it ONCE to face in a particular direction.
Note: This function delays
for 0.2 seconds.
To determine the rotation of an object, use llGetRot
To simultaneously set many object parameters including rotation, and position, use llSetPrimitiveParams
Q: Does llSetRot work on attachments?
Q: I need to set both the rotation and position of a prim at once. My object looks jerky and weird without it.
A: You want llSetPrimitiveParams.
This article wasn't helpful for you? Maybe the related article at the LSL Portal
is able to bring enlightenment.