Skip to content
New issue

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

Weird rotation behaviour #16

Open
MarcoBG opened this issue Apr 22, 2016 · 2 comments
Open

Weird rotation behaviour #16

MarcoBG opened this issue Apr 22, 2016 · 2 comments

Comments

@MarcoBG
Copy link

MarcoBG commented Apr 22, 2016

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

@danielvmacedo
Copy link

Did you fix it? I Have the same issue... if I move too much the final rotation results in a weird behavior :/

@zulman
Copy link
Member

zulman commented Jun 2, 2016

Hi guys,

Please, take a look on official Cardboard plugin in 4.12 :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants