ll.CastRay

ll.CastRay(Start: vector, End: vector, Options: list) : list

Casts a ray into the physics world from 'start' to 'end' and returns data according to details in Options. Reports collision data for intersections with objects. Return value: [UUID_1, {link_number_1}, hit_position_1, {hit_normal_1}, UUID_2, {link_number_2}, hit_position_2, {hit_normal_2}, ... , status_code] where {} indicates optional data.

Example

ll.CastRay(vector(1,1,1), vector(1,1,1), {})
{
  "def": "func",
  "desc": "Casts a ray into the physics world from 'start' to 'end' and returns data according to details in Options.\nReports collision data for intersections with objects.\nReturn value: [UUID_1, {link_number_1}, hit_position_1, {hit_normal_1}, UUID_2, {link_number_2}, hit_position_2, {hit_normal_2}, ... , status_code] where {} indicates optional data.",
  "energy": 10,
  "sleep": 0,
  "pure": true,
  "link": "https://wiki.secondlife.com/wiki/LlCastRay",
  "name": "CastRay",
  "signatures": [
    {
      "result": [
        {
          "name": "",
          "def": "result",
          "desc": "",
          "variadic": false,
          "type": [
            "list"
          ],
          "optional": false
        }
      ],
      "args": [
        {
          "def": "arg",
          "name": "Start",
          "desc": "",
          "type": [
            "vector"
          ],
          "variadic": false,
          "optional": false
        },
        {
          "def": "arg",
          "name": "End",
          "desc": "",
          "type": [
            "vector"
          ],
          "variadic": false,
          "optional": false
        },
        {
          "def": "arg",
          "name": "Options",
          "desc": "",
          "type": [
            "list"
          ],
          "variadic": false,
          "optional": false
        }
      ]
    }
  ]
}

< Back to ll