ll.WorldPosToHUD

ll.WorldPosToHUD(world_pos: vector) : vector

Returns the local position that would put the origin of a HUD object directly over world_pos as viewed by the current camera.

Example

ll.WorldPosToHUD(vector(1,1,1))
{
  "def": "func",
  "desc": "Returns the local position that would put the origin of a HUD object directly over world_pos as viewed by the current camera.",
  "energy": 10,
  "sleep": 0,
  "pure": true,
  "link": "https://wiki.secondlife.com/wiki/LlWorldPosToHUD",
  "name": "WorldPosToHUD",
  "signatures": [
    {
      "result": [
        {
          "name": "",
          "def": "result",
          "desc": "",
          "variadic": false,
          "type": [
            "vector"
          ],
          "optional": false
        }
      ],
      "args": [
        {
          "def": "arg",
          "name": "world_pos",
          "desc": "The world-frame position to project into HUD space",
          "type": [
            "vector"
          ],
          "variadic": false,
          "optional": false
        }
      ]
    }
  ]
}

< Back to ll