ll.SetAngularVelocity

ll.SetAngularVelocity(AngVel: vector, Local: number) : ()

Sets an object's angular velocity to AngVel, in local coordinates if Local == TRUE (if the script is physical). Has no effect on non-physical objects.

Example

ll.SetAngularVelocity(vector(1,1,1), 4)
{
  "def": "func",
  "desc": "Sets an object's angular velocity to AngVel, in local coordinates if Local == TRUE (if the script is physical).\nHas no effect on non-physical objects.",
  "energy": 10,
  "sleep": 0,
  "pure": false,
  "link": "https://wiki.secondlife.com/wiki/LlSetAngularVelocity",
  "name": "SetAngularVelocity",
  "signatures": [
    {
      "result": [
        {
          "name": "",
          "def": "result",
          "desc": "",
          "variadic": false,
          "type": [
            "()"
          ],
          "optional": false
        }
      ],
      "args": [
        {
          "def": "arg",
          "name": "AngVel",
          "desc": "The angular velocity to set the object to.",
          "type": [
            "vector"
          ],
          "variadic": false,
          "optional": false
        },
        {
          "def": "arg",
          "name": "Local",
          "desc": "If TRUE, the AngVel is treated as a local directional vector instead of a regional directional vector.",
          "type": [
            "integer",
            "number"
          ],
          "variadic": false,
          "optional": false
        }
      ]
    }
  ]
}

< Back to ll