Ive created an object that an avatar sits on. Upon receiving a command VIA listen, the object sends the avatar to a position 5 meters to the east of the object and has the avatar start an animation. Unon receiving another comman, the avatar stops the animation, returns to the base position and plays the sit animation again.
All this works well currently.
The problem starts in that I also want the avatar to rotate 90 deg to its left as part of the move away, and rotate back when it returns to base.
I can get the rotation to work using llSetLinkPrimitiveParams() and a PRIM_ROTATION value. the problem I have is that I need to pick this object and move it often. I need to be able to set it down and have the Avatar rotate 90deg to ITS left and back regardless of the location of the object.
When I move the object, the rotation of the avatar seems to change axis. For example, If I rotate the object 90 deg to the left on the floor, the avatar, once sent to the offset position now rotates face-down 90 degrees.
I'm (obviously) fairly new at this. Why would the axis Im rotating on vary depending on the location of the root object?
Thanks,
-S.