Hi there, this is my first unity question,
so I’m trying to create a 3D compass app for android in unity, the compass needs to rotate arount the Y-Axis to point to the north pole (working) and it needs to be able to rotate around the X-Axis if I look up/down with my phone to look ontop of the compass or below it (working), but whenever I try to use both functionalities at the same time it looks like the image below. It shows the north pole, but I can’t look ontop of it.
//x rotates so i can see ontop or below the compass, y turns to the north pole. But both wont work together.
compass.transform.localEulerAngles = new Vector3(-attitude.eulerAngles.x,-compassNorthRotation,0);