scratt

06-18-2009, 02:36 AM

For some reason I can't make the maths for this work, so I must be missing something. I suspect it is to do with signs..

I have a start point and an end point, which both happen to be Normals on a Unit Sphere...

Assuming that I have an object "walking" on that sphere, and it's orientations are all correct apart from it's "Yaw", i.e The direction it is facing on the sphere, or it's rotation about y in it's own coordinate system, wouldn't the usual Atan2 functions give me this angle?

Or can someone show me the light...

Should I be using some kind of Arc Tangent Path? Although the problem with that is that using Quaternions I get an unpredictable roll angle.. So for my purposes in this particular instance with all that already working, I'd just like a way to obtain my local y rotation if at all possible...

Thanks. :)

I have a start point and an end point, which both happen to be Normals on a Unit Sphere...

Assuming that I have an object "walking" on that sphere, and it's orientations are all correct apart from it's "Yaw", i.e The direction it is facing on the sphere, or it's rotation about y in it's own coordinate system, wouldn't the usual Atan2 functions give me this angle?

Or can someone show me the light...

Should I be using some kind of Arc Tangent Path? Although the problem with that is that using Quaternions I get an unpredictable roll angle.. So for my purposes in this particular instance with all that already working, I'd just like a way to obtain my local y rotation if at all possible...

Thanks. :)