-
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
Specifying a flyTo pitch of -90 degrees causes crazy flights #2468
Labels
Comments
Slightly offsetting pitch avoids the rolling flips viewer.flyTo(entity, {
offset: new Cesium.HeadingPitchRange(0, (-Math.PI / 2)+0.0000001, 2000)
}); viewer.flyTo(entity, {
offset : new Cesium.HeadingPitchRange(0, (-Math.PI / 2)+0.0000001)
}); camera.direction doesn't have a horizontal component with vertical pitch, so there isn't really a heading of the direction vector in this case. Although I noticed in the new heading get code that the heading of the up vector is used instead when pitch is vertical. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Run the below example. With the
2000
range value it goes crazy. Change it to 0 and everything works nicely.Here's a similar issue that is probably the same bug
The text was updated successfully, but these errors were encountered: