We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
As told in other issues, the plugin in some phones has a weird rotation behaviour. Anyway, I've noticed if I put:
CurrentOrientation *= FQuat(FRotator(FMath::RadiansToDegrees(0), FMath::RadiansToDegrees(-RotationRate.Y), FMath::RadiansToDegrees(0)));
Instead of:
CurrentOrientation *= FQuat(FRotator(FMath::RadiansToDegrees(-RotationRate.X), FMath::RadiansToDegrees(-RotationRate.Y), FMath::RadiansToDegrees(-RotationRate.Z)));
On Y works good. If I change it with
CurrentOrientation *= FQuat(FRotator(FMath::RadiansToDegrees(-RotationRate.X), FMath::RadiansToDegrees(0), FMath::RadiansToDegrees(0)));
After some up and down shaking the rotation has some problems.
Tested with One Plus One
The text was updated successfully, but these errors were encountered:
Did you fix it? I Have the same issue... if I move too much the final rotation results in a weird behavior :/
Sorry, something went wrong.
Hi guys,
Please, take a look on official Cardboard plugin in 4.12 :)
No branches or pull requests
As told in other issues, the plugin in some phones has a weird rotation behaviour.
Anyway, I've noticed if I put:
CurrentOrientation *= FQuat(FRotator(FMath::RadiansToDegrees(0), FMath::RadiansToDegrees(-RotationRate.Y), FMath::RadiansToDegrees(0)));
Instead of:
CurrentOrientation *= FQuat(FRotator(FMath::RadiansToDegrees(-RotationRate.X), FMath::RadiansToDegrees(-RotationRate.Y), FMath::RadiansToDegrees(-RotationRate.Z)));
On Y works good.
If I change it with
CurrentOrientation *= FQuat(FRotator(FMath::RadiansToDegrees(-RotationRate.X), FMath::RadiansToDegrees(0), FMath::RadiansToDegrees(0)));
After some up and down shaking the rotation has some problems.
Tested with One Plus One
The text was updated successfully, but these errors were encountered: