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
-
I'm noticing that when rotating the viewer using compass navigation, the viewer's
pitch
gets 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'
textureX
andtextureY
provided by listening to thePositionUpdatedEvent
(API Reference) or to theBeforeRotateEvent
(API reference), but cannot discriminate between the rotation from navigation using thecompass
or any other kind of rotation.If I could detect that the
compass
has 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