Replies: 1 comment
-
|
Please do not use Discussions for bugs, feature and support ! I think the behaviour you want (keep current pitch) should be the default, please create a new issue about that. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm noticing that when rotating the viewer using compass navigation, the viewer's
pitchgets reset to 0 (the default value, I think). I would like to maintain the previously set pitch to avoid losing context on this kind of rotation.viewer.compass_rotation_pitch_change.mov
I can store the viewer'
textureXandtextureYprovided by listening to thePositionUpdatedEvent(API Reference) or to theBeforeRotateEvent(API reference), but cannot discriminate between the rotation from navigation using thecompassor any other kind of rotation.If I could detect that the
compasshas been clicked and the viewer has rotated by listening to any available events, I could simply restore theviewer's pitch to Its previous position.Is there any simpler way to achieve this?
Beta Was this translation helpful? Give feedback.
All reactions