|
|
|
Nice Picture of Kitto and Andrew.
I hope this shows my agent target to the right of the box Attaching a picture I hope makes things clearer. The sit target positions and rotates the Agent, not the Avatar. The Avatar can be offset from the agent by the animation in use, I think what you may be seeing is an offset caused by the animation. Using this script created by Winter Ventura, you can visualize the Agent:
// AGENT Visualizer - By: Winter Ventura init() default on_rez(integer start_param) changed (integer change) sensor(integer num_detected) In the picture attached called "Agent Rotation", I use your sit target, but vary the rotations, pulling the script out of the Agent Visualizer each time to freeze it in place. As you can see, their center points all intersect, there's no offset. Red is a rotation of <0.00000, 0.00000, 0.00000, 1.00000> (in degrees a rotation of 0,0,0) As seen in the attached illustration named "example.jpg". rotation might actually be the cause of your confusion.
"Hollow" in a cube, is a universal indicator of the z axis. No matter how much torturing or tapering, Hollow will always hollow down the Z axis. I tried replicating your podium shape. Judging by the image you provided, the podium (if a single prim) MUST be made either by the method described in A & B, or in the method described in C & D. Hollow helps orient the Z (blue) axis for illustration purposes. It's obvious from the shape of the podium, and from your description, that the podium MUST be rotated on it's axis. The shape just isn't possible (using a traditional prim) with Z pointing up-down. You say that you're trying to offset in the Y direction, yet you're seeing movement in the left->right axis. Take a look at illustration D. Try varying the Y offset, and see which axis you're moving on. (0,1,0), (0,2,0) etc. If you move side to side, then you have solved the mystery. If you move up and down, then it's possible that the podium may be constructed more like illustration A. Not knowing how the podium prim was constructed, I can only guess at what might be at play here. But hopefully this illustration will help you diagnose the problem. https://wiki.secondlife.com/wiki/LlSitTarget
The image I attached, since I haven't yet figured how to add a picture properly, shows the Agent Target to the right of where it's defined, which was positive Z Axis. That podium was shaped as a pathcut box. This would be nice to fix, in C#, along with the ability to get the Agent Target. list llDetectedTarget(integer) Under C#, I hope the issue of
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Apparently there was a bug in the original simulator code which caused a Z offset. Havok 4 'corrected it', however, this broke all previously created content. After a lot of convincing, the offset was placed back to allow existing content to continue to work correctly.
You can read the JIRA on this here: http://jira.secondlife.com/browse/SVC-1299
In short, you will have to compensate for this offset in your scripts.