MantisBT - opensim
View Issue Details
0008427opensim[REGION] Script Functionspublic2018-12-17 00:052019-02-06 11:28
Kayaker Magic 
Kayaker Magic 
OpenSim on Linux using OSGridDoes OS mean Operating System? Snail De 
master (dev code) 
Grid (1 Region per Sim)
Mono / Linux64
FireStorm x64
0008427: llCastRay cannot detect prims in the same build as the script
The LL SL WiKi states that llCastRay can detect the prim the script is in, as long as the start is outside the prim.

HOWEVER, in OpenSim, llCastRay CANNOT detect the prim it is in, or even any of the other prims in the same build. It can only detect prims in other builds.

Stick the following script into a small prim. A 0.5 meter cube is fine.
Click on the prim to fire llCastRay. It will probably detect the terrain through the prim. Raise it a couple meters off the ground and click it again. It will claim to detect nothing, even though the prim is in the middle of the cast.
  //demonstrate that lLCastRay cannot detect the prim the script is in.
        llSay(0, "click to cast");
    touch_start(integer num)
        list hits=llCastRay(llGetPos()+<0,0,1>,llGetPos()-<0,0,1>,[RC_MAX_HITS,1]);
No tags attached.
Issue History
2018-12-17 00:05Kayaker MagicNew Issue
2018-12-17 03:18UbitUmarovNote Added: 0033649
2018-12-18 02:37aiaustinNote Edited: 0033649bug_revision_view_page.php?bugnote_id=33649#r7438
2018-12-30 23:14Kayaker MagicNote Added: 0033696
2018-12-30 23:17Kayaker MagicResolutionopen => fixed
2018-12-30 23:17Kayaker MagicFixed in Version => master (dev code)
2018-12-30 23:18Kayaker MagicStatusnew => resolved
2018-12-30 23:18Kayaker MagicAssigned To => Kayaker Magic
2019-02-06 11:28BillBlightNote Added: 0034355
2019-02-06 11:28BillBlightStatusresolved => closed

2018-12-17 03:18   
(edited on: 2018-12-18 02:37)
changed master on this:
by default prims detected by physics will be reported,
host and host group prims (linkset) where in fact ignored.

added RC_REJECT_TYPES flags:
- RC_REJECT_HOST will reject script host prim
- RC_REJECT_HOSTGROUP will reject prims on same linkset as host, including host.

currently not possible to exclude other prims on linkset still reporting host
would be useful burning a few ns to allow that?

Kayaker Magic   
2018-12-30 23:14   
I don't see a compelling reason for the ability to exclude different sets of prims on the linkset. In SL you always detect all the prims in the linkset. Having the ability to turn that on and off is nice.
I tested this new version, in the default mode it behaves just like SL.
Mark this Mantis as being resolved!
2019-02-06 11:28   
Marked as Resolved but never closed, can be reopened if needed.