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.
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.2,
"must_use": false,
"link": "https://wiki.secondlife.com/wiki/LlSetRot",
"private": false,
"takesSelf": false,
"name": "SetRot",
"signatures": [
{
"def": "signature",
"result": [
{
"name": "",
"def": "result",
"desc": "",
"variadic": false,
"type": [
{
"def": "simple",
"value": "()"
}
],
"optional": false
}
],
"args": [
{
"def": "arg",
"name": "Rotation",
"desc": "",
"type": [
{
"def": "simple",
"value": "quaternion"
}
],
"variadic": false,
"optional": false
}
]
}
]
}