They are sent as normalized quaternions, so we just send the first three values and compute the W component on the client. Beware of attempting to find the square root of zero due to floating point precision.On Sep 11, 2006, at 1:52 PM, Tom Wilson wrote:Since the rotations in the client are displa
Since the rotations in the client are displayed and edited as yaw, twist, and roll, it makes sense that they're sent over the network that way. It sounds to me like the system is simply storing the number as sin(angle/2).
If that's the case, we need to first convert to radians and then to degrees.
I'm adding in ObjectData support and have been stuck on the rotation
format used in the ObjectData byte field of the ObjectUpdate packet.
SLProxy testing shows that rotation information starts at ObjectData[36]
and is stored as three floats that appear to be in quaternion format,
where a 90 deg