ll.SetRot

ll.SetRot(Rotation: quaternion) : ()

If the object is not physical, this function sets the rotation of the prim. If the script is in a child prim, Rotation is treated as root relative and the link-set is adjusted. If the prim is the root prim, the entire object is rotated to Rotation in the global reference frame.

Example

ll.SetRot(quaternion(0,0,0,1))
{
  "def": "func",
  "desc": "If the object is not physical, this function sets the rotation of the prim.\nIf the script is in a child prim, Rotation is treated as root relative and the link-set is adjusted.\nIf the prim is the root prim, the entire object is rotated to Rotation in the global reference frame.",
  "energy": 10,
  "sleep": 0,
  "pure": false,
  "link": "https://wiki.secondlife.com/wiki/LlSetRot",
  "name": "SetRot",
  "signatures": [
    {
      "result": [
        {
          "name": "",
          "def": "result",
          "desc": "",
          "variadic": false,
          "type": [
            "()"
          ],
          "optional": false
        }
      ],
      "args": [
        {
          "def": "arg",
          "name": "Rotation",
          "desc": "",
          "type": [
            "quaternion"
          ],
          "variadic": false,
          "optional": false
        }
      ]
    }
  ]
}

< Back to ll