ll.LookAt

ll.LookAt(Target: vector, Strength: number, Damping: number) : ()

Cause object name to point its forward axis towards Target, at a force controlled by Strength and Damping. 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.LookAt(vector(1,1,1), 3.14, 3.14)
{
  "def": "func",
  "desc": "Cause object name to point its forward axis towards Target, at a force controlled by Strength and Damping.\nGood 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. A Strength of 0.0 cancels the look at.",
  "energy": 10,
  "sleep": 0,
  "pure": false,
  "link": "https://wiki.secondlife.com/wiki/LlLookAt",
  "name": "LookAt",
  "signatures": [
    {
      "result": [
        {
          "name": "",
          "def": "result",
          "desc": "",
          "variadic": false,
          "type": [
            "()"
          ],
          "optional": false
        }
      ],
      "args": [
        {
          "def": "arg",
          "name": "Target",
          "desc": "",
          "type": [
            "vector"
          ],
          "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