ll.ApplyImpulse

ll.ApplyImpulse (Force: vector, Local: number) -> ()

Applies impulse to the object. If Local == TRUE, apply the Force in local coordinates; otherwise, apply the Force in global coordinates. This function only works on physical objects.

Example

ll.ApplyImpulse(vector(1,1,1), 3.14)
Raw function spec json
{
  "def": "func",
  "desc": "Applies impulse to the object.\nIf Local == TRUE, apply the Force in local coordinates; otherwise, apply the Force in global coordinates.\nThis function only works on physical objects.",
  "energy": 10,
  "sleep": 0,
  "must_use": false,
  "link": "https://wiki.secondlife.com/wiki/LlApplyImpulse",
  "private": false,
  "takesSelf": false,
  "name": "ApplyImpulse",
  "signatures": [
    {
      "def": "signature",
      "result": [
        {
          "name": "",
          "def": "result",
          "desc": "",
          "variadic": false,
          "type": [
            {
              "def": "simple",
              "value": "()"
            }
          ],
          "optional": false
        }
      ],
      "args": [
        {
          "def": "arg",
          "name": "Force",
          "desc": "Amount of impulse force to apply.",
          "type": [
            {
              "def": "simple",
              "value": "vector"
            }
          ],
          "variadic": false,
          "optional": false
        },
        {
          "def": "arg",
          "name": "Local",
          "desc": "Boolean, if TRUE, force is treated as a local directional vector instead of region directional vector.",
          "type": [
            {
              "def": "simple",
              "value": "number"
            }
          ],
          "variadic": false,
          "optional": false
        }
      ]
    }
  ]
}

< Back to ll