Using SCNAction.rotateByAngle(…) in my game I would press left/right/up/down keys or swipe to have an object rotate in that direction. But testing my game on El Capitan or with Metal as the renderer causes the 3D object to rotate the other way i.e. left becomes right and up becomes down.
I haven't found any documentation mentioning that the rotation is "inverted" or "reversed" in El Capitan or Metal.
The code is:
Rotate up = SCNVector3(x:1, y:0, z:0)
Rotate down = SCNVector3(x:-1, y:0, z:0)
Rotate left = SCNVector3(x:0, y:1, z:0)
Rotate right = SCNVector3(x:0, y:-1, z:0)
SCNAction.rotateByAngle(CGFloat(M_PI_2), aroundAxis:vector, duration:1)
Pretty simple and straight forward.
Any clues why this is happening?
Should I have to check which OS is running or Metal and then apply the correct rotations?
thx
In the Apple Developer Forums, an Apple employee has confirmed this.
Apple Developer Forum question & answer