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

Camera.twistLeft and Camera.twistRight don't trigger Camera.changed #9365

Closed
easternmotors opened this issue Feb 3, 2021 · 1 comment
Closed
Labels
category - camera good first issue An opportunity for first time contributors type - enhancement

Comments

@easternmotors
Copy link
Contributor

I have been using Camera.changed when the position/orientation of the camera changes but it seems that both Camera.twistLeft(amount) and Camera.twistRight(amount) don't trigger an event (though it seems like it may rarely?).

The twist command doesn't change the position of the camera, only the orientation (from what I understand). Even though Camera.changed doesn't specifically mention if it only triggers on camera position change or both camera position and orientation change, Shift + Click + Drag (to my knowledge) only changes the camera orientation yet still triggers Camera.changed.

Camera.twistLeft(amount) and Camera.twistRight(amount) don't appear in the CHANGELOG but Camera.changed has been around for a while (Released as part of 1.23) so my thought was maybe it was introduced after the Camera.changed work was done?

Just wanted to verify this was a bug and not intended functionality.

Sandcastle example: https://sandcastle.cesium.com/#c=bVNBbtswEPzKQhcrQErJ11Y2mjoJUMBAgbjpSRdG3MiEKa5KUhLcon8vKSWOLVo3zszODJZizw30Egc0sAKNA2zQyq5hv0YsLZNqPG9IOy41mjK5+VLqUmcZ7NA5qWto0VTo6Ro3e65rFGAJNEFDPTaeALc3aPekhAVuEAz+7qRBMZrc6SNUvEHDP/Re2ynh4c4icFBUl3rqyCYpiyNXkJ/1gq6FzeQ6CWArrcPQf+ZUTfOMC/HQe8t3XZrewGoNf0sNUJG2pJD5IuniwlYswjb+nVayMcgdzqLvKifJ84PUggZm0X3XDk3P1XnIZS03+B5Pst67NGf5cky5hWWen6KeHnbP25+7z+NBER3uadDwCQYyB3sCt/jqInD0jdDn9gIKt/GNV4eBGxERUVYAH8lcFUcdAhh3COisgyHn1xmFTXBkO8Gx8YTPrMcFv1kIQqsXbmQ/yHejcza5TQrrjgrX4crC91U2LRn/wxmVMpY5bFrl02z20lUHdKyyNlxZkBbZ+WghZA9SrK68MKgUt9Yzr51SO/kHy2RdZF4fjSriwj/BHz0axY9Btl+utxPIGCsyf7w+6YjUCzcz5/8

Browser: Chrome 88, Firefox 82

Operating System: Windows 10

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category - camera good first issue An opportunity for first time contributors type - enhancement
4 participants