MantisBT - opensim
View Issue Details
0008427opensim[REGION] Script Functionspublic2018-12-17 00:052019-02-06 11:28
Kayaker Magic 
Kayaker Magic 
normalmajoralways
closedfixed 
OpenSim on Linux using OSGridDoes OS mean Operating System?0.9.1.0 Snail De
0.9.0.1 
master (dev code) 
Grid (1 Region per Sim)
ubODE
Mono / Linux64
5.x
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.
default
{
    state_entry()
    {
        llSay(0, "click to cast");
    }
    touch_start(integer num)
    {
        list hits=llCastRay(llGetPos()+<0,0,1>,llGetPos()-<0,0,1>,[RC_MAX_HITS,1]);
        llOwnerSay(llList2CSV(hits));
    }
}
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

Notes
(0033649)
UbitUmarov   
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?

(0033696)
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!
(0034355)
BillBlight   
2019-02-06 11:28   
Marked as Resolved but never closed, can be reopened if needed.