ll.RotBetween

ll.RotBetween (Vector1: vector, Vector2: vector) -> quaternion

Returns the rotation to rotate Vector1 to Vector2. Returns the rotation needed to rotate Vector1 to Vector2.

Example

ll.RotBetween(vector(1,1,1), vector(1,1,1))
Raw function spec json
{
  "def": "func",
  "desc": "Returns the rotation to rotate Vector1 to Vector2.\nReturns the rotation needed to rotate Vector1 to Vector2.",
  "energy": 10,
  "sleep": 0,
  "must_use": true,
  "link": "https://wiki.secondlife.com/wiki/LlRotBetween",
  "private": false,
  "takesSelf": false,
  "name": "RotBetween",
  "signatures": [
    {
      "def": "signature",
      "result": [
        {
          "name": "",
          "def": "result",
          "desc": "",
          "variadic": false,
          "type": [
            {
              "def": "simple",
              "value": "quaternion"
            }
          ],
          "optional": false
        }
      ],
      "args": [
        {
          "def": "arg",
          "name": "Vector1",
          "desc": "",
          "type": [
            {
              "def": "simple",
              "value": "vector"
            }
          ],
          "variadic": false,
          "optional": false
        },
        {
          "def": "arg",
          "name": "Vector2",
          "desc": "",
          "type": [
            {
              "def": "simple",
              "value": "vector"
            }
          ],
          "variadic": false,
          "optional": false
        }
      ]
    }
  ]
}

< Back to ll