I have been working around Quaternions and I have a single piece of Quaternion code which seems to be the base for all the operations in my iPad game. I would like to know whether my code is efficient considering for the entire life-time of the project.
Kindly do let me know if it would cost issues in the future.
reqAngle = new Quaternion ((Input.gyro.attitude.y), 0 , -(Input.gyro.attitude.x), reqAngle.w);
reqAngle is a Quaternion variable set to identity in the start call.
I get the Input through gryo and not through accerleration and this forms the base for the main Input gateways for the entire project.
My main concern is “Quaternions”.
Thank you & Please.