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

Move camera to the top of the player's collider #345

Merged
merged 1 commit into from
Jan 21, 2024
Merged

Conversation

Ralith
Copy link
Owner

@Ralith Ralith commented Jan 21, 2024

This moves the viewpoint before applying orientation, so looking down is equivalent to face-planting, which isn't ideal. Adjusting the viewpoint by Graph::get_relative_up after rotation so the camera rotates in-place makes more sense, but suffers from sharp discontinuities when crossing between nodes, presumably due to relying on the discrete NodeState::up_direction. We should come up with a properly smooth notion of "up".

@Ralith Ralith force-pushed the head-camera branch 2 times, most recently from 7f1c1a4 to 39b6436 Compare January 21, 2024 04:32
@Ralith Ralith marked this pull request as ready for review January 21, 2024 04:32
@Ralith Ralith enabled auto-merge (rebase) January 21, 2024 04:33
@Ralith Ralith disabled auto-merge January 21, 2024 04:34
@Ralith Ralith enabled auto-merge (rebase) January 21, 2024 04:36
@Ralith Ralith merged commit 1153055 into master Jan 21, 2024
6 checks passed
@Ralith Ralith deleted the head-camera branch January 21, 2024 04:49
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.

2 participants