Hi James,

thanks for the suggestion. I'm not doing any other rotations at present. I'm using abs() on the x and z axes as occasionally, and this is maybe where the problem lies, sometimes they equal -180.

I'm using the x and z axes with the y axis to determine which quarter i'm in.

Perhaps it will be better to track the current position in a property and check
for flip flopping against that.



On 7 Oct 2005, at 17:13, James Newton wrote:
Are you rotating around the other axes at all? If not, you check whether the x- and z-coordinates are 180, and compensate when calculating y. If you are rotating around the other axes, then their values may not be exactly equal to 0 or 180, and you need to do a few more calculations to "simplify"
the rotation in terms of the y-axis.

[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email 
[email protected]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for 
learning and helping with programming Lingo.  Thanks!]

Reply via email to