Don't click here unless you want to be banned.

LSL Wiki : llSetLocalRot

HomePage :: PageIndex :: RecentChanges :: RecentlyCommented :: UserSettings :: You are crawling22.us.archive.org
llSetLocalRot(rotation rot)

Sets the rotation of a child prim relative to the root prim.

Note: This function delays the script for 0.2 seconds.

Use llGetLocalRot to get the local rotation.

To set the rotation of a child prim around its local axis, use llGetLocalRot and llSetLocalRot. This way, the entire object can be rotated any direction and the child prim will still rotate properly.

Compare with llSetRot, which sets the rotation of the entire linkset.

Q: Does llSetLocalRot work on attachments?
A: As of SL 1.7 this is possible.

Q: How do I perform this with llSetPrimitiveParams on a child of an attached prim?
A: You need to know the local rotation of the root prim of the the attachment and divide your target rotation by the root's local rotation.


Functions | Rotation | Child Rotation | Link
Comments [Hide comments/form]
Tried to use this on an attachment and it failed silently. Thought I'd note it here.
-- VaLeNtE (2005-05-01 07:27:18)
"To set the rotation of a child prim around it's local axis". By local axis , I think this means the local axis as defined by the root prim.
-- 202.53.198.112 (2007-04-30 19:22:08)
No.. the child prim rotates around it's own axis.. it does the same exact thing of llSetRot.. is it broken?
-- rdbck-5669.palmer.mtaonline.net (2007-08-17 22:14:45)
How to rotate the prim on an axis that is defined relative to the prim position and orientation (like a lid that needs to turn around an axis going through one of the sides of the lid).
-- FlennanRoffo (2007-10-22 12:47:56)
Attach a comment to this page: