I realized that when an agent is in mouselook, all rotations indicate the direction the camera is looking. When the avatar is standing, this is no big deal because you can pitch the orientation down to horizontal to get the actual orientation of the avatar (where the avatar's bounding box/cylinder is).
But what about when the avatar is sitting? I believe there's no such helpful constraint that the avatar (bouding volume) be "horizontal". Experimentation shows that llGetRot() from an attachment and llGetObjectDetails() still show the mouselook camera direction, not the orientation of the actual avatar (as more or less set by the sit target). Anyone have any idea if and how you might go about getting the actual AVATAR, not CAMERA orientation for an avatar sitting and in mouselook?
I am primarily interested in doing this from a third-party object, by the way, NOT the object being sat upon, and preferably NOT from an attachment on the avatar in question either. Hopefully something that can be used for sensing/gaming systems (roleplaying, radar HUDs, etc.). If the answer is that it can't be done, let's figure that out. Maybe we can create a feature request JIRA. If it can be done from an attachment or the object being sat upon let's explore that too, but it's not the primary focus.