Hello,
I've noticed that if I try to obtain the pitch of an entity using the EntityPitch command the value I get back is not always correct.
If I rotate the pitch of an entity the value never exceeds -90 to 90. Meanwhile the yaw and roll values can rotate and move within the -180 to 180 range.
On closer inspection, when the entity pitch reaches the end of the -90 to 90 range the yaw and roll values will flip signs or shift 180 degrees to compensate for the pitch value restriction.
My question: Why is the pitch component restricted to the -90 to 90 range as compared to the yaw and roll values which were not?
Thanks in advance for any help,
gilk
I've noticed that if I try to obtain the pitch of an entity using the EntityPitch command the value I get back is not always correct.
If I rotate the pitch of an entity the value never exceeds -90 to 90. Meanwhile the yaw and roll values can rotate and move within the -180 to 180 range.
On closer inspection, when the entity pitch reaches the end of the -90 to 90 range the yaw and roll values will flip signs or shift 180 degrees to compensate for the pitch value restriction.
My question: Why is the pitch component restricted to the -90 to 90 range as compared to the yaw and roll values which were not?
Thanks in advance for any help,
gilk