ll.RotLookAt

ll.RotLookAt(Rotation: quaternion, Strength: number, Damping: number) : ()

Cause object to rotate to Rotation, with a force function defined by Strength and Damping parameters. Good strength values are around half the mass of the object and good damping values are less than 1/10th of the strength. Asymmetrical shapes require smaller damping. A strength of 0.0 cancels the look at.

Example

ll.RotLookAt(quaternion(0,0,0,1), 3.14, 3.14)
{
  "def": "func",
  "desc": "Cause object to rotate to Rotation, with a force function defined by Strength and Damping parameters. Good strength values are around half the mass of the object and good damping values are less than 1/10th of the strength.\nAsymmetrical shapes require smaller damping.\nA strength of 0.0 cancels the look at.",
  "energy": 10,
  "sleep": 0,
  "pure": false,
  "link": "https://wiki.secondlife.com/wiki/LlRotLookAt",
  "name": "RotLookAt",
  "signatures": [
    {
      "result": [
        {
          "name": "",
          "def": "result",
          "desc": "",
          "variadic": false,
          "type": [
            "()"
          ],
          "optional": false
        }
      ],
      "args": [
        {
          "def": "arg",
          "name": "Rotation",
          "desc": "",
          "type": [
            "quaternion"
          ],
          "variadic": false,
          "optional": false
        },
        {
          "def": "arg",
          "name": "Strength",
          "desc": "",
          "type": [
            "number"
          ],
          "variadic": false,
          "optional": false
        },
        {
          "def": "arg",
          "name": "Damping",
          "desc": "",
          "type": [
            "number"
          ],
          "variadic": false,
          "optional": false
        }
      ]
    }
  ]
}

< Back to ll