Touch Controllers Gimbal Lock issues
Hi I'm using Unity and I am struggling to use the transform.localRotation values returned from the Touch Controller tracking. Essentially depending on the initial transform rotation of the controllers when they are spawned will affect the polarity/signs of the values in a chaotic nature.
e.g. localRotation.y will sometimes equal -0.1 and other times 0.1 even when pointing in the same direction.
It's rather confusing...
This seems like a gimbal lock issue, has anyone ever experienced this problem. I can't rely on the localRotation to use for tilt control mechanics in my game as my vehicle turning will be randomly inverted 50% of the time.
Anyone wise to it. Thanks?
e.g. localRotation.y will sometimes equal -0.1 and other times 0.1 even when pointing in the same direction.
It's rather confusing...
This seems like a gimbal lock issue, has anyone ever experienced this problem. I can't rely on the localRotation to use for tilt control mechanics in my game as my vehicle turning will be randomly inverted 50% of the time.
Anyone wise to it. Thanks?
