
|
If you were logged in you would be able to see more operations.
|
|
|
|
Environment:
|
MacOS, Linux, Win32
|
|
Issue Links:
|
Relates
|
|
|
|
This issue is related to by:
|
|
SVC-5276
Avatar and attachment llGetBoundingBox problems under 1.36 beta
|
|
|
|
|
|
|
llGetBoundingBox(<attachment prim's key>) correctly reports the bounding box of the avatar the prim is attached to when the avatar is either standing or sitting on the ground. However, if the avatar is sitting on an object, llGetBoundingBox(<attachment uuid>) returns nonsensical values such as [<-201.33, -47.220, 20.995>,<-200.906, -46.651, 22.892>]. This behavior is the same when llGetBoundingBox() is called by the attachment itself or another object in the sim.
Example Script: (can be put into the attachment):
default
{
touch_start(integer total_number){ llSay(0, "My bounding box corners are "+(string)llGetBoundingBox(llGetKey())); }
}
Put this script into any object attached to your avatar, and then try touching the object when your avatar is standing, sitting on the ground, and sitting on an object. When sitting on an object, the returned bounding box corners appear similar to the avatar's global x- and y- coordinates, but the z-coordinate is often too low or too high by 10s of meters. In any case, the behavior is incorrect.
|
|
Description
|
llGetBoundingBox(<attachment prim's key>) correctly reports the bounding box of the avatar the prim is attached to when the avatar is either standing or sitting on the ground. However, if the avatar is sitting on an object, llGetBoundingBox(<attachment uuid>) returns nonsensical values such as [<-201.33, -47.220, 20.995>,<-200.906, -46.651, 22.892>]. This behavior is the same when llGetBoundingBox() is called by the attachment itself or another object in the sim.
Example Script: (can be put into the attachment):
default
{
touch_start(integer total_number){ llSay(0, "My bounding box corners are "+(string)llGetBoundingBox(llGetKey())); }
}
Put this script into any object attached to your avatar, and then try touching the object when your avatar is standing, sitting on the ground, and sitting on an object. When sitting on an object, the returned bounding box corners appear similar to the avatar's global x- and y- coordinates, but the z-coordinate is often too low or too high by 10s of meters. In any case, the behavior is incorrect. |
Show » |
|
Second Life 1.23.4 (123908) Jun 11 2009 15:16:56 (Second Life Release VWR-6199)
Release Notes
Built with MSVC version 1400
You are at 251411.1, 246182.4, 52.6 in Sedna located at sim3630.agni.lindenlab.com (216.82.22.111:13001)
Second Life Server 1.30.0.133784
Result are bit different in 1.30 server. I did get bounding box "<-0.100000, -0.100000, -0.100000><0.100000, 0.100000, 0.100000>" when sitting on some primitive.
I think that results should be following:
When script is running in attachment, llGetBoundingBox returns avatar's bounding box. When avatar sits to some primitive, returning bounding box should be entire link set (avatar + object where avatar is sitting).
This would be consistent with behaviour when script is trying to return avatar's bounding box instead primitve where it resides.
Try following code and do same testing as above in description.