Anonymous | Login | Signup for a new account | 2021-01-15 05:54 PST | ![]() |
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 | |||||
0008364 | opensim | [REGION] Script Functions | public | 2018-09-07 16:39 | 2018-10-09 02:44 | |||||
Reporter | Sei Lisa | |||||||||
Assigned To | ||||||||||
Priority | normal | Severity | minor | Reproducibility | always | |||||
Status | new | Resolution | open | |||||||
Platform | Operating System | Operating System Version | ||||||||
Product Version | 0.9.0.1 | |||||||||
Target Version | Fixed in Version | |||||||||
Summary | 0008364: Attachment rotation lost for props | |||||||||
Description | There is no attachment rotation separate from non-attached rotation. As a consequence, the rotation when attached is lost for objects that are rezzed by scripts, most notably props, because they don't have access to that rotation (and even if they did, it may be inconvenient to rez them in weird rotations just to match the rotation when attached). Originally I thought this was a scripting problem, but it is not, as indicated in a latter comment. I've keep the original description after this line. When a prop is rezzed via llRezObject or llRezAtRoot, the stored attachment position is preserved, but the stored attachment rotation is lost. This affects attaching manually by taking the object, as well as llAttachToAvatar / llAttachToAvatarTemp. | |||||||||
Steps To Reproduce | - Create a torus. - Attach it to your hand. - Adjust it so it looks roughly like a bracelet. This requires a 90° rotation, scaling and some movement. - Detach it, and put it inside another container object. - Put the following script inside the container object: default{touch_start(integer n){llRezObject(llGetInventoryName(INVENTORY_OBJECT,0),llGetPos()+<0,0,1>,<0,0,0>,<0,0,0,1>,1);}} - Touch the object. The torus will be rezzed. - Take the new torus. - Attach it. Observe the position is right, but the rotation is wrong. - Take the torus that is still in the container's inventory and attach it. Observe the position and the rotation are both right, meaning that it's llRezObject that broke it. | |||||||||
Additional Information | Using llAttachToAvatar or llAttachToAvatarTemp to attach the object, makes no difference. This breaks stored rotations in props. This affects all versions at least back to 0.8.2.1 (used in Kitely). Originally reported against AVsitter. The original report thread contains a workaround script: https://github.com/AVsitter/AVsitter/issues/74 [^] | |||||||||
Tags | No tags attached. | |||||||||
Git Revision or version number | ||||||||||
Run Mode | Standalone (1 Region) , Standalone (Multiple Regions) , Grid (1 Region per Sim) , Grid (Multiple Regions per Sim) | |||||||||
Physics Engine | BulletSim | |||||||||
Script Engine | ||||||||||
Environment | Unknown | |||||||||
Mono Version | None | |||||||||
Viewer | ||||||||||
Attached Files | ||||||||||
![]() |
|
(0032924) Sei Lisa (reporter) 2018-09-08 07:38 |
After investigating this a little more, it seems to attach with the rotation used in llRezObject. Since the rezzer script in the repro steps uses zero rotation, that's the rotation that the attachment gets. The same problem is reproducible by rezzing the object manually, rotating it and taking it back, then attaching. It seems that the object does not store a rotation specific to attachments, but just remembers the last rotation it was at, be it attached or rezzed. These should be independent. That also means that I reported this in the wrong category, as this is not a scripting issue. Sorry about that. |
(0032925) BillBlight (developer) 2018-09-08 09:25 |
Have you tried the ossl functions to see if they suffer from the same issue .. osForceAttachToAvatar osForceAttachToAvatarFromInventory osForceAttachToOtherAvatarFromInventory |
(0032926) FreakyTech (reporter) 2018-09-08 15:50 |
Actually that does not matter since that is a missing part in the object serialization. |
(0032928) UbitUmarov (administrator) 2018-09-11 07:15 |
yes so far there is no independent attachment rotation lets keep this open as a reminder future revision |
![]() |
|||
Date Modified | Username | Field | Change |
2018-09-07 16:39 | Sei Lisa | New Issue | |
2018-09-08 07:38 | Sei Lisa | Note Added: 0032924 | |
2018-09-08 09:25 | BillBlight | Note Added: 0032925 | |
2018-09-08 15:50 | FreakyTech | Note Added: 0032926 | |
2018-09-11 07:15 | UbitUmarov | Note Added: 0032928 | |
2018-10-09 02:44 | Sei Lisa | Summary | Attachment rotation broken for props => Attachment rotation lost for props |
2018-10-09 02:44 | Sei Lisa | Description Updated | View Revisions |
Copyright © 2000 - 2012 MantisBT Group |