Anonymous | Login | Signup for a new account | 2018-04-27 01:52 PDT | ![]() |
Main | My View | View Issues | Change Log | Roadmap | Summary | My Account |
View Issue Details [ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | |||||
0007351 | opensim | [REGION] Script Functions | public | 2014-10-12 09:33 | 2015-04-29 09:25 | |||||
Reporter | Kayaker Magic | |||||||||
Assigned To | ||||||||||
Priority | normal | Severity | minor | Reproducibility | always | |||||
Status | new | Resolution | open | |||||||
Platform | any 0.8 Pot_Fixes | OS | 0.8 | OS Version | 0.8 | |||||
Product Version | ||||||||||
Target Version | Fixed in Version | |||||||||
Summary | 0007351: llCastRay returns hits incorrectly outside rotated objects | |||||||||
Description | llCastRay reports hits on nearby objects when it should not. It seems to report a hit when the ray passes through a XY aligned bounding box that encloses the hit object. So objects rotated 45 degrees have large bounding boxes that return false positives. | |||||||||
Steps To Reproduce | Wear a small prim on your HUD center, put the following script in it. This reports the name of the nearest object below your avatar. Create a block that is long and thin, 2x10x0.5 meters. Push it partway into the ground so you can walk over it and watch the HUD display change from ground to primitive. Rotate the long thing primitive 45 degrees around z. Now when you walk around the primitive, the HUD will display the prim name when you are far away from the prim. | |||||||||
Additional Information | default { state_entry() { llSetTimerEvent(1.0); } timer() { list hits=llCastRay(llGetPos()-<0,0,.5>,llGetPos()-<0,0,5.5>,[]); if (llList2Integer(hits,-1)>0) //if cast ray fonund something { key id=llList2Key(hits,0); //get the first one if (id==NULL_KEY) llSetText("ground",<1,1,0>,1.0); else llSetText(llKey2Name(id),<0,1,0>,1.0); } else llSetText("nothing",<1,0,0>,1.0); } } | |||||||||
Tags | No tags attached. | |||||||||
Git Revision or version number | ||||||||||
Run Mode | Grid (Multiple Regions per Sim) | |||||||||
Physics Engine | BulletSim | |||||||||
Environment | .NET / Windows64 | |||||||||
Mono Version | Other | |||||||||
Viewer | FireStorm | |||||||||
Attached Files | ||||||||||
![]() |
|||
Date Modified | Username | Field | Change |
2014-10-12 09:33 | Kayaker Magic | New Issue | |
2015-04-29 09:25 | Magnuz | Relationship added | related to 0007546 |
Copyright © 2000 - 2012 MantisBT Group |