-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
North-up viewing of high-orbit objects #1785
Conversation
I suppose this also fixes #824? |
Yes it does fix #824, I forgot to mention. The "pop" is where the Molniya becomes slow as measured in Fixed frame, as they are designed to do at the top half of their orbit, and we incorrectly switch to East-North-Up. With this pull, they stay on the new North-Up view for their entire orbit. |
Cartesian3.normalize(cartesian, zBasis); | ||
Cartesian3.normalize(deltaCartesian, deltaCartesian); | ||
|
||
Matrix3.multiplyByVector(toInertial, zBasis, zBasis); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can just normalize inertialCartesian
and inertialDeltaCartesian
and remove these matrix multiplies.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Talked in person. Update soon.
I think all comments so far have been addressed. |
North-up viewing of high-orbit objects
DynamicObjectView.js
already knows how to auto-select East-North-Up or VVLH for different objects based on their fixed-frame velocity. This pull adds some logic to introduce a "North-Up" view for high objects like GEO and Molniya spacecraft, and passing asteroids. The new view shows the Earth "rightside-up" (with the North Pole oriented towards the top of the screen) behind the tracked object. This new view is automatically selected in a manner partially inspired by camera mechanics in the game Kerbal Space Program.