Forum Discussion
Zylann
10 years agoHonored Guest
[Solved] Problem using the pose quaternion
Hello, I'm having trouble getting correct rotations with my custom game engine: When I rotate the rift left, it goes right. When I rotate up, it goes down... However, when I roll, the rotation is ...
Zylann
10 years agoHonored Guest
Ok, after a few tests, I found that this combination gives the correct rotations:
The W is first because my Quaternion type has a constructor taking it as first parameter, because it's the real part. That's just an order of arguments. Maybe I should put the W last to make it less misleading.
Thank you for the advice :)
myHead.setRotation(Quaternion(q.w, -q.x, -q.y, q.z));
The W is first because my Quaternion type has a constructor taking it as first parameter, because it's the real part. That's just an order of arguments. Maybe I should put the W last to make it less misleading.
Thank you for the advice :)
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device
Other Meta Support
Related Content
- 1 year ago
- 8 months ago