Closed sl-service-account closed 9 months ago
Mazidox Linden commented at 2018-11-05T19:16:40Z
Hi there VirtualKitten,
We are unable to act on this Jira as we cannot debug LSL scripts. We would recommend visiting the LSL Scripting forum to ask questions about scripting.
What just happened?
I was at http://maps.secondlife.com/secondlife/Alethia%20Island/219/163/22 yesterday and was trying to place a disk on the ground using CastRay( to get land position. llCastRay has an error here which sometimes gives zero return
I gave figures yesterday that gave:
mypos as 23.80663
floor_pos as 21.58119
groundpos as 20.58119
h as 2.860211
when the code below was called
This placed the link item the script was in at z height 18.29153 and not 21.3131469 which had been calculated from cast Ray
localpos was assigned here manually
// x is z in this prim localpos.z = 0;//(h+.05); localpos.y = -(h ) localpos.x = - distance_out;
These are all calculated in script with h as height from mypos to ground and distance as the triangular distance out . I cannot understand why this doesnt place the item at the location z = 21.3131469 when mypos.z (23.80663) - floor_pos(21.21469) = h = 2.860211.
Then using llSetLinkPrimitiveParamsFast(LINK_THIS,[ PRIM_POS_LOCAL,localpos, PRIM_SIZE, <mist_puddle_size/2,.01,mist_puddle_size> ]);
Should place it at localpos.z as an offset from the root which it doesn't it seems to place it at a lower location on z as 18.29153
Can anyone explain please as I am pulling my hair and having to put it in braids as this makes no sense at all.
What were you doing when it happened?
I was expecting item to be at the location given
What were you expecting to happen instead?
the item was at a different location
Other information
the item should be at the mathematical place
Original Jira Fields
| Field | Value | | ------------- | ------------- | | Issue | BUG-225639 | | Summary | manually setting localpos with numeric values that worth mathematically will not place a linked object at the mathematical expected position when using llSetLinkPrimitiveParamsFast(LINK_THIS | | Type | Bug | | Priority | Unset | | Status | Closed | | Resolution | Unactionable | | Reporter | VirtualKitten (virtualkitten) | | Created at | 2018-10-16T16:04:58Z | | Updated at | 2018-11-05T19:16:40Z | ``` { 'Build Id': 'unset', 'Business Unit': ['Platform'], 'Date of First Response': '2018-11-05T13:16:40.451-0600', "Is there anything you'd like to add?": 'the item should be at the mathematical place', 'ReOpened Count': 0.0, 'Severity': 'Unset', 'System': 'SL Simulator', 'Target Viewer Version': 'viewer-development', 'What just happened?': 'I was at http://maps.secondlife.com/secondlife/Alethia%20Island/219/163/22 yesterday and was trying to place a disk on the ground using CastRay( to get land position. llCastRay has an error here which sometimes gives zero return\r\n\r\n', 'What were you doing when it happened?': 'I was expecting item to be at the location given', 'What were you expecting to happen instead?': 'the item was at a different location', 'Where': 'Firestorm 5.1.7 (55786) Jul 13 2018 20:00:04 (64bit) (Firestorm-Releasex64) with Havok support\r\nRelease Notes\r\n\r\nYou are at 219.1, 163.0, 22.1 in Alethia Island located at sim8841.agni.lindenlab.com (216.82.41.17:13004)\r\nSLURL: http://maps.secondlife.com/secondlife/Alethia%20Island/219/163/22\r\n(global coordinates 129,499.0, 261,795.0, 22.1)\r\nSecond Life Server 18.09.20.519894\r\nRelease Notes\r\n\r\nCPU: Intel(R) Core(TM)2 Quad CPU Q8300 @ 2.50GHz (2520 MHz)\r\nMemory: 4095 MB\r\nOS Version: Microsoft Windows 10 64-bit (Build 17134)\r\nGraphics Card Vendor: NVIDIA Corporation\r\nGraphics Card: GeForce GTX 660/PCIe/SSE2\r\n\r\nWindows Graphics Driver Version: 23.21.13.8813\r\nOpenGL Version: 4.6.0 NVIDIA 388.13\r\n\r\nRestrainedLove API: (disabled)\r\nlibcurl Version: libcurl/7.54.1 OpenSSL/1.0.2l zlib/1.2.8 nghttp2/1.25.0\r\nJ2C Decoder Version: KDU v7.10.4\r\nAudio Driver Version: FMOD Studio 1.10.05\r\nDullahan: 1.1.1080 / CEF: 3.3325.1750.gaabe4c4 / Chromium: 65.0.3325.146\r\nLibVLC Version: 2.2.8\r\nVoice Server Version: Vivox 4.9.0002.27586\r\n\r\nSettings mode: Firestorm\r\nViewer Skin: Firestorm (Grey)\r\nWindow size: 1600x837 px\r\nFont Used: Deja Vu (96 dpi)\r\nFont Size Adjustment: 0 pt\r\nUI Scaling: 1\r\nDraw distance: 128 m\r\nBandwidth: 500 kbit/s\r\nLOD factor: 2\r\nRender quality: High-Ultra (6/7)\r\nAdvanced Lighting Model: Yes\r\nTexture memory: 512 MB (1)\r\nVFS (cache) creation time (UTC): 2018-9-16T20:48:42 \r\nBuilt with MSVC version 1800\r\nPackets Lost: 48/20,891 (0.2%)\r\nOctober 16 2018 09:03:09 SLT', } ```