Skip to content

Don't pan camera when path of Sun fits in FoV#56

Merged
Carifio24 merged 13 commits into
cosmicds:mainfrom
Carifio24:no-pan-in-fov
Feb 18, 2026
Merged

Don't pan camera when path of Sun fits in FoV#56
Carifio24 merged 13 commits into
cosmicds:mainfrom
Carifio24:no-pan-in-fov

Conversation

@Carifio24

Copy link
Copy Markdown
Member

This PR resolves #52. The idea here is to split the "camera tracking" logic into two pieces - whether or not the user has selected the "Track Sun" checkbox, and whether or not the path lies in the FoV. forceCamera is now a computed that is true when both the checkbox is checked and the path does NOT lie completely in the FoV.

Because only the vertical extent of the FoV is preserved on a resize, we need to redetermine whether the path lies in the FoV when the WWT canvas is resized.

@Carifio24 Carifio24 requested a review from patudom February 12, 2026 17:00
@Carifio24 Carifio24 marked this pull request as draft February 12, 2026 22:05
@Carifio24 Carifio24 marked this pull request as ready for review February 13, 2026 16:57
@johnarban johnarban self-requested a review February 17, 2026 23:08
@Carifio24 Carifio24 merged commit 4525915 into cosmicds:main Feb 18, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Don't pan camera if entire Sun path fits in view

1 participant