GLKQuaternionRotateVector3

I expect the followng code to output (1.0, 0.0, 0.0). Instead I get (0.0, 0.0, -1.0). Does this make sense? Can you replicate this issue?


I'm using XCode 7 and SceneKit, but not explicitly OpenGLES or GLKit.


let glOrienation = GLKQuaternionIdentity

let glDirection = GLKVector3Make(1.0, 0.0, 0.0)

let new_direction = GLKQuaternionRotateVector3(glOrienation, glDirection)

print(new_direction.x, new_direction.y, new_direction.z)

If I start a new project with just OpenGLES or GLKit its works as intended.

This issue seems to be specific to iPhone 5 in the simulator.


This works properly on iPhone 5s, and 6/6+.


Annoying issue, but likely pre-release related.

GLKQuaternionRotateVector3
 
 
Q