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

Game camera moves a lot when the character is walking in the forest #208

Open
piellardj opened this issue Jan 8, 2025 · 0 comments
Open
Assignees

Comments

@piellardj
Copy link
Member

The camera collisions cause the camera to move a lot when walking in a forest,
because it intersects tree trunks, folliage etc.

Ideas to fix this:

  • make the trees turn transparent when they are between the camera and the player. This is harder than it seems because there are lots of edge cases
  • make the camera less reactive. Currently, I use 1 ray going from the camera to the player center, and see if this ray intersects an object. I could use 20 rays around the player, and only move the camera when 80% of them are obstructed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Todo
Development

No branches or pull requests

1 participant